Skip to content

ROS2 wrapper package for orbslam3 library

ahnavocado/ORB_SLAM3_ROS2_pointcloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ORB_SLAM3_ROS2_pointcloud

ROS 2 wrapper for ORB-SLAM3 with point cloud generation support.


📺 Demo Video

Screenshot 2025-09-18 at 16 11 40

https://youtu.be/hwASetrvGZs?si=L7dGaWlm62rIHIhy


📋 Prerequisites

This repository was tested with:

  • Ubuntu 22.04
  • ROS 2 Humble

🔨 Build ORB-SLAM3

Build ORB_SLAM3

  • Go to this repo and follow build instruction.
cd ~/colcon_ws/src/ORB_SLAM3_ROS2_pointcloud/ORB_SLAM3
./build.sh

⚙️ Build Instructions

Prepare workspace:

mkdir -p ~/colcon_ws/src
cd ~/colcon_ws/src
git clone https://github.com/ahnavocado/ORB_SLAM3_ROS2_pointcloud.git

Change this line to your own python site-packages path

Change this line to your own ORB_SLAM3 path

Build:

cd ~/colcon_ws
source /opt/ros/humble/setup.bash
colcon build --symlink-install --packages-ignore orbslam2 \
  --cmake-args -DCMAKE_CXX_FLAGS="-Wno-error -Wno-error=deprecated-declarations -Wno-deprecated-declarations -Wno-error=reorder -Wno-error=unused-parameter"

Source environment:

source install/setup.bash

Extract vocabulary:

tar -xvzf ./src/ORB_SLAM3_ROS2_pointcloud/vocabulary/ORBvoc.txt.tar.gz -C ./src/ORB_SLAM3_ROS2_pointcloud/vocabulary/

▶️ Usage

Run Monocular SLAM

ros2 run orbslam3_ros2_pointcloud mono \
  ./src/ORB_SLAM3_ROS2_pointcloud/ORB_SLAM3_ROS2/vocabulary/ORBvoc.txt \
  ./src/ORB_SLAM3_ROS2_pointcloud/ORB_SLAM3_ROS2/config/monocular/TUM1.yaml \
  --ros-args -r camera:=/camera/image_raw

The ORB-SLAM3 ROS 2 node subscribes to /camera/image_raw and /camera/camera_info for SLAM execution.


🐞 Troubleshooting

  • setup.cfg warnings
    UserWarning: Unknown distribution option: 'tests_require'
    
    → Caused by setuptools version mismatch:
    pip install setuptools==58.2.0

📦 Supported Modes

This repository currently supports:

  • Monocular (mono)
  • Stereo (stereo) (To be Developed)

🙏 Acknowledgments

This project extends ORB-SLAM3 with ROS 2 integration and point cloud generation.


▶️ Testing with EuRoC Image

Check out this repo for additional info

About

ROS2 wrapper package for orbslam3 library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published