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

Revision history [back]

You can easily declare parameters outside a <node> tag in a launch file:

<launch>
   <param name="common_param" value="123"/>
   <node name="node1" ... />
   <node name="node2" ... />
</launch>
click to hide/show revision 2
No.2 Revision

updated 2011-11-26 04:34:56 -0600

joq gravatar image

You can easily declare parameters outside a <node> tag in a launch file:

<launch>
   <param name="common_param" value="123"/>
   <node name="node1" ... />
   <node name="node2" ... />
</launch>

Since these parameters are not specific to any one node, you may want to resolve them using searchParam() in your code.