ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

One thing to think about: your inertia tags have to match your mass. The mass you specified (100 kg and 1 kg) only tells the simulation the gravitational force. What you want is inertia: the wall should be much harder to move than the door (at the moment, they are the same). Also see Wikipedia's List of moment of inertia tensors.

For a mass of 1 kg, the door should have something like this if my calculations are right:

ixx = 1/3 * m * (y^2 + z^2) = 1/3 * 1 * (1.2^2 + 2.4^2) = 2.4
iyy = 1/3 * m * (x^2 + z^2) = 1/3 * 1 * (0.2^2 + 2.4^2) = 1.933333
izz = 1/3 * m * (x^2 + y^2) = 1/3 * 1 * (0.2^2 + 1.2^2) = 0.493333

So your door inertia was in the right ballpark. The wall should have 100 times that.

On the other hand, you may also want to change some other joint properties (damping or such?) to make the door swing more lightly. I remember there was one guy on this answer board who had the opposite problem (the door would never stop swinging) a while ago.