Skip to content

IK with rotational constraint #1944

Closed Answered by stephane-caron
arjung128 asked this question in Q&A
Discussion options

You must be logged in to vote

You can formulate your IK as having two tasks:

  1. one for the base, with higher priority (which is what you are aiming for by overriding the values of the configuration vector), and
  2. one for the end effector, with lower priority.

When there is more than one task, the Jacobian matrices and vectors can be stacked, see e.g. this tutorial on weighted inverse kinematics. Be careful that the Jacobian for your rotational task should include a $log_6$ (pin.log6 function) as explained in this note on pose task Jacobians. (In case of doubt, you can always take a look at the FrameTask in Pink, it handles these caveats.)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by arjung128
Comment options

You must be logged in to vote
0 replies
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