Gazebo | Ignition | Community
Ask Your Question

After changing a links Inertial values dynamically, its behavior does not change.

asked 2013-05-15 06:23:07 -0500

AndreiHaidu gravatar image


I am using Gazebo 1.8.0. In a plugin I am changing the Inertial values of some links, even though the values change, their behavior stays the same in the simulation.
Do I have to re-load them somehow?

Here is the code snippet how I set the values:

this->link->GetInertial()->SetInertiaMatrix(new_inertia, new_inertia, new_inertia, 0, 0, 0);

Thanks, Andrei

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-05-16 01:11:12 -0500

scpeters gravatar image

After calling Link::SetInertiaMatrix, you'll need to call Link::UpdateMass. This is implemented for ODE, but not yet for bullet.

edit flag offensive delete link more

Question Tools


Asked: 2013-05-15 06:23:07 -0500

Seen: 217 times

Last updated: May 16 '13