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

Revision history [back]

click to hide/show revision 1
initial version

Of course it does not work

can you tell us what you see, if it does not work?

This:

<launch>
  <arg name="n" />
  <param name="something" value="/dev/video$(arg n)"/>
</launch>

started as roslaunch my_pkg test.launch n:=4 result in:

something: /dev/video4

on my system.

Of course it does not work

can you tell us what you see, if it does not work?

This:

<launch>
  <arg name="n" />
  <param name="something" value="/dev/video$(arg n)"/>
</launch>

started as roslaunch my_pkg test.launch n:=4 result in:

something: /dev/video4

on my system.

See wiki/roslaunch/XML/arg and wiki/roslaunch/XML/param.