Gazebo | Ignition | Community
Ask Your Question

3D .STL add material -> Model not visible

asked 2018-12-02 10:04:21 -0500

bjajo gravatar image


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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-12-06 10:55:30 -0500

nkoenig gravatar image

I think you are mixing SDF and URDF. Check out:, which contains URDF material examples.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-12-02 09:59:16 -0500

Seen: 1,198 times

Last updated: Dec 06 '18