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

Bug fix in quaterion::normalize and quaternion::log3 #2056

Conversation

modu-robotics
Copy link

@modu-robotics modu-robotics commented Sep 16, 2023

Related to #2050, this PR fixes a bug in quaternion::normalize and quaternion::log3 methods.

Copy link
Author

@modu-robotics modu-robotics left a comment

Choose a reason for hiding this comment

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

Left some comments below. Looks like this branch has a different CI setup than master branch.

Eigen::Matrix<double, 3, 4> jac_expected;
jac_expected << 2, 0, 0, 0,
0, 2, 0, 0,
0, 0, 2, 0;
Copy link
Author

Choose a reason for hiding this comment

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

Comparing with hand derived analytic solution. Not sure if it is too trivial, but this was the failure before this PR. Jacobian value at zero quaternion was [I, 0] instead of [2*I, 0]

src/math/quaternion.hpp Show resolved Hide resolved
@jcarpent jcarpent closed this Jun 1, 2024
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.

2 participants