0
$\begingroup$

Gazebo Answers logo

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


Originally posted by AndreiHaidu on Gazebo Answers with karma: 2108 on 2013-05-15

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Gazebo Answers logo

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


Originally posted by scpeters with karma: 2861 on 2013-05-16

This answer was ACCEPTED on the original site

Post score: 3

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.