Gazebo | Ignition | Community
Ask Your Question

bullet tags in sdf file

asked 2015-05-12 00:34:40 -0600

PML gravatar image

I am using Gazebo 5.1.0 and it seems that in sdf the bullet tags to define parameters have some problems.

An example where apparently it will read values from ode instead of bullet:

          <fdir1>1 1 0</fdir1>
          <fdir1>1 1 0</fdir1>

when running the simulator with bullet (gazebo -e bullet) and then inspecting the frictions of the link the value shown is 0.543426, not 0.643426.

And an example where bullet parameters apparently are ignored:


In this case if the simulator runs with ODE, inspecting the link surface parameters shows that the defined values were loaded and the model behaves according to such values. However, if the simulator runs with Bullet (gazebo -e bullet), inspecting the link surface parameters shows that all values where set to 0 and the model misbehaves. Just in case someone wonders the model is a bipedal robot and in order to ensure proper foot contact without undesired sliding/rotation these parameters are essential.

In regard to this issue:

If bullet tags in sdf do not work appropiately, can I set those parameters programatically via a plugin with certainty that doing so works?

Are there undocumented sdf tags for bullet that solve this? (in my humble opinion sdf documentation lacks a lot of much needed information at the moment)


Should give up on trying to use Bullet and stick with ODE?

edit retag flag offensive close merge delete


Can you confirm that the physics engine is actually bullet? Try calling 'gazebo::physics::PhysicsEngine::GetType()' from a plugin.

AndreiHaidu gravatar imageAndreiHaidu ( 2015-05-12 02:59:27 -0600 )edit

I can confirm it is bullet, done so by checking the /gazebo/default/physics topic, first line of message is type: BULLET

PML gravatar imagePML ( 2015-05-13 12:02:15 -0600 )edit

From what I see there are other questions stating problems with the Bullet physics engine.

PML gravatar imagePML ( 2015-05-26 15:52:23 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-01-22 17:59:42 -0600

rittersb gravatar image

updated 2020-07-10 17:07:17 -0600

You have probably figured this out already, but I ran into the same problem as you. The reason it is not using the bullet tags is because it using the ode tag for friction. You can see this in where the engine loads in the friction parameters from the sdf model. The linked issue (#31) to this is looking for a way to combine the friction parameters instead of having separate friction parameters for each physics engine.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2015-05-12 00:34:40 -0600

Seen: 957 times

Last updated: Jul 10 '20