Uploading and Running Code
If you’ve written code outside of the editor environment, you’ll want to upload and run it on your robot. You can use the steps below to do this, but we strongly recommend using the editor.
Upload
Assuming you’ve connected to your robot, head to http://robot.go/upload
You should now see the upload interface.
Click on the Choose file button and select either:
- A single Python 3 source file
- A zip file containing one or more Python 2 source files. The file must contain a file named
main.py
in the root of the archive. This should be the entry point for the program.
Now click the Upload button to upload the selected file.
Run
If you’re on the Upload page, click the run it from this page link. Otherwise, you can access the run page at
http://robot.go/run
or by clicking the green run button on the Shepherd homepage (note upload button has been removed to simplify the UI).
You should now see the run interface.
Choose the zone you’d like the robot to think it’s in and then choose the mode. Development mode has no round timer meaning your code can run for as long as you need it to. Competition mode stops your code after 3 minutes, like it would in the arena.
When you’re ready, press the big Start button.
You’ll now be able to see what the robot sees and the output of your program below.