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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Determines which side the pose reset logic should be used -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double
static final double
static final Time
Timeout threshold for considering Quest disconnected (seconds)Standard deviations representing how much we "trust" the position from the Oculus.static final OculusConstants.PoseResetStrategy
The strategy used to reset the posestatic final Transform2d
Transform from the robot center to the headset.static final double
The divisor to divide the rotational std devs by for simulation (how much we trust our sim) Higher = more truststatic final double
The divisor to divide the translational std devs by for simulation (how much we trust our sim) Higher = more trust -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
POSE_RESET_STRATEGY
The strategy used to reset the pose -
BATTERY_LOW_PERCENT
public static final double BATTERY_LOW_PERCENT- See Also:
-
BATTERY_CRITICAL_PERCENT
public static final double BATTERY_CRITICAL_PERCENT- See Also:
-
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 -
OCULUS_CONNECTION_TIMEOUT
Timeout threshold for considering Quest disconnected (seconds) -
OCULUS_STD_DEVS
Standard deviations representing how much we "trust" the position from the Oculus. By default, the Quest 3 provides sub-centimeter accuracy. Values represent: [0]: X position trust (50mm) [1]: Y position trust (50mm) [2]: Rotation trust (~2.87 degrees) -
SIM_TRUST_TRANSLATION
public static final double SIM_TRUST_TRANSLATIONThe divisor to divide the translational std devs by for simulation (how much we trust our sim) Higher = more trust- See Also:
-
SIM_TRUST_ROTATION
public static final double SIM_TRUST_ROTATIONThe divisor to divide the rotational std devs by for simulation (how much we trust our sim) Higher = more trust- See Also:
-
-
Constructor Details
-
OculusConstants
public OculusConstants()
-