ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Maximum mapping distance rtabmap

asked 2017-01-13 06:41:32 -0500

gijsje170 gravatar image


I am using a Kinect. Is there a way to set the max mapping distance to like 3.5 Meters to prevent noise from being in the image?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-01-13 09:58:08 -0500

matlabbe gravatar image

updated 2017-01-16 14:14:36 -0500


In rtabmapviz, this parameter is under Preferences->3D Rendering. In RVIZ, the rtabmap_ros/MapCloud plugin has also this parameter. For the output /rtabmap/cloud_map, the ros parameter (default 4 meters) is cloud_max_depth (for rtabmap < 0.11.11) or Grid/DepthMax (for rtabmap >= 0.11.11).


To limit the distance of the extracted visual features used for visual odometry or loop closure detection, the parameter is Vis/MaxDepth. You can set it in rtabmap_args:="--Vis/MaxDepth 3.5" or in launch file:

<node pkg="rtabmap_ros" type="rtabmap" name="rtabmap">
   <param name="Vis/MaxDepth" type="string" value="3.5"/> <!-- loop closure detection -->
<node pkg="rtabmap_ros" type="rgbd_odometry" name="rgbd_odometry">
   <param name="Vis/MaxDepth" type="string" value="3.5"/> <!-- odometry -->

Note that parameter Vis/EstimationType set to 1 (PnP transform estimation) is more robust to far noisy features.

cheers, Mathieu

edit flag offensive delete link more


I am using rtabmap 0.11.8 but whenever I use my launch file with the adjusted parameters it will continue mapping to far away. Also tried changing the Vis/Maxdepth without any result.

gijsje170 gravatar image gijsje170  ( 2017-01-16 02:50:52 -0500 )edit

Can you tell which topic is the problem?

matlabbe gravatar image matlabbe  ( 2017-01-16 09:50:27 -0500 )edit

Hi, I think the depthimage, the problem is because it is taking points from a large distance much noise comes into the image + the ceiling. Is there a way to only take points which are closer then like 2 meters or something?

gijsje170 gravatar image gijsje170  ( 2017-01-16 11:40:17 -0500 )edit

Updated answer.

matlabbe gravatar image matlabbe  ( 2017-01-16 14:15:02 -0500 )edit

Hi matlabbe I think I am a big to vague, I want to only map points which are closer then 3.5 meters. So still take features from the points far away but only put the points in the map when they are closer then 3.5 meter from the Kinect.

gijsje170 gravatar image gijsje170  ( 2017-01-17 02:31:16 -0500 )edit

Can you add an image of which points you are referring. For the point cloud in rtabmapviz, in Preferences->3D Rendering there is a Max Depth parameters that can be set for example so the 3D point cloud map includes only points under this range from the kinect.

matlabbe gravatar image matlabbe  ( 2017-01-23 19:03:39 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2017-01-13 06:41:32 -0500

Seen: 1,603 times

Last updated: Jan 16 '17