Ask Your Question
0

Group multiple namespaces in rqt_graph [closed]

asked 2014-08-06 08:38:38 -0500

minolo gravatar image

Hello there!

I'm using ROS Hydro, and I have a little issue which I'll demonstrate with this launch file. I'm relatively new to ROS and I'm not sure if this can be done at all.

<launch>
  <group ns="turtle">
    <node pkg="turtlesim" type="turtlesim_node" name="turtlesim_node" >
      <remap from="turtle1/cmd_vel" to="cmd_vel" />
    </node>
  </group>

  <group ns="control">
    <node pkg="rostopic" type="rostopic" name="publisher1" args="pub -r 1 /turtle/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'" />
    <node pkg="rostopic" type="rostopic" name="publisher2" args="pub -r 1 cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'" />
  </group>

  <node pkg="rqt_graph" type="rqt_graph" name="rqt_graph" />
</launch>

The rqt_graph shows two namespaces, with publisher1 correctly grouped into the "control" namespace (if "Group namespaces" is checked). Now, if I remove publisher2 from the launch file and launch again, publisher1 doesn't get grouped into the "control" namespace (it doesn't show the namespace box around it).

Is there something I don't understand here, or is this a bug?

Thank you in advance!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by minolo
close date 2014-08-09 04:19:13.766960

1 Answer

Sort by » oldest newest most voted
1

answered 2014-08-09 03:52:48 -0500

minolo gravatar image

It looks like this was a bug. I reported it and they are already working on a solution.

edit flag offensive delete link more

Comments

1

It works on jade without any problem

Pablo Iñigo Blasco gravatar image Pablo Iñigo Blasco  ( 2016-01-26 10:44:29 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-08-06 08:38:38 -0500

Seen: 223 times

Last updated: Aug 09 '14