friction changes on feet wont take effect

427 views
Skip to first unread message

Soshiant David

unread,
Jan 17, 2016, 1:57:52 AM1/17/16
to ROS Sig Aldebaran
i'm tring to simulate the effect of slippery ground and i go to naoGazebo.xacro and change the
<mu>0</mu>
<mu2>0</mu2>
and it still has friction
im working on
https://github.com/ros-naoqi/nao_moveit_config
i even ried adding
<surface>
        <friction>
          <ode>
            <mu>0</mu>
            <mu2>0</mu2>
          </ode>
        </friction>
      </surface>
to the collision part of the nao_sensors.xacro
but still no changes

Soshiant David

unread,
Jan 17, 2016, 2:52:25 AM1/17/16
to ROS Sig Aldebaran
i changed the property of ground in its sdf and it got solved
but i think gz5 has problem with urdf cause none of the parameters in naoGazebo.xacro make any changes (i only tried fsr properties like  mu max vel and...)

John Hsu

unread,
Jan 17, 2016, 3:42:31 AM1/17/16
to ros-sig-...@googlegroups.com
Hi,

Looks like you found a workaround already, but I just want to add here that adding friction blocks to urdf could be a little bit tricky. Here's an example that works for Atlas model:


In this example, the legacy way of using an extension block to add friction coefficients to a collision looks like this:

  <gazebo reference="r_foot">
    <mu1>1.5</mu1>
    <mu2>1.5</mu2>
  </gazebo>

Alternatively, since sdf3, recommended approach is to use the sdf block in extension, looks like this (see this comment in code):

  <gazebo reference="r_foot">
    <!-- using sdf block syntax directly in extension -->
    <collision>
      <friction>      
        <ode>      
          <mu>1.5</mu>
          <mu2>1.5</mu2>
        </ode>      
      </friction>      
</collision>
  </gazebo>


On the physics side, ultimately the effective friction coefficient used by the contact constraint is chosen as the minimum of the two coefficients from surfaces in contact (see this code for example). That should explain why reducing the ground friction coefficient worked for you.

Hope this helps.
John


--
You received this message because you are subscribed to the Google Groups "ROS Sig Aldebaran" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ros-sig-aldeba...@googlegroups.com.
To post to this group, send email to ros-sig-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ros-sig-aldebaran.
To view this discussion on the web visit https://groups.google.com/d/msgid/ros-sig-aldebaran/4910b938-3ec2-41c0-acdb-d2c1f79a1127%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages