Class OculusConstants
java.lang.Object
frc.alotobots.library.subsystems.vision.oculus.constants.OculusConstants
Constants used by the Oculus Quest navigation subsystem. Contains configuration values for
physical setup and operation parameters.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
Timeout threshold for considering Quest disconnected (seconds)static final int
Maximum number of attempts for reset operations.Standard deviations representing how much we "trust" the position from the Oculus.static final double
Timeout duration in seconds for reset operations (pose reset, heading reset, ping).static final Transform2d
Transform from the robot center to the headset. -
Constructor Summary
-
Method Summary
-
Field Details
-
ROBOT_TO_OCULUS
Transform from the robot center to the headset. Coordinate system: - X: Positive is forwards - Y: Positive is left - Rotation: Positive is counter-clockwise -
RESET_TIMEOUT_SECONDS
public static final double RESET_TIMEOUT_SECONDSTimeout duration in seconds for reset operations (pose reset, heading reset, ping). If a reset operation takes longer than this time, it will be considered failed.- See Also:
-
MAX_RESET_ATTEMPTS
public static final int MAX_RESET_ATTEMPTSMaximum number of attempts for reset operations. If a reset operation fails this many times, the command will terminate.- See Also:
-
CONNECTION_TIMEOUT
public static final double CONNECTION_TIMEOUTTimeout threshold for considering Quest disconnected (seconds)- See Also:
-
OCULUS_STD_DEVS
Standard deviations representing how much we "trust" the position from the Oculus. By default, the Quest 3 provides sub-millimeter accuracy. Values represent: [0]: X position trust (5mm) [1]: Y position trust (5mm) [2]: Rotation trust (~2.87 degrees)
-
-
Constructor Details
-
OculusConstants
public OculusConstants()
-