How can I use the function 'pinocchio.getFrameJacobian' in python #2009
Answered
by
jcarpent
mzq740556549
asked this question in
Q&A
-
I saw an function named pinocchio::getFrameJacobian in c++ , but now I want to use it in python . Do you have an example about it ? Thank you ! |
Beta Was this translation helpful? Give feedback.
Answered by
jcarpent
Jul 5, 2023
Replies: 1 comment 2 replies
-
Here is a tiny example of how to extract the documentation using iPython: import puPython 3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:17:34) [Clang 14.0.6 ]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.13.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import pinocchio as pin
In [2]: pin.getFrameJacobian?
Docstring:
getFrameJacobian( (Model)model, (Data)data, (int)frame_id, (ReferenceFrame)reference_frame) -> numpy.ndarray :
Computes the Jacobian of the frame given by its ID either in the local or the world frames.
The columns of the Jacobian are expressed in the LOCAL frame coordinates system.
In other words, the velocity of the frame vF expressed in the local coordinate is given by J*v,where v is the joint velocity.
computeJointJacobians(model,data,q) and updateFramePlacements(model,data) must have been called first.
Type: function |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can just call:
I hope this will help you.