Home | Tutorials | Wiki | Issues
Ask Your Question

Revision history [back]

SDF uses file instead of package:

<visual name='base_link_visual'>
    <pose>0 0 0 0 0 0</pose>
    <geometry>
      <mesh>
        <scale>1 1 1</scale>
        <uri>file://path_to_dae/textured.dae</uri>
      </mesh>
    </geometry>
  </visual>

or you can use the model uri:

<visual name='base_link_visual'>
    <pose>0 0 0 0 0 0</pose>
    <geometry>
      <mesh>
        <scale>1 1 1</scale>
        <uri>model://model_name/meshes/textured.dae</uri>
      </mesh>
    </geometry>
  </visual>

SDF will use ERB in the near furture. This will essentially add ruby scripting into SDF. Here is an example.