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

public static enum LocalizationState.State extends Enum<LocalizationState.State>
Represents the possible states of the localization system. States are ordered by initialization sequence and fallback hierarchy.
  • Enum Constant Details

    • UNINITIALIZED

      public static final LocalizationState.State UNINITIALIZED
      System is waiting for initial pose acquisition. Valid transitions: - To RESETTING when initial AprilTag pose is acquired
    • RESETTING

      public static final LocalizationState.State 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

      public static final LocalizationState.State 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

      public static final LocalizationState.State 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

      public static final LocalizationState.State 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

      public static LocalizationState.State[] 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

      public static LocalizationState.State valueOf(String name)
      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 name
      NullPointerException - if the argument is null