Transparency property apply to .stl mesh in Gazebo 7.0

asked 2018-10-10 02:14:25 -0600

tseco gravatar image

Hello,

I would like to add the transparency property to an object without success.

The sdf file model is:

<?xml version='1.0'?>
<sdf version='1.6'>
  <model name='maze'>
    <static>true</static>
    <link name="walls">
      <collision name="collision">
        <geometry>
          <mesh>
            <uri>model://maze/meshes/maze_v2.stl</uri>
           <scale>0.0012 0.0012 0.0012</scale>
          </mesh>
        </geometry>
      </collision>
      <visual name="visual">
        <transparency>0.5</transparency>
        <geometry>
          <mesh>
            <uri>model://maze/meshes/maze_v2.stl</uri>
        <scale>0.0012 0.0012 0.0012</scale>
          </mesh>
        </geometry>
      </visual>
    </link>
  </model>
</sdf>

The property transparency does not take effect. Any suggestions? I would like to reproduce the same behaviour as the /view/transparent menu from gazebo.

Thanks in advance,

edit retag flag offensive close merge delete