Enum Class PoseEstimationMode
- All Implemented Interfaces:
Serializable, Comparable<PoseEstimationMode>, Constable
How a camera turns the AprilTags it sees into a robot pose.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse the robot heading fromVisionCamera.setRobotOrientation(Rotation3d, AngularVelocity)to steady the estimate: Limelight MegaTag2 and PhotonVision's PnP distance trig solve.Solve the robot pose from the tags alone: Limelight MegaTag1, PhotonVision's multi-tag result with a lowest-ambiguity fallback, and Synapse's field-space camera pose. -
Method Summary
Modifier and TypeMethodDescriptionstatic PoseEstimationModeReturns the enum constant of this class with the specified name.static PoseEstimationMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TAGS_ONLY
Solve the robot pose from the tags alone: Limelight MegaTag1, PhotonVision's multi-tag result with a lowest-ambiguity fallback, and Synapse's field-space camera pose. -
HEADING_ASSISTED
Use the robot heading fromVisionCamera.setRobotOrientation(Rotation3d, AngularVelocity)to steady the estimate: Limelight MegaTag2 and PhotonVision's PnP distance trig solve. Synapse doesn't support this and falls back toTAGS_ONLY. CallVisionCamera.setRobotOrientation(Rotation3d, AngularVelocity)every loop.
-
-
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
-