Class AprilTagPoseEstimate
java.lang.Object
org.wpilib.vision.apriltag.AprilTagPoseEstimate
A pair of AprilTag pose estimates.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doubleObject-space error of pose 1.final doubleObject-space error of pose 2.final Transform3dPose 1.final Transform3dPose 2. -
Constructor Summary
ConstructorsConstructorDescriptionAprilTagPoseEstimate(Transform3d pose1, Transform3d pose2, double error1, double error2) Constructs a pose estimate. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the ratio of pose reprojection errors, called ambiguity.
-
Field Details
-
pose1
Pose 1. -
pose2
Pose 2. -
error1
public final double error1Object-space error of pose 1. -
error2
public final double error2Object-space error of pose 2.
-
-
Constructor Details
-
AprilTagPoseEstimate
Constructs a pose estimate.- Parameters:
pose1- first posepose2- second poseerror1- error of first poseerror2- error of second pose
-
-
Method Details
-
getAmbiguity
public double getAmbiguity()Get the ratio of pose reprojection errors, called ambiguity. Numbers above 0.2 are likely to be ambiguous.- Returns:
- The ratio of pose reprojection errors.
-