robotology / icub-models

Official URDF and SDF models of the iCub humanoid robot.
Creative Commons Attribution Share Alike 4.0 International
33 stars 34 forks source link

[Q/A] Query regarding Gazebo foot collision elements #38

Closed prashanthr05 closed 4 years ago

prashanthr05 commented 4 years ago

Few SDF collision elements here, for the foot seems to be outside the parent tag collision.

  <maxContacts>4</maxContacts>
  <kp>18000000</kp>
  <kd>100</kd>
  <maxVel>100</maxVel>
  <minDepth>0.0001</minDepth>
  <mu1>1</mu1>
  <mu2>1</mu2>
  <fdir1>0 0 0</fdir1>

Also, http://sdformat.org/spec?elem=collision&ver=1.6 specifies max_contacts tag. Moreover, the parameters kp, kd, mu1, etc fall as children of friction->physics_engine (where in this example, physics_engine is a place-holder. eg, physics_engine ode) tags all under surface element.

There seems to be a mismatch between the SDF format and the gazebo reference tags written in the robot URDF file. Is this because we use the SDF tags within a URDF format?

prashanthr05 commented 4 years ago

cc @nunoguedelha @traversaro @GiulioRomualdi

GiulioRomualdi commented 4 years ago

I think that also @diegoferigo may know the answer

diegoferigo commented 4 years ago

Here is the answer: http://gazebosim.org/tutorials?tut=ros_urdf#%3Cgazebo%3EElementsForLinks

prashanthr05 commented 4 years ago

Great, Thanks! That resolved my doubts.