mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-24 01:31:44 +00:00
Bump python projects to 2025.2.1 (#1705)
Blocked on robotpy release --------- Signed-off-by: Jade Turner <spacey-sooty@proton.me> Co-authored-by: Matt Morley <matthew.morley.ca@gmail.com>
This commit is contained in:
@@ -604,10 +604,14 @@ def test_TagAmbiguity() -> None:
|
||||
|
||||
robotPose = Pose2d()
|
||||
visionSysSim.update(robotPose)
|
||||
ambiguity = camera.getLatestResult().getBestTarget().getPoseAmbiguity()
|
||||
tgt = camera.getLatestResult().getBestTarget()
|
||||
assert tgt is not None
|
||||
ambiguity = tgt.getPoseAmbiguity()
|
||||
assert ambiguity > 0.5, "Tag ambiguity expected to be high"
|
||||
|
||||
robotPose = Pose2d(Translation2d(-2.0, -2.0), Rotation2d.fromDegrees(30.0))
|
||||
visionSysSim.update(robotPose)
|
||||
ambiguity = camera.getLatestResult().getBestTarget().getPoseAmbiguity()
|
||||
tgt = camera.getLatestResult().getBestTarget()
|
||||
assert tgt is not None
|
||||
ambiguity = tgt.getPoseAmbiguity()
|
||||
assert 0 < ambiguity < 0.2, "Tag ambiguity expected to be high"
|
||||
|
||||
Reference in New Issue
Block a user