3D .STL add material -> Model not visible
Hey,
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}">
<geometry>
<mesh filename="package://xxx_description/meshes/xxx.stl" scale="0.001 0.001 0.001"/>
</geometry>
<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 -->
</xacro:if>
Any idea how I can solve this problem?
Asked by bjajo on 2018-12-02 10:59:16 UTC
Answers
I think you are mixing SDF and URDF. Check out: http://wiki.ros.org/urdf/XML/link, which contains URDF material examples.
Asked by nkoenig on 2018-12-06 11:55:30 UTC
Comments