Package xbot.common.subsystems.vision
Class AprilTagVisionIOPhotonVisionSimulated
java.lang.Object
xbot.common.subsystems.vision.AprilTagVisionIOPhotonVision
xbot.common.subsystems.vision.AprilTagVisionIOPhotonVisionSimulated
- All Implemented Interfaces:
AprilTagVisionIO
IO implementation for a simulated PhotonVision environment.
Based on the AdvantageKit sample implementation by team 6328.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface xbot.common.subsystems.vision.AprilTagVisionIO
AprilTagVisionIO.PoseObservation, AprilTagVisionIO.PoseObservationType, AprilTagVisionIO.TargetObservation, AprilTagVisionIO.VisionIOInputs -
Field Summary
Fields inherited from class xbot.common.subsystems.vision.AprilTagVisionIOPhotonVision
camera, robotToCamera -
Constructor Summary
ConstructorsConstructorDescriptionAprilTagVisionIOPhotonVisionSimulated(String name, Transform3d robotToCamera, AprilTagFieldLayout fieldLayout, dagger.Lazy<SimulatedPositionSupplier> poseSupplier) Creates a new AprilTagVisionIOPhotonVisionSimulated. -
Method Summary
-
Constructor Details
-
AprilTagVisionIOPhotonVisionSimulated
@AssistedInject public AprilTagVisionIOPhotonVisionSimulated(@Assisted String name, @Assisted Transform3d robotToCamera, AprilTagFieldLayout fieldLayout, dagger.Lazy<SimulatedPositionSupplier> poseSupplier) Creates a new AprilTagVisionIOPhotonVisionSimulated.- 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.poseSupplier- The simulated position supplier, tells the simulated vision system where the robot is on the simulated field.
-
-
Method Details
-
updateInputs
- Specified by:
updateInputsin interfaceAprilTagVisionIO- Overrides:
updateInputsin classAprilTagVisionIOPhotonVision
-