-
Notifications
You must be signed in to change notification settings - Fork 196
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
[photon-lib] Sim multitag result #973
Conversation
* | ||
* @return The last set layout | ||
*/ | ||
public AprilTagFieldLayout getAprilTagFieldLayout() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is kinda weird... I'm not sure of a better way to do this since we need the ATFL to calculate the multitag result. This does not check what layout the coprocessor has, just the last one set from user code. All coprocessors on a NT instance share the same tag layout (and updating the layout through one camera should mean the others also can get that updated layout), but this uses a static field and technically assumes all coprocessors are on the same NT instance.
It could exist in PhotonCameraSim
instead, but that would require code duplication specifically for sim when setting a tag layout over NT.
The field could also be accessed directly and the getter method removed, but that would require PhotonCameraSim
to be in the same package as PhotonCamera
.
So funny story, the apriltag_field_layout topic is never actually subscribed to in the backend and is currently broken |
So, should we hide it for now and just assume default field? |
I think so, yeah? Barring someone going and implementing it |
Updates simulation to include the pipeline multitag result.