ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You should use the roslaunch param tag http://wiki.ros.org/roslaunch/XML/param
Your launch file should look like this
<launch>
<arg name="stereo" default="multisense_sl/camera"/>
<arg name="image_view" default="image_rect_color"/>
<node name="stereo_cam" pkg="image_view" type="stereo_view" >
<param name="stereo" value=$(stereo) />
<param name="image" value=$(image_view) />
</node>
</launch>
2 | No.2 Revision |
You should use the roslaunch param remap tag
http://wiki.ros.org/roslaunch/XML/paramhttp://wiki.ros.org/roslaunch/XML/remap
Your launch file should look like this
<launch>
<arg name="stereo" default="multisense_sl/camera"/>
<arg name="image_view" default="image_rect_color"/>
<node name="stereo_cam" pkg="image_view" type="stereo_view" >
<param name="stereo" value=$(stereo) <remap from="stereo" to=$(stereo) />
<param name="image" value=$(image_view) <remap from="image" to=$(image_view) />
</node>
</launch>