Home | Tutorials | Wiki | Issues
Ask Your Question
0

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
6

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
    libgazebo_physics.so.3 => /home/scpeters/ws/gazebo_sdformat/devel_isolated/gazebo/lib/x86_64-linux-gnu/libgazebo_physics.so.3 (0x00007ff3ec986000)
    libgazebo_physics_ode.so.3 => /home/scpeters/ws/gazebo_sdformat/devel_isolated/gazebo/lib/x86_64-linux-gnu/libgazebo_physics_ode.so.3 (0x00007ff3e7460000)
    libgazebo_physics_bullet.so.3 => /home/scpeters/ws/gazebo_sdformat/devel_isolated/gazebo/lib/x86_64-linux-gnu/libgazebo_physics_bullet.so.3 (0x00007ff3e71c0000)
    libgazebo_physics_dart.so.3 => /home/scpeters/ws/gazebo_sdformat/devel_isolated/gazebo/lib/x86_64-linux-gnu/libgazebo_physics_dart.so.3 (0x00007ff3e6f31000)
    libgazebo_physics_simbody.so.3 => /home/scpeters/ws/gazebo_sdformat/devel_isolated/gazebo/lib/x86_64-linux-gnu/libgazebo_physics_simbody.so.3 (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

Comments

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
0

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

AndreiHaidu gravatar image

Hi, the default one is ODE.

edit flag offensive delete link more
0

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

nerdOmat gravatar image

Thank you. This information is very helpful.

edit flag offensive delete link more
0

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

Question Tools

Stats

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

Seen: 3,994 times

Last updated: Feb 01 '14