basic vision subsystem stuff that probably doesn't even work. This is… - #4
Open
NTCheese wants to merge 2 commits into
Open
basic vision subsystem stuff that probably doesn't even work. This is…#4NTCheese wants to merge 2 commits into
NTCheese wants to merge 2 commits into
Conversation
… just here for Ashton to see which one is different, how they're different, and why one is different that the other.
EndofTimeWorks
requested changes
Feb 16, 2026
Comment on lines
+148
to
+153
|
|
||
| // Check if the tag exists in the field layout, and if so, continue with calculation | ||
| if (tagPose.isPresent()) { | ||
| // Calculate camera pose based on the tag pose | ||
| Transform3d bestCameraToTarget = tag.bestCameraToTarget; | ||
| Pose3d bestCameraPose = tagPose.get().plus(bestCameraToTarget.inverse()); |
Contributor
There was a problem hiding this comment.
these hardcoded tag IDs (14, 15, 4, 5, 3, 16) are from the 2025 field. need to update these for the 2026 layout or better yet pull them from a constant/config so they're not scattered across the codebase.
Comment on lines
+120
to
+121
| Queue<Pose3d> tagPoses = new ArrayDeque<>(); | ||
| Queue<Pose3d> robotPoses = new ArrayDeque<>(); |
Contributor
There was a problem hiding this comment.
same hardcoded 2025 tag IDs here. see comment on ATVisionIOPhoton.
| public class ATVisionConstants { | ||
| // AprilTag layout | ||
| public static AprilTagFieldLayout aprilTagLayout = | ||
| AprilTagFieldLayout.loadField(AprilTagFields.kDefaultField); |
Contributor
There was a problem hiding this comment.
AprilTagFields.kDefaultField might not be the 2026 field. double check this loads the right layout.
Signed-off-by: Ashton A. <uhdbits@duck.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… just here for Ashton to see which one is different, how they're different, and why one is different that the other.