Skip to content

Commit

Permalink
Added vision details
Browse files Browse the repository at this point in the history
  • Loading branch information
BrownGenius committed Sep 18, 2024
1 parent 0467dea commit fbc8341
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/main/java/frc/robot/subsystems/vision/readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Useful Resources:
* [PhotonVision](https://docs.photonvision.org/en/latest/)
* [Crescendo 2024 Vision System Design](https://docs.google.com/document/d/1OyC_vcDjkND8d1BjjKcrntKLCYnFIfZ_LF4Lyaiwpdk)
* [Crescendo 2024 Vision System Design](https://docs.google.com/document/d/1OyC_vcDjkND8d1BjjKcrntKLCYnFIfZ_LF4Lyaiwpdk)

1. Initial Setup
1. For each camera
* For each resolution
* [Calibrate](https://docs.photonvision.org/en/latest/docs/calibration/calibration.html) FOV
* Relative to the center of the robot (See Transform3D [VisionCamera.VisionCamera](./VisionCamera.java))
* Measure translation (x,y,z)
* Measure rotation (roll, pitch, yaw)
1. For each field
* Load the AprilTag map layout into PhotonVision (See AprilTagFields.class)
2. Periodically at runtime
1. For each camera
* If estimated robot pose is available (i.e. AprilTag is visible)
* addVisionMeasurement to drivetrain odometry (See [Drive.addVisionMeasurement()](../drive/Drive.java))

0 comments on commit fbc8341

Please sign in to comment.