roslaunch - params for included launch files
Hello, I would like to roslaunch other apps within my project's roslaunch xml file. I would also like to attach params to start the app with.
The following is what I have at the moment, however it doesn't apply the params (it does launch the two nodes, however).
<launch>
<include file="$(find realsense2_camera)/launch/rs_camera.launch" >
<param name="/camera/realsense2_camera/align_depth" type="bool" value="true" />
<param name="/camera/realsense2_camera/filters" type="string" value="pointcloud" />
</include>
<include file="$(find rtabmap_ros)/launch/rtabmap.launch" >
<param name="rtabmap_args" type="string" value="--delete_db_on_start" />
<param name="depth_topic" type="string" value="/camera/aligned_depth_to_color/image_raw" />
<param name="rgb_topic" type="string" value="/camera/color/image_raw" />
<param name="camera_info_topic" type="string" value="/camera/color/camera_info" />
<param name="approx_sync" type="string" value="false" />
</include>
</launch>
I think you ought to include arguments if you're calling a launch file. params can be set only when you run ros nodes. So you can set something like,
<arg name="rgb_topic" value="/camera/color/image_raw"/>