Enum Class LocalizationState.State
java.lang.Object
java.lang.Enum<LocalizationState.State>
frc.alotobots.library.subsystems.vision.localizationfusion.LocalizationState.State
- All Implemented Interfaces:
Serializable
,Comparable<LocalizationState.State>
,Constable
- Enclosing class:
- LocalizationState
Represents the possible states of the localization system. States are ordered by initialization
sequence and fallback hierarchy.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSystem is using only wheel odometry for pose estimation.System is using Quest SLAM as primary pose source.System is resetting to a reference pose.System is using AprilTags as backup pose source.System is waiting for initial pose acquisition. -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalizationState.State
Returns the enum constant of this class with the specified name.static LocalizationState.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNINITIALIZED
System is waiting for initial pose acquisition. Valid transitions: - To RESETTING when initial AprilTag pose is acquired -
RESETTING
System is resetting to a reference pose. Valid transitions: - To QUEST_PRIMARY when reset completes successfully - To TAG_BACKUP if Quest becomes unavailable during reset -
QUEST_PRIMARY
System is using Quest SLAM as primary pose source. Valid transitions: - To TAG_BACKUP if Quest connection is lost or validation fails - To EMERGENCY if both Quest and AprilTags are unavailable -
TAG_BACKUP
System is using AprilTags as backup pose source. Valid transitions: - To QUEST_PRIMARY when Quest connection is restored - To EMERGENCY if AprilTags become unavailable -
EMERGENCY
System is using only wheel odometry for pose estimation. Valid transitions: - To TAG_BACKUP when AprilTags become available - To QUEST_PRIMARY when Quest connection is restored
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-