Skip to content
This repository was archived by the owner on Sep 16, 2020. It is now read-only.

rovercode/rovercode

 
 

Repository files navigation

actionshot

screenshot

Rovercode

Chat Zenhub Board Build Status Coverage Status

Rovercode is easy-to-use package for controlling robots (rovers) that can sense and react to their environment. The Blockly editor makes it easy to program and run your bot straight from your browser. Just drag and drop your commands to drive motors, read values from a variety of supported sensors, and see what your rover sees with the built in webcam viewer.

Rovercode runs on a Raspberry Pi 3 with the GrovePi+ sensor board and the Grove I2C motor controller board.

Setup

Creating Your .env

First, create a rovercode.com account here. Then, navigate to the "My Rovers" section and create a new rover. Once it is created, click the "Download Credentials" button at the bottom of the rover's detail page. The file will download as something like rovercode_yourrovername.env. Rename the file as only .env (nothing before the dot) and save it in the same directory as this README.

Rover Setup

First, on your Raspberry Pi:

$ sudo apt install git docker.io
$ git clone --recursive https://github.com/rovercode/rovercode.git && cd rovercode
$ cp ~/rovercode_yourrovername.env .env # copy in the .env created in the section above
$ sudo docker build -t rovercode .
$ sudo docker run --name rovercode -v $PWD:/var/rovercode rovercode

Then, on any PC or tablet, head to app.rovercode.com to connect to your rover.

Development PC Setup

When developing Rovercode, you may want to run Rovercode on your PC instead of a Raspberry Pi. Below are instructions for how to install and run Rovercode on your PC. To do this, use the same steps described above, except replace the last command with this one:

$ sudo docker run --env DEVELOPMENT=true --name rovercode -v $PWD:/var/rovercode rovercode

Note the --env DEVELOPMENT=true flag. Then, still on your development PC, head to rovercode.com and connect to your "rover" (your PC running the service).

Testing

Run the tests like this: Make sure the container is running (the sudo docker run ... command above), then in another terminal, do:

$ sudo docker exec -it rovercode bash -c "python -m pytest"
$ sudo docker exec -it rovercode bash -c "prospector"

Docs

More detailed usage instructions can be found here.

Read the complete docs here.

Contact

We'd love to say hi! Join our chat!.

License

GNU GPLv3 © Rovercode LLC and Rovercode contributors

About

Block-based programming for educational robots

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors