[ODE] Warnings about dMass

Tristan McMillan tmcmillan at tmiconsult.co.za
Tue Sep 12 02:01:36 MST 2006


Hi ODE Community

I'm getting the following warnings when I run my code and I can't seem
to get rid of them:


>ODE Message 2: inertia must be positive definite in dMassCheck() File
mass.cpp Line 43

>ODE Message 2: inertia must be positive definite in dMassCheck() File
mass.cpp Line 43

>ODE Message 2: inertia must be positive definite! in dBodySetMass()
File ode.cpp Line 412

>ODE Message 2: center of mass inconsistent with mass parameters in
dMassCheck() File mass.cpp Line 68

>ODE Message 2: center of mass inconsistent with mass parameters in
dMassCheck() File mass.cpp Line 68

I'm setting the mass of my trimesh body using:

>dMassSetParameters(&mM,mProperties.mass,mProperties.CG[0],mProperties.CG[1],mProperties.CG[2],mProperties.I[0],mProperties.I[1],mProperties.I[2],1500.0,1600.0,1656.0); 

I then assign the geometry to the body and the above set mass to that
body.

I'm not sure if this may be an inccorect way to set the mass of the
body.

Thanks
Tristan



More information about the ODE mailing list