Skip to content

Ways of computing inverse of the mass inertia #2133

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

You must be logged in to vote

As far as I can see, your inertia is not positive definite, so not well-defined.
Please use the following script to check on your side.

import pinocchio as pin
import numpy as np

p = np.array([2., -0.57240428, 0.4859581, 0.02404804, 0.0073735735, 0., 0.0073735735, -0., 0., 0.0073735735])
inertia = pin.Inertia.FromDynamicParameters(p)

assert (np.linalg.eig(inertia.inertia)[0] > 0.).all()

In other words, you should be careful to properly setup it.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@cmastalli
Comment options

cmastalli Jan 17, 2024
Collaborator Author

@jcarpent
Comment options

@cmastalli
Comment options

cmastalli Jan 17, 2024
Collaborator Author

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
2 participants