Different topics shown in rqt_graph as same topic when using namespaces and underscores

asked 2017-01-12 07:26:13 -0500

Mellon gravatar image

updated 2017-01-25 01:06:12 -0500

When I use the following launch file:

  <!-- launch talker and listener, remmaping 'chatter' to 'myns_chatter' -->
  <node pkg="roscpp_tutorials" type="talker" name="talker1">
    <remap from="chatter" to="myns_chatter"/>
  <node pkg="roscpp_tutorials" type="listener" name="listener1">
    <remap from="chatter" to="myns_chatter"/>
  <!-- launch talker and listener, without remapping, in a namespace 'myns'. -->
  <node pkg="roscpp_tutorials" type="talker" name="talker2" ns="myns" />
  <node pkg="roscpp_tutorials" type="listener" name="listener2" ns="myns" />

I get the following graph in rqt_graph

image description

When in fact rostopic list shows that there are two distinct chatter topics, one global prefixed with myns_ and other with myns/ because of the namespace:

$ rostopic list 

AFAIK they are different topics in ROS, so they should be represented by different topics in rqt_graph, no? Is that any reason to not distinguish / from _ in rqt_graph, or would it be a bug?

I'm using Indigo in Ubuntu 14.04.4 LTS, with packages installed from Ubuntu repositories.

edit retag flag offensive close merge delete


May or may not be a solution to this in qt_gui.

130s gravatar image 130s  ( 2017-07-09 06:08:03 -0500 )edit