Package com.marslib.vision
Class AprilTagVisionIOSim
java.lang.Object
com.marslib.vision.AprilTagVisionIOSim
- All Implemented Interfaces:
AprilTagVisionIO
Desktop simulation implementation of
AprilTagVisionIO using PhotonVision's simulation
framework.
Renders synthetic camera views of the AprilTag field layout from the robot's true pose, injecting realistic calibration error, latency, and optional occlusion dropout to stress-test the pose estimator fusion pipeline without physical hardware.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.marslib.vision.AprilTagVisionIO
AprilTagVisionIO.AprilTagVisionIOInputs -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAprilTagVisionIOSim(String cameraName, edu.wpi.first.math.geometry.Transform3d robotToCamera, Supplier<edu.wpi.first.math.geometry.Pose3d> poseSupplier) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidResets the shared VisionSystemSim singleton.voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.marslib.vision.AprilTagVisionIO
setRobotOrientation
-
Field Details
-
enableOcclusion
public boolean enableOcclusion -
occlusionDropProbability
public double occlusionDropProbability
-
-
Constructor Details
-
AprilTagVisionIOSim
-
-
Method Details
-
resetSimulation
public static void resetSimulation()Resets the shared VisionSystemSim singleton. Must be called in test@BeforeEachto prevent stale camera state from leaking between test classes. -
updateInputs
- Specified by:
updateInputsin interfaceAprilTagVisionIO
-