Re: include multiple commands into one launch file

Posted by matlabbe on
URL: http://official-rtab-map-forum.206.s1.nabble.com/include-multiple-commands-into-one-launch-file-tp4529p4532.html

Do you have warnings/errors on the terminal?

You are missing the namespace for the stereo camera:
<launch>
  <arg name="rviz" default="false" />
  <arg name="rtabmapviz" default="true" />
  
  <group ns="stereo_camera">
    <include file="$(find zed_wrapper)/launch/zed_camera.launch">
      <arg name="publish_tf" value="false"/>
    </include>
  </group>
  
  <node name="camera_base_link" 
    pkg="tf" type="static_transform_publisher" 
    args="0 0 0 -1.5707963267948966 0 -1.5707963267948966 camera_link zed_center 100" />

  <include file="$(find rtabmap_ros)/launch/rtabmap.launch">
    <arg name="rtabmap_args" value="--delete_db_on_start --Vis/CorFlowMaxLevel 5 --Stereo/MaxDisparity 200" />
    <arg name="right_image_topic" value="/stereo_camera/right/image_rect_color" />
    <arg name="stereo" value="true" />
    <arg name="rviz" value="$(arg rviz)" />
    <arg name="rtabmapviz" value="$(arg rtabmapviz)" />
  </include>
</launch>