|
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. |
Answered by
fbxiang
Mar 20, 2022
Replies: 1 comment 1 reply
|
You can use |
1 reply
Answer selected by
keiohta
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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]