-
Notifications
You must be signed in to change notification settings - Fork 902
Endow NavState with group operations #1930
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
Conversation
ProfFan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving sans some comments. I verified most equations against my notes but I haven't verified formally the adjoint's Jacobians, no bandwidth for that.
I am still very concerned about the use of epsilon around the repository. I fixed (while leaving some side effects unsolved) Rot3 in #780, and I am pretty sure there could be more. But this is not super related to this PR, so we can always check later.
| 0.5 * ((1 - phi2 / 2 - c) / phi4 - 3 * (phi - s - phi3 / 6.) / phi5) * | ||
| (WVW * W + W * WVW); | ||
|
|
||
| // TODO(Frank): this threshold is *different*. Why? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The following is probably not correct, refer to #780. Have no bandwidth to look into this more carefully.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right! And epsilon hides it: we never use it, actually :-) So, I removed epsilon, use same threshold in both cases, and corrected as
v + 0.5 * w.cross(v)
| EXPECT(assert_equal(t2, t1.retract(d12))); | ||
| Vector d21 = t2.localCoordinates(t1); | ||
| EXPECT(assert_equal(t1, t2.retract(d21))); | ||
| // EXPECT(assert_equal(d12, -d21)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not expected for retractions
This is a smaller PR than #1613 that adds$SE_2(3)$ group operations to NavState. Be careful though: we use R,t,v order.
A lot of this code is written by @varunagrawal and possibly @ProfFan.
This PR:
ExpmapTranslationtoPose3, whose derivative with respect to angular velocity is exactly QPose3::ExpmapandNavState::ExpmapExpmapTranslationavoids code duplication and clearly exposes the structure of the exponential map Jacobian.NavState::Expmapis also faster because we don't create the 3x3 W matrices unless the derivative is asked for.