Home | Tutorials | Wiki | Issues
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

3D .STL add material -> Model not visible


I've a working xacro robot for Gazebo. I'm using a .STL-file for the 3d Mesh. Everything is working good so far. Now I want to make it look a bit better and tryed everything for a few days to get any material working in gazebo. The same issue all the time. My 3D Mesh is no longer displayed when I try to ad a material

<xacro:if value="${hq}">
              <mesh filename="package://xxx_description/meshes/xxx.stl" scale="0.001 0.001 0.001"/>
           <material> <!-- TEST -->
              <ambient>0.1 0.1 0.1 1</ambient>
              <diffuse>0.1 0.1 0.2 1</diffuse>
              <specular>0 0 0 0</specular>
              <emissive>0 0 0 1</emissive>
           </material> <!-- TEST -->

Any idea how I can solve this problem?