Gazebo | Ignition | Community
Ask Your Question

Which physics engine is used by gazebosim?

asked 2014-01-31 07:35:29 -0500

nerdOmat gravatar image

Gazebo supports 4 physics engines. How do I find out which one of these four my compilation is using?

I would be pleased if you can help me out.

Kind regards Andi

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted

answered 2014-01-31 18:37:40 -0500

scpeters gravatar image

The Gazebo debians currently only have support for ODE (I'll explain why at the end of this post if you're interested). In order to use Bullet, Simbody, and/or Dart, you must install those physics engines and then build Gazebo from source. You can view the cmake messages to see which physics engines it found. You can also use the ldd tool on linux to see which physics libraries your gazebo build is linked with.

To see the libraries:

# This is what it looks like when you have all 4 physics engines
$ ldd `which gzserver` | grep libgazebo_physics => /home/scpeters/ws/gazebo_sdformat/devel_isolated/gazebo/lib/x86_64-linux-gnu/ (0x00007ff3ec986000) => /home/scpeters/ws/gazebo_sdformat/devel_isolated/gazebo/lib/x86_64-linux-gnu/ (0x00007ff3e7460000) => /home/scpeters/ws/gazebo_sdformat/devel_isolated/gazebo/lib/x86_64-linux-gnu/ (0x00007ff3e71c0000) => /home/scpeters/ws/gazebo_sdformat/devel_isolated/gazebo/lib/x86_64-linux-gnu/ (0x00007ff3e6f31000) => /home/scpeters/ws/gazebo_sdformat/devel_isolated/gazebo/lib/x86_64-linux-gnu/ (0x00007ff3e6c8d000)

To use a specific physics engine, use the -e argument (ode is the default).

For example:

gazebo -e bullet
gazebo -e dart
gazebo -e ode
gazebo -e simbody

The reason that the gazebo deb does not depend on any other physics engines is due to versioning and availability in the Ubuntu repositories. Simbody and Dart are not yet in Debian or Ubuntu (though Simbody may be in soon), so the Gazebo deb cannot depend on them. Bullet is in Ubuntu, but the current Ubuntu version is 2.80, while gazebo 1.9 requires bullet 2.81 and gazebo 2 requires bullet 2.82.

edit flag offensive delete link more


Note that as of March 2016, Bullet and Simbody are distributed as part of the Gazebo 6 Ubuntu package

xanderai gravatar imagexanderai ( 2016-03-30 11:27:13 -0500 )edit

answered 2014-01-31 13:39:25 -0500

nerdOmat gravatar image

Thank you. I am new to gazebosim. I figured out how to change the physics engine by a world-plugin. But since ODE is the one I want, I will try to avoid writing a world-plugin for now and and concentrate on the model-plugins.

edit flag offensive delete link more

answered 2014-02-01 22:04:20 -0500

nerdOmat gravatar image

Thank you. This information is very helpful.

edit flag offensive delete link more

answered 2014-01-31 13:27:26 -0500

AndreiHaidu gravatar image

Hi, the default one is ODE.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2014-01-31 07:35:29 -0500

Seen: 6,486 times

Last updated: Feb 01 '14