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.
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.
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 rovercodeThen, on any PC or tablet, head to app.rovercode.com to connect to your rover.
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 rovercodeNote 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).
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"
More detailed usage instructions can be found here.
Read the complete docs here.
We'd love to say hi! Join our chat!.
GNU GPLv3 © Rovercode LLC and Rovercode contributors

