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

Launch file for turtlebot dashboard?

asked 2012-01-19 22:23:17 -0600

apalomer gravatar image

Hi!

Related to this post that talks about multiple robots under one core. Oviously I want to be able to see the dashboards for each robot, so I created this launchfile:


<launch>
  <arg name="multiple" default="false"/>
  <group if="$(arg multiple)" ns="$(arg robot)">
    <node pkg="turtlebot_dashboard" type="turtlebot_dashboard" name="turtlebot_dashboard"/>
  </group>
  <group if="$(arg multiple)">
    <node pkg="turtlebot_dashboard" type="turtlebot_dashboard" name="turtlebot_dashboard"/>
  </group>
</launch>
but I get this output:

roslaunch turtlebot_dashboard dasboard.launch 
... logging to /home/albert/.ros/log/9bcf1e54-435b-11e1-8782-ccaf78899509/roslaunch-albert-XPS-M1530-4631.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://192.168.1.11:49466/

SUMMARY

PARAMETERS * /rosversion * /rosdistro

NODES

ROS_MASTER_URI=http://192.168.1.3:11311

core service [/rosout] found No processes to monitor shutting down processing monitor...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-01-19 23:32:48 -0600

Lorenz gravatar image

In your launch file, the two conditionals for launching inside a namespace or not are the same. I think it should be:

<launch>
  <arg name="multiple" default="false"/>
  <group if="$(arg multiple)" ns="$(arg robot)">
    <node pkg="turtlebot_dashboard" type="turtlebot_dashboard" name="turtlebot_dashboard"/>
  </group>
  <group unless="$(arg multiple)">
    <node pkg="turtlebot_dashboard" type="turtlebot_dashboard" name="turtlebot_dashboard"/>
  </group>
</launch>
edit flag offensive delete link more

Comments

Yes, sorry, i've made a really stupid mistake copy-paste and not change! Thanks!
apalomer gravatar image apalomer  ( 2012-01-19 23:54:32 -0600 )edit

Question Tools

Stats

Asked: 2012-01-19 22:23:17 -0600

Seen: 764 times

Last updated: Jan 19 '12