Skip to content

basic vision subsystem stuff that probably doesn't even work. This is… - #4

Open
NTCheese wants to merge 2 commits into
developfrom
april-tag-basics-ari
Open

basic vision subsystem stuff that probably doesn't even work. This is…#4
NTCheese wants to merge 2 commits into
developfrom
april-tag-basics-ari

Conversation

@NTCheese

Copy link
Copy Markdown
Contributor

… just here for Ashton to see which one is different, how they're different, and why one is different that the other.

… just here for Ashton to see which one is different, how they're different, and why one is different that the other.
@NTCheese
NTCheese requested a review from UHDbits January 19, 2026 20:29
@NTCheese
NTCheese changed the base branch from main to develop January 19, 2026 20:29

@EndofTimeWorks EndofTimeWorks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vision code structure looks solid. , proper IO abstraction, sim support. a few things to address though.

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());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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<>();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same hardcoded 2025 tag IDs here. see comment on ATVisionIOPhoton.

public class ATVisionConstants {
// AprilTag layout
public static AprilTagFieldLayout aprilTagLayout =
AprilTagFieldLayout.loadField(AprilTagFields.kDefaultField);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AprilTagFields.kDefaultField might not be the 2026 field. double check this loads the right layout.

Signed-off-by: Ashton A. <uhdbits@duck.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants