Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inertia modified by linkModifier gets hardcoded to 0.01 indipendently of link geometry #17

Open
traversaro opened this issue Feb 22, 2022 · 2 comments

Comments

@traversaro
Copy link
Member

Due to the line

new_inertia[new_inertia < 0.01] = 0.01
if the inertia is lower then 0.01 the inertia of the new model is hardcoded to the 0.01 .

This is quite an high value as even a big link such as the root_link of the iCub3 has inertia in the order of magnitude of 1e-3, not 1e-2, see https://github.com/robotology/icub-models/blob/ab11b8cb8799b85a8805be95e3d66e7c6c7585ff/iCub/robots/iCubGenova09/model.urdf#L6 .
Ideally this logic should be made at least optional.

cc @GrmanRodriguez @Nicogene @AlexAntn @CarlottaSartore @fabiodinatale

@traversaro traversaro changed the title Modifier inertia gets hardcoded to 0.01 Inertia modified by linkModifier gets hardcoded to 0.01 indipendently of link geometry Feb 22, 2022
@GrmanRodriguez
Copy link
Contributor

This was added because when inertia values are too low, the model collapses on itself (see here). We saw this behavior happen enough times when applying it to stickBot that we deemed it necessary to add this restriction.

However, I agree that 0.01 is too high (even the link I sent suggests 0.001) and that we can make it optional.

@traversaro
Copy link
Member Author

This was added because when inertia values are too low, the model collapses on itself (see here).

Just to clarify why it is convenient to make this configurable, the "the model collapses on itself" does not only depend on the inertia values, but also on the specific simulator that is too sensitive to the stiffness of the differential equation (in your case, I guess Gazebo with ODE and default physics settings). The same URDF model that is collapsing on itself in Gazebi with ODE and default physics settings may work perfect fine with another simulator that for example uses a variable step integrator or even just Gazebo with other physics settings. See robotology/icub-models#121 for a bit more details on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants