Gazebo: Q&A Forum - RSS feedhttp://answers.gazebosim.org/questions/Open source question and answer forum for GazeboenCopyright Askbot, 2010-2011.Tue, 06 Mar 2018 02:53:46 -0600How do I get the inertia tensor of a link using it's actual density?http://answers.gazebosim.org/question/18701/how-do-i-get-the-inertia-tensor-of-a-link-using-its-actual-density/Hi,
my question concerns the calculation of the inertia tensor of a mesh.
I have read through the [tutorial](http://gazebosim.org/tutorials?tut=inertia) and different [forum](http://answers.gazebosim.org/question/4372/the-inertia-matrix-explained/) [entries](https://answers.ros.org/question/237421/calculating-inertial-matrix-for-gazebo/), but I still do not understand one part of the calculation. When letting MeshLab calculate the inertia tensor, a unit density is assumed. How do I combine this tensor with my actual density? In the SDF inertia tag, I add the mass of the mesh, which was calculated from the volume and density. Does Gazebo use this somehow?
If not, is it correct to just multiply MeshLab's inertia tensor with the density (assuming uniformly distributed mass)?
**Edit**: I tried out my simulation using the unmodified inertia tensor first, and the tensor multiplied with the actual density. The modified version lead to better results. Using the original tensor, I had cases of my object 'clipping' through other objects, and ODE throwing wild errors. (ODE Message 3: LCP internal error, s <= 0 (s=-1.0319e+05) and so on).
Thanks in advance.
TimTue, 06 Mar 2018 02:53:46 -0600http://answers.gazebosim.org/question/18701/how-do-i-get-the-inertia-tensor-of-a-link-using-its-actual-density/