-
Hi author, I want to know a joint axis but haven't figured out how to do that. It seems provided methods do not include such functionality, so opening this thread. So, is there any possible way to get a joint axis from a I imagine if a URDF is like:
then I can get Thanks in advance for your continuous support. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use |
Beta Was this translation helpful? Give feedback.
You can use
joint.get_parent_link().pose * joint.get_pose_in_parent()
to get the frame of this joint. The x axis of this frame is the joint direction, and the position of the frame is the joint origin. For example, you can extract the direction bypose.to_transformation_matrix()[:3,:3] @ [1,0,0]