-
Notifications
You must be signed in to change notification settings - Fork 11
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
Replace AdjointMapJacobianQ
with gtsam::Adjoint
w/ Jacobians
#292
Conversation
7f66e4a
to
3d0930a
Compare
|
||
// Calculations | ||
gtsam::Pose3 T_21 = joint_->childTparent(q, H_q ? &T_21_H_q : nullptr); |
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.
@gchenfc you may want to re-add this in the wrenchEquivalence constraint.
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.
I'm adding it. I figured it out.
tests/testPoseFactor.cpp
Outdated
Gaussian::shared_ptr cost_model = Gaussian::Covariance(gtsam::I_6x6); | ||
gtsam::Key wTp_key = internal::PoseKey(1), wTc_key = internal::PoseKey(2), | ||
q_key = internal::JointAngleKey(1); | ||
size_t k = 777; |
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.
Ahhh we'll have to re-add these tests again. @gchenfc man, we need to compartmentalize PRs better :/
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.
Actually these test changes are in #290.
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.
Made updates to get this working so we can merge whenever!
After borglab/gtsam#885 merges, then this will use, e.g.
Pose3 T = joint->parentTchild(q, T_H_q); Vector6 twist_p = T.Adjoint(twist_c, H_T, H_twist_c); H_q = H_T * T_H_q;
instead of:
This is just much more sane and generalizeable and uses more GTSAM code instead of custom code.