Robotics StackExchange | Archived questions

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

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 rqtgraph, 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.

Asked by Mellon on 2017-01-12 08:26:13 UTC

Comments

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

Asked by 130s on 2017-07-09 06:08:03 UTC

Answers