Home | Tutorials | Wiki | Issues
Ask Your Question
0

Load color OBJ in Gazebo 2.2

asked 2015-09-04 04:25:12 -0500

dinl gravatar image

Hi, I'm using Gazebo 2.2 for ROS indigo, I need to load some objects that I've created in obj file forma, so I followed this tutorial where suggest to use a conververt .obj -> .dae collada file format. Then I used this world file:

w1.world :

<?xml version="1.0"?>
<sdf version="1.4">
  <world name="default">
    <include>
      <uri>model://ground_plane</uri>
    </include>
    <include>
      <uri>model://sun</uri>
    </include>
    <model name="my_mesh2">
      <pose>0 0 0  0 0 0</pose>
      <static>true</static>
      <link name="body">
        <visual name="visual">
          <pose> -7 8 0 1.5708 0 0</pose>
          <geometry>
            <mesh>
               <scale>0.01 0.01 0.01</scale>
              <uri>file://mymodel.dae</uri>
            </mesh>
          </geometry>
        </visual>
      </link>
    </model>
  </world>
</sdf>

And launched from terminal with

gazebo w1.world

The mesh is loaded in gazebo, but without color. If I open the .dae file (file is here ) with meshlab the color is displayed, but is not in gazebo. Can somebody help me with this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-09-04 07:36:12 -0500

Stefan Kohlbrecher gravatar image

I'm pretty sure this was last working in Gazebo2, but ceased working afterwards. In a funny coincidence, I independently opened a ticket on the Gazebo issue tracker basically at exactly the same time you asked here.

edit flag offensive delete link more

Comments

Thats so curious, I saw that you solve the problem but I don't understand the solution, just remove the materials?

dinl gravatar imagedinl ( 2015-09-13 03:15:32 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2015-09-04 04:25:12 -0500

Seen: 1,211 times

Last updated: Sep 04 '15