Class VisionIOPhotonSim
java.lang.Object
com.stuypulse.robot.subsystems.vision.VisionIOPhoton
com.stuypulse.robot.subsystems.vision.VisionIOPhotonSim
- All Implemented Interfaces:
VisionIO
IO implementation for physics sim using PhotonVision simulator.
-
Nested Class Summary
Nested classes/interfaces inherited from interface VisionIO
VisionIO.MegaTagMode, VisionIO.PoseObservation, VisionIO.PoseObservationType, VisionIO.TargetObservation, VisionIO.VisionIOInputs, VisionIO.VisionIOOutputs -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.photonvision.simulation.PhotonCameraSimprivate final Supplier<org.wpilib.math.geometry.Pose2d> private static org.photonvision.simulation.VisionSystemSimFields inherited from class VisionIOPhoton
camera, robotToCamera -
Constructor Summary
ConstructorsConstructorDescriptionVisionIOPhotonSim(String name, org.wpilib.math.geometry.Transform3d robotToCamera, Supplier<org.wpilib.math.geometry.Pose2d> poseSupplier) Creates a new VisionIOPhotonVisionSim. -
Method Summary
Methods inherited from class VisionIOPhoton
applyOutputs
-
Field Details
-
visionSim
-
poseSupplier
-
cameraSim
-
-
Constructor Details
-
VisionIOPhotonSim
public VisionIOPhotonSim(String name, org.wpilib.math.geometry.Transform3d robotToCamera, Supplier<org.wpilib.math.geometry.Pose2d> poseSupplier) Creates a new VisionIOPhotonVisionSim.- Parameters:
name- The name of the camera.robotToCamera- The 3D position of the camera relative to the robot.poseSupplier- Supplier for the robot pose to use in simulation.
-
-
Method Details
-
updateInputs
- Specified by:
updateInputsin interfaceVisionIO- Overrides:
updateInputsin classVisionIOPhoton
-