2014-12-03 22:35:43 -05:00
|
|
|
|
|
|
|
|
<launch>
|
|
|
|
|
|
2015-02-05 13:31:31 -05:00
|
|
|
<!-- Example to run rgbd datasets:
|
|
|
|
|
$ wget http://vision.in.tum.de/rgbd/dataset/freiburg3/rgbd_dataset_freiburg3_long_office_household.bag
|
|
|
|
|
$ rosbag decompress rgbd_dataset_freiburg3_long_office_household.bag
|
|
|
|
|
|
|
|
|
|
$ roslaunch rtabmap_ros rgbdslam_datasets.launch feature=6
|
|
|
|
|
$ rosbag play -.-clock rgbd_dataset_freiburg3_long_office_household.bag
|
|
|
|
|
-->
|
2014-12-03 22:35:43 -05:00
|
|
|
|
|
|
|
|
<param name="use_sim_time" type="bool" value="True"/>
|
2016-01-13 13:47:56 -05:00
|
|
|
|
2015-02-05 13:30:57 -05:00
|
|
|
<!-- Choose visualization -->
|
|
|
|
|
<arg name="rviz" default="true" />
|
|
|
|
|
<arg name="rtabmapviz" default="false" />
|
2014-12-03 22:35:43 -05:00
|
|
|
|
|
|
|
|
<!-- TF FRAMES -->
|
|
|
|
|
<node pkg="tf" type="static_transform_publisher" name="world_to_map"
|
|
|
|
|
args="0.0 0.0 0.0 0.0 0.0 0.0 /world /map 100" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<group ns="rtabmap">
|
|
|
|
|
|
|
|
|
|
<!-- Odometry -->
|
|
|
|
|
<node pkg="rtabmap_ros" type="rgbd_odometry" name="rgbd_odometry" output="screen">
|
|
|
|
|
<remap from="rgb/image" to="/camera/rgb/image_color"/>
|
|
|
|
|
<remap from="depth/image" to="/camera/depth/image"/>
|
|
|
|
|
<remap from="rgb/camera_info" to="/camera/rgb/camera_info"/>
|
2016-01-13 13:47:56 -05:00
|
|
|
<remap from="odom" to="vis_odom"/>
|
2014-12-03 22:35:43 -05:00
|
|
|
|
2016-02-24 12:45:54 -05:00
|
|
|
<param name="Odom/Strategy" type="string" value="0"/> <!-- 0=Frame-to-Map, 1=Frame-to-KeyFrame -->
|
2016-01-13 13:47:56 -05:00
|
|
|
<param name="Vis/CorType" type="string" value="0"/> <!-- 0=features matching 1=Optical Flow -->
|
2016-02-24 12:45:54 -05:00
|
|
|
<param name="Vis/EstimationType" type="string" value="1"/> <!-- 0=3D->3D, 1=3D->2D (PnP) -->
|
2016-01-13 13:47:56 -05:00
|
|
|
<param name="Odom/FillInfoData" type="string" value="$(arg rtabmapviz)"/>
|
|
|
|
|
<param name="Vis/UseDepthAsMask" type="string" value="true"/>
|
|
|
|
|
<param name="Vis/MaxDepth" type="string" value="4"/>
|
2016-02-24 12:45:54 -05:00
|
|
|
<param name="Vis/PnPRefineIterations" type="string" value="0"/>
|
|
|
|
|
<param name="Odom/ResetCountdown" type="string" value="15"/>
|
|
|
|
|
|
2016-01-13 13:47:56 -05:00
|
|
|
<param name="odom_frame_id" type="string" value="vis_odom"/>
|
2014-12-03 22:35:43 -05:00
|
|
|
<param name="frame_id" type="string" value="kinect"/>
|
|
|
|
|
<param name="publish_tf" type="bool" value="false"/>
|
|
|
|
|
<param name="queue_size" type="int" value="30"/>
|
|
|
|
|
<param name="wait_for_transform" type="bool" value="true"/>
|
2016-02-24 12:45:54 -05:00
|
|
|
<param name="ground_truth_frame_id" type="string" value="world"/>
|
2014-12-03 22:35:43 -05:00
|
|
|
</node>
|
|
|
|
|
<!-- rename the child frame of odometry -->
|
|
|
|
|
<node name="odom_msg_to_tf" pkg="rtabmap_ros" type="odom_msg_to_tf">
|
|
|
|
|
<param name="frame_id" type="string" value="kinect_est"/>
|
|
|
|
|
</node>
|
|
|
|
|
|
|
|
|
|
<!-- Visual SLAM -->
|
|
|
|
|
<!-- args: "delete_db_on_start" and "udebug" -->
|
|
|
|
|
<node name="rtabmap" pkg="rtabmap_ros" type="rtabmap" output="screen" args="--delete_db_on_start">
|
|
|
|
|
<param name="subscribe_depth" type="bool" value="true"/>
|
|
|
|
|
<param name="subscribe_laserScan" type="bool" value="false"/>
|
|
|
|
|
|
2016-02-24 12:45:54 -05:00
|
|
|
<param name="Rtabmap/StartNewMapOnLoopClosure" type="string" value="true"/>
|
|
|
|
|
<param name="Vis/EstimationType" type="string" value="1"/>
|
|
|
|
|
<param name="Vis/MaxDepth" type="string" value="4"/>
|
|
|
|
|
<param name="Vis/PnPRefineIterations" type="string" value="0"/>
|
|
|
|
|
<param name="RGBD/LoopClosureReextractFeatures" type="string" value="false"/>
|
|
|
|
|
<param name="Mem/RawDescriptorsKept" type="string" value="true"/>
|
|
|
|
|
<param name="Kp/DetectorStrategy" type="string" value="6"/>
|
|
|
|
|
<param name="Mem/UseDepthAsMask" type="string" value="true"/>
|
|
|
|
|
|
2014-12-03 22:35:43 -05:00
|
|
|
<param name="frame_id" type="string" value="kinect"/>
|
2016-02-24 12:45:54 -05:00
|
|
|
<param name="ground_truth_frame_id" type="string" value="world"/>
|
2014-12-03 22:35:43 -05:00
|
|
|
|
|
|
|
|
<remap from="rgb/image" to="/camera/rgb/image_color"/>
|
|
|
|
|
<remap from="depth/image" to="/camera/depth/image"/>
|
|
|
|
|
<remap from="rgb/camera_info" to="/camera/rgb/camera_info"/>
|
2016-01-13 13:47:56 -05:00
|
|
|
<remap from="odom" to="vis_odom"/>
|
2014-12-03 22:35:43 -05:00
|
|
|
|
|
|
|
|
<param name="queue_size" type="int" value="30"/>
|
|
|
|
|
</node>
|
|
|
|
|
|
|
|
|
|
<!-- Visualisation -->
|
2015-02-05 13:30:57 -05:00
|
|
|
<node if="$(arg rtabmapviz)" pkg="rtabmap_ros" type="rtabmapviz" name="rtabmapviz" args="-d $(find rtabmap_ros)/launch/config/rgbd_gui.ini" output="screen">
|
2014-12-03 22:35:43 -05:00
|
|
|
<param name="subscribe_depth" type="bool" value="true"/>
|
|
|
|
|
<param name="subscribe_laserScan" type="bool" value="false"/>
|
2015-02-05 13:30:57 -05:00
|
|
|
<param name="subscribe_odom_info" type="bool" value="true"/>
|
2014-12-03 22:35:43 -05:00
|
|
|
<param name="queue_size" type="int" value="30"/>
|
|
|
|
|
|
|
|
|
|
<param name="frame_id" type="string" value="kinect"/>
|
|
|
|
|
|
|
|
|
|
<remap from="rgb/image" to="/camera/rgb/image_color"/>
|
|
|
|
|
<remap from="depth/image" to="/camera/depth/image"/>
|
|
|
|
|
<remap from="rgb/camera_info" to="/camera/rgb/camera_info"/>
|
2016-01-13 13:47:56 -05:00
|
|
|
<remap from="odom" to="vis_odom"/>
|
2014-12-03 22:35:43 -05:00
|
|
|
</node>
|
|
|
|
|
|
|
|
|
|
</group>
|
|
|
|
|
|
2015-02-05 13:30:57 -05:00
|
|
|
<node if="$(arg rviz)" pkg="rviz" type="rviz" name="rviz" args="-d $(find rtabmap_ros)/launch/config/rgbdslam_datasets.rviz"/>
|
|
|
|
|
<node if="$(arg rviz)" pkg="nodelet" type="nodelet" name="points_xyzrgb" args="standalone rtabmap_ros/point_cloud_xyzrgb">
|
2014-12-03 22:35:43 -05:00
|
|
|
<remap from="rgb/image" to="/camera/rgb/image_color"/>
|
|
|
|
|
<remap from="depth/image" to="/camera/depth/image"/>
|
|
|
|
|
<remap from="rgb/camera_info" to="/camera/rgb/camera_info"/>
|
|
|
|
|
<remap from="cloud" to="voxel_cloud" />
|
|
|
|
|
|
|
|
|
|
<param name="queue_size" type="int" value="10"/>
|
|
|
|
|
<param name="decimation" type="double" value="4"/>
|
|
|
|
|
</node>
|
|
|
|
|
|
|
|
|
|
</launch>
|