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>
  <!-- launch talker and listener, remmaping 'chatter' to 'myns_chatter' -->
  <node pkg="roscpp_tutorials" type="talker" name="talker1">
    <remap from="chatter" to="myns_chatter"/>
  </node>
  <node pkg="roscpp_tutorials" type="listener" name="listener1">
    <remap from="chatter" to="myns_chatter"/>
  </node>
  <!-- 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" />
</launch>

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 
/myns/chatter
/myns_chatter
/rosout
/rosout_agg
/statistics

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

Comments

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

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