Closed TJBetter closed 4 months ago
Hi @TJBetter, as you did not call any algorithm this behavior is expected. If you just want to get the mass, you could call
In [2]: pin.computeSubtreeMasses?
Docstring:
computeSubtreeMasses( (Model)model, (Data)data) -> None :
Compute the mass of each kinematic subtree and store it in the vector data.mass.
Type: function
and this will fill data.mass
, see Section Center of Mass on the cheat sheet.
Hello all,
Thanks for this making this great repo public, we really like it.
I wonder if you could clarify what does the class data contains? We are using the latest version, and we are trinh to extract the inertia properties from the data class from the cheatsheet (here):
But the above code gives me
data mass is [-1.0, -1.0, -1.0]
, which doesn't match the urdf file:In addition, I wonder if you may know if there is a python api for this great repo? Thank you.