I have been trying to get a CAD *.step file converted to collada *.dae and to get shown in Gazebo with correct colors. I all cases it seems that I only get the grey uncolored version, when Gazebo loads the dae file. I am current using ROS indigo with the standard Gazebo distribution that is part of this release.
In MeshLab I am able to see the colors correctly in the exported *.dae models:
I have also been attempting to convert using FreeCad, Rhinoceros, Blender, Solidworks. But I still ended up unable to display the colors from the step file.
The way I include into gazebo the *.dae is the following:
<?xml version='1.0'?>
<sdf version='1.4'>
<model name="robot_v3_solid">
<static>true</static>
<link name="body">
<pose>0 0 0 0 0 0</pose>
<collision name="collision">
<geometry>
<mesh>
<uri>model://robotti_v3_solid/model/meshes/robot_body.dae</uri>
</mesh>
</geometry>
</collision>
<visual name="visual">
<geometry>
<mesh>
<uri>model://robotti_v3_solid/model/meshes/robot_body.dae</uri>
</mesh>
</geometry>
</visual>
</link>
</model>
</sdf>
Is there some method or program I can use, to convert my *step files into *.dae, to ensure gazebo is able to read the colors and display them correctly ? I have been looking trough the guides but have not bee able to find an answer to this problem. Re-coloring all components individually via sdf files, with just to much trouble, so I am looking for a better option.
Originally posted by mpc on Gazebo Answers with karma: 76 on 2016-08-02
Post score: 0