ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

RViz does not respect transparency (alpha) for a simple URDF component (e.g. cylinder)

asked 2011-08-09 04:43:41 -0600

Pi Robot gravatar image

Hello,

I am trying to make a part of my URDF model semi transparent since the part is a clear 12" acrylic plate. So I tried making the plate a flat cylinder with a light grey color and alpha set to 0.1 as shown below. However, the plate looks solid grey in RViz--the same as if I had set alpha to 1.0. I can make the whole robot more or less transparent by changing the alpha property for the Robot Model display. However, I want just the plate to be transparent. Below is a test URDF file that illustrates the problem. I am trying this using the latest Electric debian packages under Ubuntu 10.04.

<?xml version="1.0"?>

<!-- XML namespaces -->
<robot xmlns:sensor="http://playerstage.sourceforge.net/gazebo/xmlschema/#sensor"
       xmlns:controller="http://playerstage.sourceforge.net/gazebo/xmlschema/#controller"
       xmlns:interface="http://playerstage.sourceforge.net/gazebo/xmlschema/#interface"
       xmlns:xacro="http://ros.org/wiki/xacro" 
       name="test_urdf">

        <link name="base_link">
            <visual>    
                <origin xyz="0 0 0" rpy="0 0 0" />
                <geometry>
                    <cylinder length="0.005" radius="0.15" />
                </geometry>
                <material name="clear_color">
                    <color rgba="0.5 0.5 0.5 0.1"/>
                </material>
            </visual>
        </link>
</robot>
edit retag flag offensive close merge delete

Comments

+1: I have seen the same problem in diamondback on Ubuntu 10.10
Nick Armstrong-Crews gravatar image Nick Armstrong-Crews  ( 2011-08-26 00:52:54 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-09-01 04:17:52 -0600

Wim gravatar image

Can you report this problem on the bug tracking of the visualization stack? You find a link at the bottom of the wiki page http://www.ros.org/wiki/visualization

edit flag offensive delete link more

Comments

Done! The ticket can be found here: https://code.ros.org/trac/ros-pkg/ticket/5145
Pi Robot gravatar image Pi Robot  ( 2011-09-01 05:31:17 -0600 )edit

Question Tools

Stats

Asked: 2011-08-09 04:43:41 -0600

Seen: 2,346 times

Last updated: Sep 01 '11