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

[question] How would I go about optimizing < 6 pose parameters? #121

Closed
themightyoarfish opened this issue Mar 23, 2023 · 3 comments
Closed

Comments

@themightyoarfish
Copy link
Contributor

themightyoarfish commented Mar 23, 2023

I don't know much about optimization, but with PCL and LM optimization, one can use warp functions (e.g. https://pointclouds.org/documentation/classpcl_1_1registration_1_1_warp_point_rigid3_d.html) to limit the degrees of freedom to optimize. This code is also using LM, so what would one need to do to e.g. only optimize translation?
Is it just a matter of changing the 6x6 and 6x1 matrices in the process to nxn and nx1 and change the code that turns the parameters into a transform? Or are there any pitfalls.

Would the same work for GN?

@themightyoarfish
Copy link
Contributor Author

related but potentially different: #104

@koide3
Copy link
Owner

koide3 commented Mar 24, 2023

You can do the same way as #104 or give H[3:, 3:] and b[3:] to the linear solver. Both the ways should work for GN and LM.

https://github.com/SMRT-AIST/fast_gicp/blob/4d8ef99378b099269d82c51ed4b16f9dff922706/include/fast_gicp/gicp/impl/lsq_registration_impl.hpp#L136

@themightyoarfish
Copy link
Contributor Author

Thanks, i will try this.

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

No branches or pull requests

2 participants