Home | Tutorials | Wiki | Issues
Ask Your Question
0

3D .STL add material -> Model not visible

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

bjajo gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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

nkoenig gravatar image

I think you are mixing SDF and URDF. Check out: http://wiki.ros.org/urdf/XML/link, which contains URDF material examples.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 17 times

Last updated: Dec 06