Skip to content

How to get the axis of a revolute joint? #2196

Closed Answered by jcarpent
2352878630 asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, there is not yet a direct helper to extract it.
Yet, you can recover this information partially as follows:

import pinocchio as pin
joint_model = pin.JointModelRX()
joint_data = joint_model.createData()
axis = joint_data.S[3:]

@jorisv Will you have time to add the getMotionAxis helper to all revolute and prismatic joints in Pinocchio and expose it to Python?

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@jorisv
Comment options

@2352878630
Comment options

@joao-pm-santos96
Comment options

@jorisv
Comment options

@joao-pm-santos96
Comment options

Answer selected by jcarpent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #2195 on March 29, 2024 09:19.