Enum Class AprilTagPoseEstimator.RejectionReason
java.lang.Object
java.lang.Enum<AprilTagPoseEstimator.RejectionReason>
frc.robot.subsystems.apriltagvision.AprilTagPoseEstimator.RejectionReason
- All Implemented Interfaces:
Serializable,Comparable<AprilTagPoseEstimator.RejectionReason>,Constable
- Enclosing class:
- AprilTagPoseEstimator
public static enum AprilTagPoseEstimator.RejectionReason
extends Enum<AprilTagPoseEstimator.RejectionReason>
Reason a pose observation was rejected by the estimator. Used for per-reason telemetry so operators can see which filter is triggering during a
match.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEstimated Z height is physically unreasonable.All observed tags are in the ignored tag list.Multi-tag observation exceeded the ambiguity threshold.No tags were detected in the observation.Vision pose deviates too far from the current odometry pose.Estimated pose is outside the field boundaries.Single-tag observation exceeded the ambiguity threshold.Average tag distance exceeded the maximum allowed distance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_TAGS
No tags were detected in the observation. -
SINGLE_TAG_AMBIGUITY
Single-tag observation exceeded the ambiguity threshold. -
MULTI_TAG_AMBIGUITY
Multi-tag observation exceeded the ambiguity threshold. -
OUTSIDE_FIELD
Estimated pose is outside the field boundaries. -
TOO_FAR
Average tag distance exceeded the maximum allowed distance. -
BAD_Z_HEIGHT
Estimated Z height is physically unreasonable. -
ODOMETRY_DEVIATION
Vision pose deviates too far from the current odometry pose. -
IGNORED_TAGS
All observed tags are in the ignored tag list.
-
-
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
-