Skip to content

PhotonPoseEstimator allows setting primary and fallback strategy the same #1805

@sciencewhiz

Description

@sciencewhiz

Describe the bug
I helped a team with a crash on the field where they had set both the primary and fallback strategy to CONSTRAINED_SOLVEPNP. For an unknown reason, it tried to fall back (possibly camera was reported as not calibrated) and thus photonlib was stuck in an infinite loop since it fell back to the same strategy that failed initially. It seems like photonlib should not allow setting the fallback strategy to be the same as the primary strategy.

It's also not clear to me why the multi-tag pnps are not allowed as fallback strategies, but maybe CONSTRAINED_SOLVEPNP shouldn't be allowed also as a fallback strategy.

  • PhotonVision Version: 2025.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions