2023-01-15 06:53:09 -08:00
|
|
|
<?xml version="1.0"?>
|
2014-08-12 21:01:52 +00:00
|
|
|
|
|
|
|
|
<launch>
|
|
|
|
|
|
2016-03-11 20:16:52 -05:00
|
|
|
<!-- Choose visualization -->
|
|
|
|
|
<arg name="rviz" default="true" />
|
2023-03-04 14:24:18 -08:00
|
|
|
<arg name="rtabmap_viz" default="false" />
|
2018-05-23 10:53:13 -04:00
|
|
|
<arg name="save_objects" default="false"/>
|
|
|
|
|
<arg name="localization" default="false"/>
|
2023-03-04 14:24:18 -08:00
|
|
|
<arg name="save_objects_as_landmarks" default="false"/> <!-- apriltag_ros package should be installed and rtabmap_slam built with it -->
|
2018-05-23 10:53:13 -04:00
|
|
|
<arg if="$(arg localization)" name="rtabmap_args" default=""/>
|
|
|
|
|
<arg unless="$(arg localization)" name="rtabmap_args" default="--delete_db_on_start"/>
|
2014-08-12 21:01:52 +00:00
|
|
|
|
2016-03-11 20:16:52 -05:00
|
|
|
<param name="use_sim_time" type="bool" value="True"/>
|
2023-01-15 07:00:31 -08:00
|
|
|
|
2014-08-12 21:01:52 +00:00
|
|
|
<!-- SLAM (robot side) -->
|
|
|
|
|
<!-- args: "delete_db_on_start" and "udebug" -->
|
|
|
|
|
<group ns="rtabmap">
|
2023-03-04 14:24:18 -08:00
|
|
|
<node name="rtabmap" pkg="rtabmap_slam" type="rtabmap" output="screen" args="$(arg rtabmap_args)">
|
2014-08-12 21:01:52 +00:00
|
|
|
<param name="frame_id" type="string" value="base_footprint"/>
|
2023-01-15 07:00:31 -08:00
|
|
|
|
2014-08-12 21:01:52 +00:00
|
|
|
<param name="subscribe_depth" type="bool" value="true"/>
|
2016-03-11 20:16:52 -05:00
|
|
|
<param name="subscribe_scan" type="bool" value="true"/>
|
2023-01-15 07:00:31 -08:00
|
|
|
|
2014-08-12 21:01:52 +00:00
|
|
|
<remap from="odom" to="/base_controller/odom"/>
|
|
|
|
|
<remap from="scan" to="/base_scan"/>
|
2018-05-23 10:53:13 -04:00
|
|
|
<remap if="$(arg save_objects)" from="user_data_async" to="/objectsData"/>
|
2014-08-12 21:01:52 +00:00
|
|
|
|
2016-03-13 18:05:27 -04:00
|
|
|
<remap from="rgb/image" to="/camera/data_throttled_image"/>
|
|
|
|
|
<remap from="depth/image" to="/camera/data_throttled_image_depth"/>
|
2014-08-12 21:01:52 +00:00
|
|
|
<remap from="rgb/camera_info" to="/camera/data_throttled_camera_info"/>
|
2023-01-15 07:00:31 -08:00
|
|
|
|
2016-03-13 18:05:27 -04:00
|
|
|
<param name="rgb/image_transport" type="string" value="compressed"/>
|
2015-02-11 17:09:29 -05:00
|
|
|
<param name="depth/image_transport" type="string" value="compressedDepth"/>
|
2023-01-15 07:00:31 -08:00
|
|
|
|
2014-08-12 21:01:52 +00:00
|
|
|
<param name="queue_size" type="int" value="10"/>
|
2019-08-09 21:52:01 -04:00
|
|
|
<param name="landmark_linear_variance" type="double" value="0.1"/>
|
|
|
|
|
<param name="landmark_angular_variance" type="double" value="0.5"/>
|
2023-01-15 07:00:31 -08:00
|
|
|
|
2014-08-12 21:01:52 +00:00
|
|
|
<!-- RTAB-Map's parameters: do "rosrun rtabmap rtabmap (double-dash)params" to see the list of available parameters. -->
|
2016-03-11 20:16:52 -05:00
|
|
|
<param name="RGBD/NeighborLinkRefining" type="string" value="true"/> <!-- Do odometry correction with consecutive laser scans -->
|
2016-03-13 18:05:27 -04:00
|
|
|
<param name="RGBD/ProximityBySpace" type="string" value="true"/> <!-- Proximity detection (using estimated position) with locations in WM -->
|
|
|
|
|
<param name="Mem/BadSignaturesIgnored" type="string" value="false"/> <!-- Don't ignore bad images for 3D node creation (e.g. white walls) -->
|
|
|
|
|
<param name="Reg/Strategy" type="string" value="1"/> <!-- Registration strategy: 0=visual, 1=ICP, 2=visual+ICP -->
|
2018-04-30 20:52:05 -04:00
|
|
|
<param name="Icp/CorrespondenceRatio" type="string" value="0.2"/>
|
2016-03-13 18:05:27 -04:00
|
|
|
<param name="Icp/Iterations" type="string" value="30"/>
|
|
|
|
|
<param name="Icp/VoxelSize" type="string" value="0.025"/>
|
|
|
|
|
<param name="Vis/MinInliers" type="string" value="10"/> <!-- 3D visual words minimum inliers to accept loop closure -->
|
|
|
|
|
<param name="Vis/MaxDepth" type="string" value="4.0"/> <!-- 3D visual words maximum depth 0=infinity -->
|
|
|
|
|
<param name="Vis/InlierDistance" type="string" value="0.1"/> <!-- 3D visual words correspondence distance -->
|
|
|
|
|
<param name="RGBD/AngularUpdate" type="string" value="0.01"/> <!-- Update map only if the robot is moving -->
|
|
|
|
|
<param name="RGBD/LinearUpdate" type="string" value="0.01"/> <!-- Update map only if the robot is moving -->
|
|
|
|
|
<param name="Rtabmap/TimeThr" type="string" value="700"/>
|
|
|
|
|
<param name="Mem/RehearsalSimilarity" type="string" value="0.45"/>
|
|
|
|
|
<param name="Mem/NotLinkedNodesKept" type="string" value="false"/>
|
|
|
|
|
<param name="Optimizer/Slam2D" type="string" value="true"/>
|
2023-01-15 07:00:31 -08:00
|
|
|
<param name="Reg/Force3DoF" type="string" value="true"/>
|
2018-05-23 10:53:13 -04:00
|
|
|
<param if="$(arg localization)" name="Mem/IncrementalMemory" type="string" value="false"/>
|
2014-08-12 21:01:52 +00:00
|
|
|
</node>
|
2023-01-15 07:00:31 -08:00
|
|
|
|
2016-03-11 20:16:52 -05:00
|
|
|
<!-- Visualisation RTAB-Map -->
|
2023-03-04 14:24:18 -08:00
|
|
|
<node if="$(arg rtabmap_viz)" pkg="rtabmap_viz" type="rtabmap_viz" name="rtabmap_viz" args="-d $(find rtabmap_demos)/launch/config/rgbd_gui.ini" output="screen">
|
2016-03-11 20:16:52 -05:00
|
|
|
<param name="subscribe_depth" type="bool" value="true"/>
|
2016-03-13 18:05:27 -04:00
|
|
|
<param name="subscribe_scan" type="bool" value="true"/>
|
|
|
|
|
<param name="frame_id" type="string" value="base_footprint"/>
|
2023-01-15 07:00:31 -08:00
|
|
|
|
2016-03-13 18:05:27 -04:00
|
|
|
<remap from="rgb/image" to="/camera/data_throttled_image"/>
|
|
|
|
|
<remap from="depth/image" to="/camera/data_throttled_image_depth"/>
|
2016-03-11 20:16:52 -05:00
|
|
|
<remap from="rgb/camera_info" to="/camera/data_throttled_camera_info"/>
|
2016-03-13 18:05:27 -04:00
|
|
|
<remap from="scan" to="/base_scan"/>
|
|
|
|
|
<remap from="odom" to="/base_controller/odom"/>
|
2023-01-15 07:00:31 -08:00
|
|
|
|
2016-03-13 18:05:27 -04:00
|
|
|
<param name="rgb/image_transport" type="string" value="compressed"/>
|
2016-03-11 20:16:52 -05:00
|
|
|
<param name="depth/image_transport" type="string" value="compressedDepth"/>
|
|
|
|
|
</node>
|
2023-01-15 07:00:31 -08:00
|
|
|
|
|
|
|
|
</group>
|
|
|
|
|
|
2014-08-12 21:01:52 +00:00
|
|
|
<!-- send AZIMUT 3 urdf to param server -->
|
2023-01-15 07:00:31 -08:00
|
|
|
<!--
|
2014-08-12 21:01:52 +00:00
|
|
|
<param name="robot_description" command="$(find xacro)/xacro.py '$(find az3_description)/robots/azimut_3_laser.urdf.xacro'" />
|
2014-12-02 16:24:26 -05:00
|
|
|
-->
|
2023-01-15 07:00:31 -08:00
|
|
|
|
2014-08-12 22:28:56 +00:00
|
|
|
<!-- Visualisation -->
|
2023-03-04 14:24:18 -08:00
|
|
|
<node if="$(arg rviz)" pkg="rviz" type="rviz" name="rviz" args="-d $(find rtabmap_demos)/launch/config/demo_find_object.rviz" output="screen"/>
|
2023-01-15 07:00:31 -08:00
|
|
|
|
2023-03-04 14:24:18 -08:00
|
|
|
<node pkg="nodelet" type="nodelet" name="points_xyzrgb" args="standalone rtabmap_util/point_cloud_xyzrgb">
|
2014-08-12 21:01:52 +00:00
|
|
|
<remap from="rgb/image" to="/camera/data_throttled_image"/>
|
|
|
|
|
<remap from="depth/image" to="/camera/data_throttled_image_depth"/>
|
|
|
|
|
<remap from="rgb/camera_info" to="/camera/data_throttled_camera_info"/>
|
|
|
|
|
<remap from="cloud" to="voxel_cloud" />
|
2023-01-15 07:00:31 -08:00
|
|
|
|
2016-03-13 18:05:27 -04:00
|
|
|
<param name="rgb/image_transport" type="string" value="compressed"/>
|
2014-08-12 21:01:52 +00:00
|
|
|
<param name="depth/image_transport" type="string" value="compressedDepth"/>
|
2023-01-15 07:00:31 -08:00
|
|
|
|
2014-08-12 21:01:52 +00:00
|
|
|
<param name="queue_size" type="int" value="10"/>
|
|
|
|
|
<param name="voxel_size" type="double" value="0.01"/>
|
|
|
|
|
</node>
|
|
|
|
|
|
|
|
|
|
<!-- Find-Object -->
|
|
|
|
|
<node name="find_object_3d" pkg="find_object_2d" type="find_object_2d" output="screen">
|
2016-03-13 18:05:27 -04:00
|
|
|
<param name="gui" value="true" type="bool"/>
|
2023-03-04 14:24:18 -08:00
|
|
|
<param name="settings_path" value="$(find rtabmap_demos)/launch/config/find_object.ini" type="str"/>
|
2014-08-12 21:01:52 +00:00
|
|
|
<param name="subscribe_depth" value="true" type="bool"/>
|
2023-03-04 14:24:18 -08:00
|
|
|
<param name="objects_path" value="$(find rtabmap_demos)/launch/data/books" type="str"/>
|
2023-01-15 07:00:31 -08:00
|
|
|
|
2016-03-13 18:05:27 -04:00
|
|
|
<remap from="rgb/image_rect_color" to="/camera/data_throttled_image"/>
|
|
|
|
|
<remap from="depth_registered/image_raw" to="/camera/data_throttled_image_depth"/>
|
2014-08-12 21:01:52 +00:00
|
|
|
<remap from="depth_registered/camera_info" to="/camera/data_throttled_camera_info"/>
|
|
|
|
|
|
2016-03-13 18:05:27 -04:00
|
|
|
<param name="rgb/image_transport" type="string" value="compressed"/>
|
2014-08-12 21:01:52 +00:00
|
|
|
<param name="depth_registered/image_transport" type="string" value="compressedDepth"/>
|
|
|
|
|
</node>
|
2023-01-15 07:00:31 -08:00
|
|
|
|
2018-05-23 10:53:13 -04:00
|
|
|
<!-- Save objects to database example -->
|
2023-03-04 14:24:18 -08:00
|
|
|
<node if="$(arg save_objects)" name="save_objects_example" pkg="rtabmap_demos" type="save_objects_example" output="screen">
|
2018-05-23 10:53:13 -04:00
|
|
|
<remap from="mapData" to="/rtabmap/mapData"/>
|
|
|
|
|
<param name="frame_id" value="base_footprint"/>
|
|
|
|
|
</node>
|
2023-01-15 07:00:31 -08:00
|
|
|
|
2019-08-09 21:52:01 -04:00
|
|
|
<!-- Convert objects to tags -->
|
2023-03-04 14:24:18 -08:00
|
|
|
<node if="$(arg save_objects_as_landmarks)" name="objects_to_tags" pkg="rtabmap_util" type="objects_to_tags.py" output="screen">
|
2019-08-09 21:52:01 -04:00
|
|
|
<remap from="tag_detections" to="/rtabmap/tag_detections"/>
|
|
|
|
|
<param name="distance_max" value="2.0"/>
|
|
|
|
|
</node>
|
2014-08-12 21:01:52 +00:00
|
|
|
|
|
|
|
|
</launch>
|