Home | Tutorials | Wiki | Issues
Ask Your Question
0

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

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

AndreiHaidu gravatar image

Hi,

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
3

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

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
Login/Signup to Answer

Question Tools

Stats

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

Seen: 103 times

Last updated: May 16 '13