Our robot code for the FIRST Robotics FIRST Power Up competition.
Our repo requires on the following Python libraries:
run
pip3 install -r requirements.txt
May require
sudo
, but--user
can be passed in if need be.
pip3 install -r requirements.txt
Run the following commands in your local Python terminal (Run python3
or python
to access it):
>>> import cv2
>>> import wpilib
>>> import numpy
These should return no errors. If they did, review previous instructions.
To test this robot project, simply pass in the following command into your command prompt or Windows.
$ python3 path/to/robot.py sim
or, if you use Windows,
$ python path\to\robot.py sim
This should bring up a separate window to display a test bench on.
To deploy this code, you will need to make sure of the following:
- Your code tests correctly and will not break the robot.
- Your computer is connected to the Robot's WiFi Network. (To configure this, see here)
If you fill these requirements, run the following code:
For Mac OSX/Linux:
python3 path/to/robot.py deploy
For Windows:
python path\to\robot.py deploy
In addition to this, you can run some of the following commands:
-n
or--no-version-check
to ignore the version of RobotPy that is on the robot.--skip-tests
to skip the tests on the robot (Not recommended) To see the rest of the commands available to you, use the commandpython3 path/to/robot.py deploy -h