This is AIM Robotics' (Team 1123) code for the 2017 FIRST Robotics Competition (FRC). The robot code is written in Python using RobotPy. The dashboard is written with Electron and is based on the FRC Dashboard project.
- Python 3.x
- OpenCV 3.x
- Node.js and npm
- nodejs-legacy (only for Debian/Ubuntu)
After satisfying the requirements above, run the localinstall.sh
Bash script in the useful_scripts/
directory (make sure your computer has
internet access). It will install the dashboard and everything needed to deploy the robot code.
From a computer with pyfrc installed (e.g. one that you have run localinstall.sh
on), run the robotinstall.sh
script in the useful_scripts/
directory. Make sure the computer has internet access and that it is connected to
the robot through ethernet or USB.
To start the dashboard, run startdashboard.sh
in the useful_scripts/
directory.
To deploy the robot code, run python robot.py deploy
in the robot/
directory.
If you encounter camera errors, run preparecamera.sh
in the useful_scripts/
directory. You may have to restart the robot code afterwards.
Questions? Email me at [email protected].