Gazebo | Ignition | Community
Ask Your Question

DART contact always sets mu2 = 1?

asked 2020-04-20 22:51:30 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hello Gazebo-land,

Very quickly:

Here's what I am running:

Here's my .world file:

<?xml version="1.0" ?>
<sdf version="1.7">
  <world name="default">
    <physics type="dart">

    <!-- Ground -->
    <!-- Cardboard Box -->
      <pose>0 0 1 0 0 0</pose>


Notice that I intend to use DART for physics and collision detection. The model referred to is the standard Gazebo model called cardboard_box. (I have not included it here.)

Within models/cardboard_box/model.sdf we set mu = mu2 = 0.0


The problem: Once the box is sitting on the ground, we can play with gravity in order to effectively change the inclination of the ground. Two observations:

  1. [For example] If we set gravity(in the order {x,y,z}) to {1.0, 0.0, -9.81}, then the box takes off in the +x-direction due to the frictionless surface.
  2. If we set gravity to {0.0, 1.0, -9.81}, the box does not move. In fact, the box will not move for any value for the y-dir gravity below 9.81.
  3. If we set gravity to {0.0, 9.82, -9.81}, the box will start to slowly slide in the +y-direction at a much reduced acceleration.

This behavior suggests that mu2 is being set to a value of 1, regardless of what is in the sdf file.

I'm trying to figure out what is going on, what I'm missing or have set up incorrectly, or if there is a bug.

Thanks for the help.


edit retag flag offensive close merge delete


I should have noted that I'm just using the cardboard_box model as an example. This issue came to my attention because it is affecting any model I use in Gazebo with DART.

GNelson gravatar imageGNelson ( 2020-04-20 22:57:19 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2020-04-27 05:38:21 -0500

Clément Rolinat gravatar image

hello, I think that dart do not use all the parameters provided in the sdf. I ran in a similar issue when I tried to set the max_contact parameter : gazebosim question but unfortunately I didn't receive any answer.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2020-04-20 22:51:30 -0500

Seen: 214 times

Last updated: Apr 27 '20