Skip to content

Can we get joint axis? #71

Answered by fbxiang
keiohta asked this question in Q&A
Mar 20, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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 by pose.to_transformation_matrix()[:3,:3] @ [1,0,0]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@keiohta
Comment options

Answer selected by keiohta
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