How to calculate Jacobian

asked 2019-06-06 14:51:50 -0600

adussa3 gravatar image


I am a working with a UR5 arm and I am trying to calculate the Jacobian from the joints of the arm.

I understand that the MoveIt framework provides a function to get the Jacobian; however, I need to figure out how to code it in C++ for the project.

I am following this tutorial:

And I'm having trouble getting the "chain_" since because for some reason, I am not able to import the pr2_mechanism_model packages.

I was wondering if someone could tell me how to define "chain_" and (if possible) tell me the steps to calculate the Jacobian.

Thank you in advance

edit retag flag offensive close merge delete


Post the errors you are having when you try to import the pr2_mechanism_model packages.

Geoff gravatar image Geoff  ( 2019-06-06 19:03:55 -0600 )edit

I'm guessing this tutorial is a much-more recent tutorial that includes a section on how to compute the Jacobian

jarvisschultz gravatar image jarvisschultz  ( 2019-06-07 08:04:19 -0600 )edit

So if you use the MoveIt! libraries, you could compute the Jacobian that way. If you want to avoid MoveIt! entirely, you could use something like kdl_parser to convert the URDF to a KDL "chain", and then use KDL to compute Jacobian. You certainly shouldn't need the pr2_mechanism_modelpackages

jarvisschultz gravatar image jarvisschultz  ( 2019-06-07 08:06:54 -0600 )edit

Hi everyone, thank you for your responses! I was able to figure it out!

adussa3 gravatar image adussa3  ( 2019-06-09 09:59:50 -0600 )edit

It would be great if you could write an answer describing how you solved your problem so that future readers can benefit from your experiences. Plus, this question could then be marked as answered.

jarvisschultz gravatar image jarvisschultz  ( 2019-06-10 09:12:52 -0600 )edit