Skip to content

Inertia matrix M(q) and Centripetal + Coriolis torques C(q, q•) #139

Discussion options

You must be logged in to vote

Hello Aditya, we are glad you are using one of the HEBI Robots.

We don't have a particular function that can calculate all parts of the equation of motions, but we do provide the tools to get you 90% of the way there.

To compute the effect of gravitational forces g(q) on the legs, you can use our gravity compensation torques to get the 3x1 external forces matrix. This should get a very good approximation.

Make sure you are on the newest version of the HEBI Python API.


''' Main Function:
get_grav_comp_efforts(positions: npt.NDArray[np.float64], gravity: npt.NDArray[np.floating[Any]], output=None)
'''

position = arm.last_feedback.position
gravity = [0,0,-9.81]
gravComp_Array = arm.robot_m…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by GogiPuttar
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Python
Labels
question Questions, comments or problems
1 participant