Package frc.robot.services.vision
Class VisionIOSim
java.lang.Object
frc.robot.services.vision.VisionIOSim
- All Implemented Interfaces:
VisionIO
Simulation implementation of
VisionIO.
This class simulates camera detection of AprilTags based on the robot's current pose and the configured camera FOV and range limits. It calculates dummy pose estimates and standard deviations for simulation testing, utilizing zero-allocation arrays to maintain performance.
-
Nested Class Summary
Nested classes/interfaces inherited from interface frc.robot.services.vision.VisionIO
VisionIO.VisionIOInputs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidupdateInputs(VisionIO.VisionIOInputs inputs) Updates inputs by simulating camera detections based on robot pose.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface frc.robot.services.vision.VisionIO
broadcastTelemetry
-
Constructor Details
-
VisionIOSim
Creates a new VisionIOSim.- Parameters:
poseSupplier- A supplier returning the current simulated robot pose.
-
-
Method Details
-
updateInputs
Updates inputs by simulating camera detections based on robot pose.- Specified by:
updateInputsin interfaceVisionIO- Parameters:
inputs- The inputs object to update.
-