Skip to content

Wrong inertia properties extracted from data class using python interface. #2189

Answered by fabinsch
TJBetter asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@TJBetter
Comment options

@jcarpent
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
3 participants
Converted from issue

This discussion was converted from issue #2188 on March 26, 2024 08:49.