Package xbot.common.subsystems.vision
Class AprilTagVisionIOPhotonVision
java.lang.Object
xbot.common.subsystems.vision.AprilTagVisionIOPhotonVision
- All Implemented Interfaces:
AprilTagVisionIO
- Direct Known Subclasses:
AprilTagVisionIOPhotonVisionSimulated
IO implementation for real PhotonVision hardware.
Based on the AdvantageKit sample implementation by team 6328.
-
Nested Class Summary
Nested classes/interfaces inherited from interface xbot.common.subsystems.vision.AprilTagVisionIO
AprilTagVisionIO.PoseObservation, AprilTagVisionIO.PoseObservationType, AprilTagVisionIO.TargetObservation, AprilTagVisionIO.VisionIOInputs
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAprilTagVisionIOPhotonVision
(String name, Transform3d robotToCamera, AprilTagFieldLayout fieldLayout) Creates a new VisionIOPhotonVision. -
Method Summary
-
Field Details
-
camera
-
robotToCamera
-
-
Constructor Details
-
AprilTagVisionIOPhotonVision
@AssistedInject public AprilTagVisionIOPhotonVision(@Assisted String name, @Assisted Transform3d robotToCamera, AprilTagFieldLayout fieldLayout) Creates a new VisionIOPhotonVision.- Parameters:
name
- The configured name of the camera.robotToCamera
- The 3D position of the camera relative to the robot.fieldLayout
- The April Tag field layout.
-
-
Method Details
-
updateInputs
- Specified by:
updateInputs
in interfaceAprilTagVisionIO
-