Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Gazebo model does not load the materials

Hi all. I have created my world using Google Sketchup and saved the materials (jpg format) and .dae file into ~/.gazebo/models/MY_MODEL file. I have configured both model.config and model.sdf files. My model.sdf file is this:

<?xml version="1.0" ?>
<sdf version="1.5">
  <model name="MY_MODEL">
    <link name="link">
      <collision name="collision">
        <geometry>
          <mesh>
            <uri>model://MY_MODEL/meshes/model_d.dae</uri>
          </mesh>
        </geometry>
      </collision>
      <visual name="visual">
        <geometry>
          <mesh>
            <uri>model://MY_MODEL/meshes/model_d.dae</uri>
          </mesh>
        </geometry>
      </visual>
    </link>
  </model>
</sdf>

After that I checked my world using gazebo and importing the newly created model and everything looks fine. But when I try to do the same from other terminal (not from ~/.gazebo/models/MY_MODEL) I do not get the texture/materials of my model, everything is silver. Why is that?