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

Estimation of mass returns non- positive definite inertia matrix #99

Closed
smeng9 opened this issue Apr 27, 2021 · 1 comment · May be fixed by krishauser/KrisLibrary#20
Closed

Estimation of mass returns non- positive definite inertia matrix #99

smeng9 opened this issue Apr 27, 2021 · 1 comment · May be fixed by krishauser/KrisLibrary#20

Comments

@smeng9
Copy link
Contributor

smeng9 commented Apr 27, 2021

Hi Professor,

I have encountered a problem with rigidObjects when using the Simulator.

For some specific objects that I tried to add to the world, it will prevent the simulator running.
The inertia matrix returned should be positive definite all the time.

I have created a minimum example that shows the issue.
bug_reproduce.zip

Thanks.

@krishauser
Copy link
Owner

I found the issue. The problem is that your mesh is basically one-sided, and the method used to estimate volumetric inertia assumes the mesh is watertight. Hence, its results are way, way off. For geometries that are one-sided, you should use surfaceFraction = 1 in the estimate.

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