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

AprilTag ID to Pose API #4421

Merged

Conversation

brennenputh
Copy link
Contributor

This PR adds an API for getting an Apriltag Pose3d by passing in its tag id. Also adds Apriltag layout JSON format.
Marking as draft for time being because neither docs or tests are done yet. Looking for feedback on API shape for now.

# Conflicts:
#	wpimath/src/main/java/edu/wpi/first/math/WPIMathJNI.java
#	wpimath/src/main/native/cpp/jni/WPIMathJNI.cpp
@calcmogul
Copy link
Member

calcmogul commented Sep 17, 2022

The t in Apriltag should be capitalized as per https://april.eecs.umich.edu/software/apriltag, so AprilTag.

@brennenputh brennenputh changed the title Apriltag ID to Pose API AprilTag ID to Pose API Sep 17, 2022
Copy link
Member

@calcmogul calcmogul left a comment

Choose a reason for hiding this comment

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

AprilTagFieldLayout still needs tests, and as you probably know, most functions are missing Doxygen/Javadoc comments. You also need to merge main to fix a merge conflict.

@calcmogul
Copy link
Member

Please merge main to resolve conflicts so CI can run.

calcmogul
calcmogul previously approved these changes Sep 30, 2022
@calcmogul
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@calcmogul
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

calcmogul
calcmogul previously approved these changes Oct 4, 2022
@calcmogul
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

calcmogul
calcmogul previously approved these changes Oct 21, 2022
Copy link
Member

@calcmogul calcmogul left a comment

Choose a reason for hiding this comment

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

C++ GetTagPose() needs to return std::optional to match Java.

@PeterJohnson PeterJohnson merged commit b2b473b into wpilibsuite:main Nov 4, 2022
@brennenputh brennenputh deleted the feature/apriltag-id-to-pose branch January 19, 2023 11:38
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.

7 participants