Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Create a <gazebo> tag which references the URDF link and contains a <collision name="..."> with a name matching the generated SDF collision. In simple cases the name is the link's name + _collision. However, this isn't always the case (fixed joint lumping changes the collision name) so I recommend loading the URDF into gazebo and using the GUI left panel to figure out the actual name of the generated SDF collision.

Here is an example of torsional friction on a 1x1x1m cube defined in URDF.

<?xml version="1.0" ?>

<robot name="my_robot">
  <link name="some_link">
      <mass value="0.5"/>
      <origin xyz="0 0 0"/>
      <inertia ixx="0.083" ixy="0.0" ixz="0.0" iyy="0.083" iyz="0.0" izz="0.083"/>
        <box size="1 1 1"/>
        <box size="1 1 1"/>

  <gazebo reference="some_link">
    <collision name="some_link_collision">