Team5830 / 2023-Charged-Up

MIT License
0 stars 0 forks source link

AprilTag position tracking #7

Open asteele11 opened 1 year ago

asteele11 commented 1 year ago

The April tags on the field can be used to identify the current location of the robot. There is now a release of the WPILibPi (image for the Raspberry PI) that includes libraries for the Apriltags (Python Package is robotypy_apriltag).
There is a description here: https://docs.wpilib.org/en/stable/docs/software/vision-processing/apriltag/apriltag-intro.html#what-are-apriltags

In order to get this working fast enough to be useful there are some parameters that we might need to adjust described here: https://github.com/AprilRobotics/apriltag/wiki/AprilTag-User-Guide#tuning-the-detector-parameters

and we'll also need to calibrate with a specific camera in order to get a distance estimate.

Example python: example_AprilTag.txt Library Docs: https://robotpy.readthedocs.io/projects/apriltag/en/stable/robotpy_apriltag/AprilTagDetection.html#robotpy_apriltag.AprilTagDetection