Skip to content

Software

rtabmap_ros

By IntRoLab, Canada (checked on github.com/introlab (opens in a new tab)), from github.com/introlab/rtabmap_ros (opens in a new tab)

  • Navigation and mapping
  • Framework
  • BSD-3-Clause

ROS 2 wrapper for RTAB-Map, a graph-based SLAM library that builds 3D maps from RGB-D, stereo or lidar data with appearance-based loop closure. Exports occupancy grids, point clouds or OctoMaps.

Facts

GitHub stars
1,566read on 29 Nov 2026
Last update
25 Nov 2026Newest commit on ros2
Maintenance
Activea commit in the last 90 days
Difficulty
Intermediate

Checked on GitHub on 29 Nov 2026.

Licenses

Code
BSD-3-Clause (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (BSD-3-Clause) at commit c7b5cf6 (opens in a new tab), on 29 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Builds and maintains a 3D map and closes loops when revisited places are recognized.
  • Exports results as an occupancy grid, a point cloud or an OctoMap.
  • Split into packages so a pipeline only pulls in the parts it uses, covering SLAM, odometry, sensor sync, and utilities.
  • Provides odometry nodes (rgbd_odometry, stereo_odometry, icp_odometry), and any external odometry can be used instead.
  • Includes visualization nodes and RViz plugins, plus launch files to bring up the whole stack.
  • Ships sensor integration examples and full robot demos such as turtlebot3 and turtlebot4 with nav2 integration.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
Used by Just1.
Licence
BSD-3-Clause. Commercial use: Yes. Where it was read
Install
sudo apt install ros-$ROS_DISTRO-rtabmap-rosWhere it comes from
Maintenance
Active, last commit on 25 Nov 2026.

Works with

1 robot on Robotheca

The robots on Robotheca that use it or can run it, each with how the link was found.

Use it

Copied word for word from the creator's own documentation; each block links to the lines it comes from.

Binaries

sudo apt install ros-$ROS_DISTRO-rtabmap-ros

From README.md at f04a52d, line 79 (opens in a new tab)

From Source

    cd ~/ros2_ws
    git clone https://github.com/introlab/rtabmap.git src/rtabmap
    git clone --branch ros2 https://github.com/introlab/rtabmap_ros.git src/rtabmap_ros
    rosdep update && rosdep install --from-paths src --ignore-src -r -y
    export MAKEFLAGS="-j6" # Can be ignored if you have a lot of RAM (>16GB)
    colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release

From README.md at f04a52d, lines 90–95 (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit c7b5cf6

Robotheca read the repository at three versions: the summary at a8de404, the facts and the README at c7b5cf6 (read on 29 Nov 2026) and the install commands at f04a52d (read on 6 Nov 2026).

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by IntRoLab, at commit c7b5cf6, under BSD-3-Clause (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

rtabmap_ros

ROS 2 wrapper for RTAB-Map (opens in a new tab), a graph-based SLAM library with appearance-based loop closure detection. It builds and maintains a 3D map from RGB-D, stereo or lidar data, closes loops on revisited places and exports the result as an occupancy grid, a point cloud or an OctoMap.

ROS 2 Humble minimum required. The interface matches ROS 1: parameters and topic names are unchanged, so the ROS 1 tutorials (opens in a new tab) still apply for anything not yet covered by the package pages below.

CI Latest
ROS Binaries

Released is the version bloomed into rosdistro (opens in a new tab); In apt is what apt install actually gives you today. They differ while a release is waiting on a buildfarm sync.

Packages

The stack is split into small packages so a pipeline only pulls in what it uses. Package names link to their documentation where it exists; the rest are being written and will be linked as they land.

SLAM
PackageDescription
rtabmap_slam (opens in a new tab)The rtabmap node itself: appearance-based loop closure detection, graph optimization, memory management and map assembly.
rtabmap_odom (opens in a new tab)Odometry nodes — rgbd_odometry, stereo_odometry and icp_odometry. Any external odometry can be used instead.
rtabmap_sync (opens in a new tab)Synchronizes camera and lidar topics into a single message so they reach the SLAM node together — rgbd_sync, stereo_sync, rgbdx_sync.
Sensor processing
PackageDescription
rtabmap_util (opens in a new tab)Utility nodes around the pipeline: format conversions, point cloud filtering and assembly, obstacle detection, map assembly, database replay. Most are useful on their own.
rtabmap_costmap_pluginsA variant of nav2's voxel layer that follows the robot along z, keeping the voxel grid centered on the base frame. For robots that change altitude, e.g. drones.
Interfaces and libraries
PackageDescription
rtabmap_msgsMessage, service and action definitions used across the stack.
rtabmap_conversions (opens in a new tab)C++ library converting between RTAB-Map library types and ROS 2 messages.
rtabmap_python (opens in a new tab)Python helpers for RTAB-Map's own binary formats, currently the compressed matrices carried in rtabmap_msgs fields and database blobs.
Visualization
PackageDescription
rtabmap_vizRTAB-Map's own GUI as a ROS 2 node: live graph, loop closures, feature matches and the parameter panel.
rtabmap_rviz_plugins (opens in a new tab)RViz displays for the map cloud, the map graph and the SLAM info, plus a view controller following the robot.
Launch files
PackageDescription
rtabmap_launchrtabmap.launch.py, the one-line way to bring up the whole stack.
rtabmap_examples (opens in a new tab)Sensor integration examples: stereo and RGB-D cameras, 3D lidar.
rtabmap_demos (opens in a new tab)Full robot demos: turtlebot3 and turtlebot4, nav2 integration, multi-session mapping.

Installation

These instructions are for ROS 2. For ROS 1, follow the installation instructions (opens in a new tab) on the master (opens in a new tab) branch, which also carries the latest version for Noetic.

Binaries
sudo apt install ros-$ROS_DISTRO-rtabmap-ros
From Source
  • Make sure to uninstall any rtabmap binaries:

    sudo apt remove ros-$ROS_DISTRO-rtabmap*
    
  • RTAB-Map ROS2 package:

    cd ~/ros2_ws
    git clone https://github.com/introlab/rtabmap.git src/rtabmap
    git clone --branch ros2 https://github.com/introlab/rtabmap_ros.git src/rtabmap_ros
    rosdep update && rosdep install --from-paths src --ignore-src -r -y
    export MAKEFLAGS="-j6" # Can be ignored if you have a lot of RAM (>16GB)
    colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
    
  • To build with rgbd_cameras>1 support and/or subscribe_user_data support:

    colcon build --symlink-install --cmake-args -DRTABMAP_SYNC_MULTI_RGBD=ON -DRTABMAP_SYNC_USER_DATA=ON -DCMAKE_BUILD_TYPE=Release
    
Testing
cd ~/ros2_ws
colcon build --base-paths src/rtabmap_ros
colcon test --base-paths src/rtabmap_ros
colcon test-result --verbose

Usage

Logging

To make RTAB-Map's logs appear ordered with RCLCPP's logs, set the following environment variables in your .bashrc (see official "About Logging (opens in a new tab)" documentation for more info):

export RCUTILS_LOGGING_USE_STDOUT=1
export RCUTILS_LOGGING_BUFFERED_STREAM=1
# Optional, but if you like colored logs:
export RCUTILS_COLORIZED_OUTPUT=1
Recommended DDS

If RTAB-Map's GUI or topic frequency feel laggy (even if processing time looks fast enough), or messages seem to get lost, it may be caused by the DDS. By default (qos parameters set to 0), RTAB-Map's nodes subscribe with the DDS's own default reliability, and that differs between them: Cyclone DDS subscribes reliably, while Fast DDS, the default DDS of ROS 2 (still with Lyrical), subscribes in best effort. In best effort, a large message (image, point cloud) arriving while a node is still busy with the previous one can be dropped, without any warning.

With Fast DDS, you can make RTAB-Map's nodes subscribe reliably with their qos parameters set to 1 (e.g., qos:=1 with rtabmap.launch.py). For large images (e.g., depth images of a RealSense camera), also use Fast DDS's LARGE_DATA transport: its default shared memory segments are smaller than a depth image, which makes images arrive in bursts or get lost. Set it in the environment of every process (e.g., in your .bashrc), then restart the ROS daemon:

export FASTDDS_BUILTIN_TRANSPORTS=LARGE_DATA
ros2 daemon stop

Set it on all the computers of the system or none: between computers, LARGE_DATA sends the data over TCP where the default uses UDP. With a D435i at 30 Hz, RGB-D odometry went from 17.5 Hz (best effort) to 26 Hz with qos:=1, and to 27 Hz, every frame the camera sent, with LARGE_DATA too (see rtabmap_examples (opens in a new tab)).

An alternative is Cyclone DDS (opens in a new tab), which subscribes reliably by default. To try it, add this before launching any nodes/launch files (or to your .bashrc):

export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
# Cyclone prefers multicast by default, if your router got too much spammed, 
# disable multicast with (https://github.com/ros2/rmw_cyclonedds/issues/489):
export CYCLONEDDS_URI="<Disc><DefaultMulticastAddress>0.0.0.0</></>"

Documentation

Building the documentation

Each package's API reference is generated with rosdoc2 (opens in a new tab) from the Doxygen comments in its public headers, and published to docs.ros.org. rosdoc2 documents one package per invocation, so building the whole stack is a loop over them — run it from the repository root:

for pkg in rtabmap_*/; do
  rosdoc2 build --package-path "$pkg" --output-directory doc_output || break
done

Each package lands in doc_output/<package>/index.html.

License

BSD-3-Clause, see LICENSE (opens in a new tab). RTAB-Map itself may be built with components under other licenses; see the rtabmap (opens in a new tab) repository.

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.