Gazebo | Ignition | Community
Ask Your Question
0

DART contact always sets mu2 = 1?

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

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">
      <max_step_size>0.001</max_step_size>
      <real_time_factor>1</real_time_factor>
      <real_time_update_rate>1000</real_time_update_rate>
      <dart>
    <solver>
      <solver_type>dantzig</solver_type>
    </solver>
    <collision_detector>dart</collision_detector>
      </dart>
    </physics>

    <!-- Ground -->
    <include>
      <uri>model://ground_plane</uri>
    </include>
    <!-- Cardboard Box -->
    <include>
      <uri>model://cardboard_box/</uri>
      <pose>0 0 1 0 0 0</pose>
    </include>

  </world>
</sdf>

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

  <friction>
    <ode>
      <mu>0.0</mu>
      <mu2>0.0</mu2>
    </ode>
  </friction>

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.

-GNelson

edit retag flag offensive close merge delete

Comments

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 -0600 )edit

1 Answer

Sort by » oldest newest most voted
0

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

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

Stats

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

Seen: 225 times

Last updated: Apr 27 '20