Class OculusIOSim
java.lang.Object
frc.alotobots.library.subsystems.vision.oculus.io.OculusIOSim
- All Implemented Interfaces:
OculusIO
Simulation implementation of OculusIO that provides realistic noisy measurements.
-
Nested Class Summary
Nested classes/interfaces inherited from interface frc.alotobots.library.subsystems.vision.oculus.io.OculusIO
OculusIO.OculusIOInputs
-
Constructor Summary
ConstructorsConstructorDescriptionOculusIOSim
(org.ironmaple.simulation.drivesims.SwerveDriveSimulation swerveDriveSimulation) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Resets the current heading of the Oculus as zerovoid
Resets the pose components for resetting the Oculus position tracking.void
updateInputs
(OculusIO.OculusIOInputs inputs) Updates the set of loggable inputs from the Oculus.
-
Constructor Details
-
OculusIOSim
public OculusIOSim(org.ironmaple.simulation.drivesims.SwerveDriveSimulation swerveDriveSimulation)
-
-
Method Details
-
updateInputs
Description copied from interface:OculusIO
Updates the set of loggable inputs from the Oculus.- Specified by:
updateInputs
in interfaceOculusIO
- Parameters:
inputs
- The input object to update with current values
-
resetPose
Description copied from interface:OculusIO
Resets the pose components for resetting the Oculus position tracking. HARD RESET. -
resetHeading
public void resetHeading()Description copied from interface:OculusIO
Resets the current heading of the Oculus as zero- Specified by:
resetHeading
in interfaceOculusIO
-