Skip to content

Choose 'starting-frame' for compute(Frame/Joint)Jacobian #2336

Answered by jcarpent
lukas-ramlab asked this question in Q&A
Discussion options

You must be logged in to vote

You can do it indirectly, as follows:

pin.computeJointJacobians(model,data,q)
_1M2_ = data.oMi[joint1_id].actInv(data.oMi[joint2_id])
J1 = pin.getJointJacobian(model,data,joint1_id,pin.LOCAL)
J2 = pin.getJointJacobian(model,data,joint2_id,pin.LOCAL)
J = J1 - _1M2_.toActionMatrix() @ J2

This snippet should be self-understandable.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@lukas-ramlab
Comment options

@jcarpent
Comment options

Answer selected by lukas-ramlab
@lukas-ramlab
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2335 on July 17, 2024 08:29.