This repository provides Python bindings for the ORB_SLAM3 system.
To enable a smooth installation process, the original ORB_SLAM3 package has been lightly modified. These changes are managed using CMake and a patch file (cmakefix.patch) that are applied to the original ORB_SLAM3 repository at compile time.
sudo apt install libglew-dev libboost-serialization-dev libssl-dev libopencv-dev libeigen3-devgit clone [email protected]:PRBonn/ORB-SLAM-Python.git
cd ORB-SLAM-Python
makeNote: if you are running out of memory during installation, reduce the number of threads for compilation using export CMAKE_BUILD_PARALLEL_LEVEL=4. Or increase your /swap memory. This repository is only tested in ubuntu24 and ubuntu22
Check out the examples to try it out on TUM and EuroC datasets. The examples automatically download the ORB slam vocabulary. If you don't prefer this you can also download your own vocabulary and pass this as a parameter to the examples.
For tum dataset run:
python3 examples/tum_pipeline.py <path to tum dataset> --visualize
For EuroC dataset run:
python3 examples/euroc_pipeline.py <path to euroc dataset> --visualize
The repository also provides docker image files to build in ubuntu24 and ubuntu22. To build and run the project in Ubuntu24 docker:
make docker && make runFor ubuntu22 docker:
make ubuntu22 && make run22If you use this library for any academic work, please cite the original paper.
@article{campos2021tro,
title = {{ORB-SLAM3: An Accurate Open-Source Library for Visual, Visual-Inertial and Multi-Map SLAM}},
author = {Campos, Carlos and Elvira, Richard and G\´omez, Juan J. and Montiel, Jos\'e M. M. and Tard\'os, Juan D.},
journal = {IEEE Transactions on Robotics},
volume = {37},
number = {6},
pages = {1874--1890},
year = {2021}
}This work was as part of Sumanth's master thesis at Institue of Photogrammetry and Robotics Bonn. Special thanks to Ignacio Vizzo and Tiziano Gudagnino for their support and invaluable guidance. And a big thank you to Saurabh Gupta for carefully reviewing and contributing to the codebase.