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

Bugfix: correct SO(3) logmap when theta small #780

Merged
merged 1 commit into from
Jun 3, 2021
Merged

Bugfix: correct SO(3) logmap when theta small #780

merged 1 commit into from
Jun 3, 2021

Conversation

tmcg0
Copy link
Contributor

@tmcg0 tmcg0 commented Jun 1, 2021

This PR fixes #746.

When mod(theta, 2pi) is small, the SO(3) logmap has to be handled specially (to avoid numerical problems) using the Taylor series expansion. Previously the code which implemented this first-order Taylor series expansion was incorrect (although the comment above it was correct). This PR corrects the line of code, as well as adds a comment above directing the user to the related issue (#746), where the user can find the derivation of the equation.

when theta near 0 (or 2pi, 4pi...)
Copy link
Collaborator

@varunagrawal varunagrawal left a comment

Choose a reason for hiding this comment

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

LGTM!

@ProfFan ProfFan merged commit 26356db into borglab:develop Jun 3, 2021
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.

SO3 matrix log when theta is close to zero
3 participants