Enum Class Limelight.PoseEstimateType
- All Implemented Interfaces:
Serializable, Comparable<Limelight.PoseEstimateType>, Constable
- Enclosing class:
Limelight
The robot pose estimate outputs. Names use the form {algorithm}_{origin}.
MegaTag1 (MT1) computes the full robot pose from tag geometry only. MegaTag2 (MT2) also uses
the robot orientation from Limelight.setRobotOrientation(double, boolean) or Limelight.setSharedRobotOrientation(double).
MT2 is usually more stable. MT2 requires you to publish the orientation every loop.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMegaTag1, WPILib blue-alliance-corner origin (botpose_wpiblue).MegaTag1, WPILib red-alliance-corner origin (botpose_wpired).MegaTag2, WPILib blue-alliance-corner origin (botpose_orb_wpiblue).MegaTag2, WPILib red-alliance-corner origin (botpose_orb_wpired). -
Method Summary
Modifier and TypeMethodDescriptionstatic Limelight.PoseEstimateTypeReturns the enum constant of this class with the specified name.static Limelight.PoseEstimateType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MT1_WPIBLUE
MegaTag1, WPILib blue-alliance-corner origin (botpose_wpiblue). -
MT1_WPIRED
MegaTag1, WPILib red-alliance-corner origin (botpose_wpired). -
MT2_WPIBLUE
MegaTag2, WPILib blue-alliance-corner origin (botpose_orb_wpiblue). -
MT2_WPIRED
MegaTag2, WPILib red-alliance-corner origin (botpose_orb_wpired).
-
-
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
-