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

pose estimation option #24

Merged
merged 1 commit into from
Jan 24, 2024
Merged

pose estimation option #24

merged 1 commit into from
Jan 24, 2024

Conversation

christianrauch
Copy link
Owner

@christianrauch christianrauch commented Dec 13, 2023

The previous pose estimation method via homography (https://dsp.stackexchange.com/a/2737/31703) was not very accurate in some scenarios (issue #14). This PR adds a new parameter pose_estimation_method that lets a user select one of two pose estimation methods:

  1. pnp (default): uses OpenCV's cv::solvePnP
  2. homography: essentially the old method via the homography but reusing the implementation estimate_pose_for_tag_homography from the AprilTag library

pnp is more accurate but slower than homography and is going to be the new default pose estimation as we prefer accuracy over runtime on this case. See #14 (comment) for details (thanks @lennartalff).

Fixes #14.

@christianrauch christianrauch marked this pull request as ready for review January 9, 2024 21:46
@christianrauch christianrauch force-pushed the pose branch 2 times, most recently from 659527c to a38bc4a Compare January 9, 2024 22:58
@23pointsNorth
Copy link
Contributor

P.S. Tested this branch and the results are much much more stable.

@christianrauch
Copy link
Owner Author

Thanks for confirming this.

@christianrauch christianrauch merged commit 21d1849 into master Jan 24, 2024
2 checks passed
@christianrauch christianrauch deleted the pose branch January 24, 2024 20:26
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.

Inaccurate Pose/TF Calculation
2 participants