java.lang.Object
frc.alotobots.library.subsystems.vision.oculus.io.OculusIOReal
All Implemented Interfaces:
OculusIO

public class OculusIOReal extends Object implements OculusIO
Implementation of OculusIO for real hardware communication via NetworkTables.
  • Constructor Details

    • OculusIOReal

      public OculusIOReal()
      Creates a new OculusIOReal instance and initializes all NetworkTable publishers and subscribers.
  • Method Details

    • updateInputs

      public void updateInputs(OculusIO.OculusIOInputs inputs)
      Description copied from interface: OculusIO
      Updates the set of loggable inputs from the Oculus.
      Specified by:
      updateInputs in interface OculusIO
      Parameters:
      inputs - The input object to update with current values
    • resetPose

      public void resetPose(Pose2d oculusTargetPose)
      Description copied from interface: OculusIO
      Resets the pose components for resetting the Oculus position tracking. HARD RESET.
      Specified by:
      resetPose in interface OculusIO
      Parameters:
      oculusTargetPose - The target pose of the oculus to reset to. NOT THE TARGET ROBOT POSE
    • resetHeading

      public void resetHeading()
      Description copied from interface: OculusIO
      Resets the current heading of the Oculus as zero
      Specified by:
      resetHeading in interface OculusIO