<launch>
<arg name="use_sim_time" default="false"/>
- <node name="depthimage_to_laserscan" pkg="depthimage_to_laserscan" exec="depthimage_to_laserscan_node">
- <remap from="depth" to="/camera/depth/image_raw"/>
- <remap from="depth_camera_info" to="/camera/depth/camera_info"/>
- <remap from="scan" to="/camera/depth/image_scan"/>
- <param name="output_frame" type="str" value="camera_link"/>
- </node>
-
<node pkg="nav2_amcl" exec="amcl" name="amcl">
<param name="use_sim_time" value="$(var use_sim_time)"/>
<param from="$(find-pkg-share twil_2dnav)/config/amcl_params.yaml"/>
<launch>
<arg name="use_sim_time" default="false"/>
- <node name="depthimage_to_laserscan" pkg="depthimage_to_laserscan" exec="depthimage_to_laserscan_node">
- <remap from="depth" to="/camera/depth/image_raw"/>
- <remap from="depth_camera_info" to="/camera/depth/camera_info"/>
- <remap from="scan" to="/camera/depth/image_scan"/>
- <param name="output_frame" type="str" value="camera_link"/>
- </node>
-
<node pkg="slam_toolbox" exec="async_slam_toolbox_node" name="slam_toolbox">
<param name="use_sim_time" value="$(var use_sim_time)" />
<param from="$(find-pkg-share twil_2dnav)/config/slam_toolbox_mapping_params.yaml"/>
<param name="yaml_filename" value="$(find-pkg-share ufrgs_maps)/map/centenario1.yaml"/>
</node>
+ <node name="depthimage_to_laserscan" pkg="depthimage_to_laserscan" exec="depthimage_to_laserscan_node">
+ <remap from="depth" to="/camera/depth/image_raw"/>
+ <remap from="depth_camera_info" to="/camera/depth/camera_info"/>
+ <remap from="scan" to="/camera/depth/image_scan"/>
+ <param name="output_frame" type="str" value="camera_link"/>
+ </node>
+
<include file="$(find-pkg-share twil_2dnav)/launch/localization_$(var localization).launch.xml">
<arg name="use_sim_time" value="$(var use_sim_time)"/>
</include>