Some questions about forward dynamic with contact constraint(contact-dynamics.hpp) #2168
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Constraint JacobianYou can use the Jacobian of a frame, computed e.g. by computeFrameJacobian, to express your contact constraint Drift termThe drift (We should also update the documentation to link to this: taking care of this in #2169.) You can also look in the code of TSID to learn from another example: New example?There is indeed no example with a |
Beta Was this translation helpful? Give feedback.
Constraint Jacobian
You can use the Jacobian of a frame, computed e.g. by computeFrameJacobian, to express your contact constraint$J(q) v = 0$ . See also discussion #1455 to learn more about this topic.
Drift term
The drift$\gamma = \dot{J}(q, v) v$ that you are looking for will be in
data.a[joint_id]
after callingforwardKinematics(model,data,q,v,0*v)
(note the zero acceleration0*v
in the last argument). You can also usegetFrameAcceleration
(orgetFrameClassicalAcceleration
) to get that acceleration in the frame that corresponds to your Jacobian. See discussion #1395 about this.(We should also update the documentation to link to this: taking care of this in #2169.)
You can also look …