Skip to content

Commit

Permalink
add ambiguity factor for pose rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
linglejack06 committed Dec 12, 2024
1 parent 577c460 commit 3c8463d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ private boolean shouldRejectPose(VisionIO.PoseObservation observation) {
|| Math.abs(observation.pose().getZ())
> CoreVisionConstants.maxZCutoff // Must have realistic Z coordinate
|| observation.averageTagDistance() > CoreVisionConstants.maxAcceptedDistanceMeters
|| observation.ambiguity() > 0.3
// Must be within the field boundaries
|| observation.pose().getX() < 0.0
|| observation.pose().getX() > aprilTagLayout.getFieldLength()
Expand Down

0 comments on commit 3c8463d

Please sign in to comment.