[SOLVED] Adding image texture error


#1

Dear all,

When I try to build up a maze scenario, I have some visualization errors.
I first build up the model in Solidworks and exported it as .stl file. Then I used blender to trnasfer it into .dae file by adding brick-like textures. However, when I load it into NRP, it looks no texture. On the other hand, when I check the NRP model in gazebo seems correct and by running as

rosrun gazebo_ros gzclient

The dae is embedded into the sdf file like

<model name="wall">
  <static>true</static>
  <link name="link">
    <visual name="visual">
      <cast_shadows>false</cast_shadows>
      <pose>0 0 0 0 0 0</pose>
      <geometry>
       <mesh>
          <uri>model://snake_wall_world/meshes/snake_wall_world.dae</uri>
        </mesh>
      </geometry>
    </visual>
    <collision name="collision">
      <pose>0 0 -0.008 0 0 0</pose>
      <geometry>
        <box>
          <size>100 100 0.016</size>
        </box>
      </geometry>
    </collision>
  </link>
</model>

The screenshots are as below. Could someone give me some ideas?
Meanwhile, if I check the visual image from the camera on the robot, it does show the texture like

Regards,
Zhenshan