Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot simulate non-field tag layouts for multitag estimation #1630

Open
amquake opened this issue Dec 9, 2024 · 0 comments
Open

Cannot simulate non-field tag layouts for multitag estimation #1630

amquake opened this issue Dec 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@amquake
Copy link
Member

amquake commented Dec 9, 2024

private final AprilTagFieldLayout tagLayout =
AprilTagFieldLayout.loadField(AprilTagFields.kDefaultField);

// TODO: Implement ATFL subscribing in backend
// var tagLayout = cam.getAprilTagFieldLayout();
var visibleLayoutTags = VisionEstimation.getVisibleLayoutTags(detectableTgts, tagLayout);

As ATFLs are currently handled through the UI, there is no way to specify custom layouts in simulation with the existing API. See #1629.

An alternative to implementing ATFL subscribing would be to overwrite a PhotonCameraSim's stored ATFL that it uses for simulating multitag estimation manually or with an ATFL created from a VisionSystemSim's apriltag targets, but this seems a bit messy.

@amquake amquake added the bug Something isn't working label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant