Fully autonomous FRC robot (WIP)
Practical inside-out localization for FRC.
This project is currently in it's very early stages.
- Python 2.7
- Windows 7 or greater, Mac OS Yosemite or greater, or Debian/Ubuntu 16.04 or greater.
- A USB or integrated webcam
Install Dependencies:
$ pip install opencv-python
$ pip install opencv-contrib-python
$ pip install numpy
Set Up Targets:
-
Print 2 4x4 ArUco vision targets with IDs 0 and 1 at http://chev.me/arucogen/.
-
Post the ArUco targets on a wall with the same height from the ground vertically but a few feet apart horizontally. The target with ID 0 should be on the left and the target with ID 1 should be on the right.
-
Measure the distance between the targets (in inches) and set the
_target_dist
variable indemo.py
to match your measurement. -
Also in
demo.py
, change the variables that start with_config_camera
to fit your camera's specs.
Run the demo:
python demo.py
Coordinates are displayed in the bottom left corner and are in units of inches.
To stop the demo, press q
while focused on the display window.