mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +08:00
65 lines
3.4 KiB
XML
65 lines
3.4 KiB
XML
|
|||
|
|
<launch>
|
||
|
|
<!--
|
||
|
|
Usage:
|
||
|
|
$ roslaunch turtlebot_bringup minimal.launch
|
||
|
|
$ roslaunch rtabmap_ros turtlebot_mapping.launch
|
||
|
|
|
||
|
|
Visualization:
|
||
|
|
$ roslaunch turtlebot_rviz_launchers view_navigation.launch
|
||
|
|
|
||
|
|
This launch file is a one to one replacement of the gmapping_demo.launch in this tutorial:
|
||
|
|
http://wiki.ros.org/turtlebot_navigation/Tutorials/indigo/Build%20a%20map%20with%20SLAM
|
||
|
|
-->
|
||
|
|
|
||
|
|
<arg name="rgbd_odometry" default="false" />
|
||
|
|
|
||
|
|
<!-- Navigation stuff (move_base) -->
|
||
|
|
<include file="$(find turtlebot_bringup)/launch/3dsensor.launch"/>
|
||
|
|
<include file="$(find turtlebot_navigation)/launch/includes/move_base.launch.xml"/>
|
||
|
|
|
||
|
|
<!-- Mapping -->
|
||
|
|
<group ns="rtabmap">
|
||
|
|
|
||
|
|
<node name="rtabmap" pkg="rtabmap_ros" type="rtabmap" output="screen" args="--delete_db_on_start">
|
||
|
|
<param name="frame_id" type="string" value="base_footprint"/>
|
||
|
|
<param name="odom_frame_id" type="string" value="odom"/>
|
||
|
|
<param name="wait_for_transform" type="bool" value="true"/>
|
||
|
|
<param name="subscribe_depth" type="bool" value="true"/>
|
||
|
|
<param name="subscribe_laserScan" type="bool" value="true"/>
|
||
|
|
|
||
|
|
<!-- inputs -->
|
||
|
|
<remap from="scan" to="/scan"/>
|
||
|
|
<remap from="rgb/image" to="/camera/rgb/image_rect_color"/>
|
||
|
|
<remap from="depth/image" to="/camera/depth_registered/image_raw"/>
|
||
|
|
<remap from="rgb/camera_info" to="/camera/rgb/camera_info"/>
|
||
|
|
|
||
|
|
<!-- output -->
|
||
|
|
<remap from="grid_map" to="/map"/>
|
||
|
|
<!-- <remap from="proj_map" to="/map"/> -->
|
||
|
|
|
||
|
|
<!-- RTAB-Map's parameters: do "rosrun rtabmap rtabmap (double-dash)params" to see the list of available parameters. -->
|
||
|
|
<param name="RGBD/LocalLoopDetectionSpace" type="string" value="true"/> <!-- Local loop closure detection (using estimated position) with locations in WM -->
|
||
|
|
<param name="RGBD/OptimizeFromGraphEnd" type="string" value="false"/> <!-- Set to false to generate map correction between /map and /odom -->
|
||
|
|
<param name="Kp/MaxDepth" type="string" value="4.0"/>
|
||
|
|
<param name="LccIcp/Type" type="string" value="2"/> <!-- Loop closure transformation refining with ICP: 0=No ICP, 1=ICP 3D, 2=ICP 2D -->
|
||
|
|
<param name="LccBow/MinInliers" type="string" value="5"/> <!-- 3D visual words minimum inliers to accept loop closure -->
|
||
|
|
<param name="LccBow/InlierDistance" type="string" value="0.1"/> <!-- 3D visual words correspondence distance -->
|
||
|
|
<param name="RGBD/AngularUpdate" type="string" value="0.1"/> <!-- Update map only if the robot is moving -->
|
||
|
|
<param name="RGBD/LinearUpdate" type="string" value="0.1"/> <!-- Update map only if the robot is moving -->
|
||
|
|
<param name="Rtabmap/TimeThr" type="string" value="700"/>
|
||
|
|
<param name="Mem/RehearsalSimilarity" type="string" value="0.30"/>
|
||
|
|
</node>
|
||
|
|
|
||
|
|
<!-- Odometry : ONLY for testing without the actual robot! /odom TF should not be already published. -->
|
||
|
|
<node if="$(arg rgbd_odometry)" pkg="rtabmap_ros" type="rgbd_odometry" name="rgbd_odometry" output="screen">
|
||
|
|
<param name="frame_id" type="string" value="base_footprint"/>
|
||
|
|
<param name="wait_for_transform" type="bool" value="true"/>
|
||
|
|
<remap from="rgb/image" to="/camera/rgb/image_rect_color"/>
|
||
|
|
<remap from="depth/image" to="/camera/depth_registered/image_raw"/>
|
||
|
|
<remap from="rgb/camera_info" to="/camera/rgb/camera_info"/>
|
||
|
|
</node>
|
||
|
|
|
||
|
|
</group>
|
||
|
|
</launch>
|