0
$\begingroup$

Gazebo Answers logo

I am evaluating the physics engine of Gazebo and am having a strange problem getting a simple rotary inverted pendulum to work. My analytical solution shows that the natural period should be less than 1 second, but in the simulation it has a period of around of 5 seconds. The horizontal support arm is not moving in reaction to the pendulum swinging. I am applying a moment to the pendulum using the GUI to cause it to swing to observe the period. I have placed the SDF file on pastebin:

http://pastebin.com/EJK1AANe

Note that the meshes have been replaced with basic geometry for simplicity. The inertial parameters were generated using a rough Solidworks model of a brass pendulum with an aluminum arm.

Is there a problem with the SDF file causing the weird simulation result?


Originally posted by john123 on Gazebo Answers with karma: 13 on 2016-06-14

Post score: 1

$\endgroup$

1 Answer 1

0
$\begingroup$

Gazebo Answers logo

This is mainly a singularity problem since the body's moments of inertia are highly unequal and the inertia matrix is poorly conditioned. In this case, the integration error is very high resulting in unrealistic behaviour. This is particularly evident for long thin bodies rotating about their longer axis. For this reason, the user guide states that the user should avoid using long thin bodies.

In your case, by setting Izz=Ixx=Iyy the problem is solved and the natural period turns out to be approximately 0.7 seconds.


Originally posted by mrslvgg with karma: 81 on 2016-06-18

This answer was ACCEPTED on the original site

Post score: 2


Original comments

Comment by john123 on 2016-06-18:
Thank, that makes sense. Are there any plans to make DART Sim part of the default binary distribution?

Comment by mrslvgg on 2016-06-27:
I have no idea, but you can find the gazebo project status and the future release schedule here: http://gazebosim.org/

$\endgroup$

Your Answer

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