百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
V

VI_ORB_SLAM2

> 编程语言
开源

基于 ORB-SLAM2 的单目/立体视觉-惯性 ORB-SLAM

192 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

基于 ORB-SLAM2 的单目/立体视觉-惯性 ORB-SLAM

VI_ORB_SLAM2: Monocular/Stereo Visual-Inertial ORB-SLAM based on ORB-SLAM2

The repository includes the Monocular version and the Stereo version of Visual-Inertial ORB-SLAM. These two are the no ros version of jingpang's LearnVIORB and ZuoJiaxing's LearnVIORBnorosgai2. For details, you may refer to Examples/Monocular/mono_euroc_VI.cc and Examples/Stereo/stereo_euroc_VI.cc.

I have fix some bugs to make it more stable to pass through more datasets and modify the code to make it compatible with ORB-SLAM2.

Not bug-free. Not real-time.

If you think this repo is useful, please watch, star or fork it!

TO DO List

  • Real-time
  • Support the Localization mode for stereo VI ORB-SLAM
  • Relative Pose Error Analysis, like orientation and translation error

Building VI-ORB-SLAM2 library and examples

Clone the repository:

bash
git clone https://github.com/YoujieXia/VI_ORB_SLAM2.git VI_ORB_SLAM2

We provide a script build.sh to build the Thirdparty libraries and VI_ORB-SLAM2. Please make sure you have installed all required dependencies (see section 2 of ORB-SLAM2 README). Execute:

bash
cd VI_ORB_SLAM2
chmod +x build.sh
./build.sh

This will create libORB_SLAM2.so at lib folder and the executables mono_tum, mono_kitti, rgbd_tum, stereo_kitti, mono_euroc, stereo_euroc, mono_euroc_VI and stereo_euroc_VI in Examples folder.

Example commands for running on the EuRoC Dataset.

  1. Download a sequence (ASL format) from http://projects.asl.ethz.ch/datasets/doku.php?id=kmavvisualinertialdatasets

  2. For Mono VI ORB-SLAM:

MH_01_easy

./Examples/Monocular/mono_euroc_VI Vocabulary/ORBvoc.bin Examples/Monocular/EuRoC_VI.yaml PATH_TO_EuRoC/MH_01_easy/mav0/imu0/data.csv PATH_TO_EuRoC/MH_01_easy/mav0/cam0/data.csv PATH_TO_EuRoC/MH_01_easy/mav0/cam0/data MH_01_easy
  1. For Stereo VI ORB-SLAM:

MH_01_easy

./Examples/Stereo/stereo_euroc_VI Vocabulary/ORBvoc.bin Examples/Stereo/EuRoC_VI.yaml PATH_TO_EuRoC/MH_01_easy/mav0/imu0/data.csv PATH_TO_EuRoC/MH_01_easy/mav0/cam0/data.csv PATH_TO_EuRoC/MH_01_easy/mav0/cam0/data PATH_TO_EuRoC/MH_01_easy/mav0/cam1/data MH_01_easy

Note that we use the ORBvoc.bin instead of ORBvoc.txt to speed up processing. The ORBvoc.bin could be generated by the executable bin_vocabulary at Vocabulary folder. You may still refer to the end of CMakeLists.txt to see how it works.

Results

The temp results are stored at tmp_result/mono_VI/ and tmp_result/stereo_VI/ for Monocular and Stereo VI ORB-SLAM respectively. In each folder, files about camera poses, IMU biases, scale are saved.

Quantitative Evaluation

Here we use the translation RMSE (m) of the keyframe trajectory as the metric. The results are shown below.

Mono ORB-SLAM** Mono VI ORB-SLAM** Stereo VI ORB-SLAM Stereo ORB-SLAM
MH_01_easy 0.070 0.068 0.044528 0.038111
MH_02_easy 0.066 0.072 0.050601 0.047465
MH_03_medium 0.071 0.071 0.050824 0.040883
MH_04_difficult 0.081 0.066 0.708554 0.146833
MH_05_difficult 0.060 0.060 0.097576 0.04993
V1_01_easy 0.015 0.016 0.089984 0.088299
V1_02_medium 0.020 0.019 0.066742 0.065743
V1_03_difficult X* X 0.104091 0.065842
V2_01_easy 0.015 0.017 0.089429 0.062083
V2_02_medium 0.017 0.017 0.059391 0.079471
V2_03_difficult X 0.045 X 0.468666
  • 'X' indicates the failure in this sequence.

** The left two columns are referring to Visual-Inertial Monocular SLAM with Map Reuse.

*** The right two columns are results of this repository obtained on laptop.

Visualization

The example visualizations on the dataset MH_04_difficult are at visualizations folder.


NOTE on Monocular VI ORB-SLAM from pangjing:

An implementation of Visual Inertial ORBSLAM based on ORB-SLAM2

Not bug-free. Not real-time. Just try the basic ideas of Visual Inertial SLAM in above paper. Welcome to improve it together!

Build with build.sh. Modify the path in config/euroc.yaml.

Tested on EuRoc ROS bag data with ROS launch file Examples/ROS/ORB_VIO/launch/testeuroc.launch. Files in pyplotscripts can be used to visualize some results.

Tested on sensors: UI-1221-LE and 3DM-GX3-25, see video on Youtube (real-time) or YouKu.

Please contact jp08-at-foxmail-dot-com for more details.

Below is the primary README of ORBSLAM2.


ORB-SLAM2

Authors: Raul Mur-Artal, Juan D. Tardos, J. M. M. Montiel and Dorian Galvez-Lopez (DBoW2)

Current version: 1.0.0

ORB-SLAM2 is a real-time SLAM library for Monocular, Stereo and RGB-D cameras that computes the camera trajectory and a sparse 3D reconstruction (in the stereo and RGB-D case with true scale). It is able to detect loops and relocalize the camera in real time. We provide examples to run the SLAM system in the KITTI dataset as stereo or monocular, in the TUM dataset as RGB-D or monocular, and in the EuRoC dataset as stereo or monocular. We also provide a ROS node to process live monocular, stereo or RGB-D streams. The library can be compiled without ROS. ORB-SLAM2 provides a GUI to change between a SLAM Mode and Localization Mode, see section 9 of this document.

Related Publications:

[Monocular] Raúl Mur-Artal, J. M. M. Montiel and Juan D. Tardós. ORB-SLAM: A Versatile and Accurate Monocular SLAM System. IEEE Transactions on Robotics, vol. 31, no. 5, pp. 1147-1163, 2015. (2015 IEEE Transactions on Robotics Best Paper Award). PDF.

[Stereo and RGB-D] Raúl Mur-Artal and Juan D. Tardós. ORB-SLAM2: an Open-Source SLAM System for Monocular, Stereo and RGB-D Cameras. IEEE Transactions on Robotics, vol. 33, no. 5, pp. 1255-1262, 2017. PDF.

[DBoW2 Place Recognizer] Dorian Gálvez-López and Juan D. Tardós. Bags of Binary Words for Fast Place Recognition in Image Sequences. IEEE Transactions on Robotics, vol. 28, no. 5, pp. 1188-1197, 2012. PDF

1. License

ORB-SLAM2 is released under a GPLv3 license. For a list of all code/library dependencies (and associated licenses), please see Dependencies.md.

For a closed-source version of ORB-SLAM2 for commercial purposes, please contact the authors: orbslam (at) unizar (dot) es.

If you use ORB-SLAM2 (Monocular) in an academic work, please cite:

@article{murTRO2015,
  title={{ORB-SLAM}: a Versatile and Accurate Monocular {SLAM} System},
  author={Mur-Artal, Ra\'ul, Montiel, J. M. M. and Tard\'os, Juan D.},
  journal={IEEE Transactions on Robotics},
  volume={31},
  number={5},
  pages={1147--1163},
  doi = {10.1109/TRO.2015.2463671},
  year={2015}
 }

if you use ORB-SLAM2 (Stereo or RGB-D) in an academic work, please cite:

@article{murORB2,
  title={{ORB-SLAM2}: an Open-Source {SLAM} System for Monocular, Stereo and {RGB-D} Cameras},
  author={Mur-Artal, Ra\'ul and Tard\'os, Juan D.},
  journal={IEEE Transactions on Robotics},
  volume={33},
  number={5},
  pages={1255--1262},
  doi = {10.1109/TRO.2017.2705103},
  year={2017}
 }

2. Prerequisites

We have tested the library in Ubuntu 12.04, 14.04 and 16.04, but it should be easy to compile in other platforms. A powerful computer (e.g. i7) will ensure real-time performance and provide more stable and accurate results.

C++11 or C++0x Compiler

We use the new thread and chrono functionalities of C++11.

Pangolin

We use Pangolin for visualization and user interface. Dowload and install instructions can be found at: https://github.com/stevenlovegrove/Pangolin.

OpenCV

We use OpenCV to manipulate images and features. Dowload and install instructions can be found at: http://opencv.org. Required at leat 2.4.3. Tested with OpenCV 2.4.11 and OpenCV 3.2.

Eigen3

Required by g2o (see below). Download and install instructions can be found at: http://eigen.tuxfamily.org. Required at least 3.1.0.

BLAS and LAPACK

BLAS and LAPACK libraries are requiered by g2o (see below). On ubuntu:

bash
sudo apt-get install libblas-dev
sudo apt-get install liblapack-dev

DBoW2 and g2o (Included in Thirdparty folder)

We use modified versions of the DBoW2 library to perform place recognition and g2o library to perform non-linear optimizations. Both modified libraries (which are BSD) are included in the Thirdparty folder.

ROS (optional)

We provide some examples to process the live input of a monocular, stereo or RGB-D camera using ROS. Building these examples is optional. In case you want to use ROS, a version Hydro or newer is needed.

3. Building ORB-SLAM2 library and examples

Clone the repository:

bash
git clone https://github.com/raulmur/ORB_SLAM2.git ORB_SLAM2

We provide a script build.sh to build the Thirdparty libraries and ORB-SLAM2. Please make sure you have installed all required dependencies (see section 2). Execute:

bash
cd ORB_SLAM2
chmod +x build.sh
./build.sh

This will create libORB_SLAM2.so at lib folder and the executables mono_tum, mono_kitti, rgbd_tum, stereo_kitti, mono_euroc and stereo_euroc in Examples folder.

4. Monocular Examples

TUM Dataset

  1. Download a sequence from http://vision.in.tum.de/data/datasets/rgbd-dataset/download and uncompress it.

  2. Execute the following command. Change TUMX.yaml to TUM1.yaml,TUM2.yaml or TUM3.yaml for freiburg1, freiburg2 and freiburg3 sequences respectively. Change PATH_TO_SEQUENCE_FOLDERto the uncompressed sequence folder.

./Examples/Monocular/mono_tum Vocabulary/ORBvoc.txt Examples/Monocular/TUMX.yaml PATH_TO_SEQUENCE_FOLDER

KITTI Dataset

  1. Download the dataset (grayscale images) from http://www.cvlibs.net/datasets/kitti/eval_odometry.php

  2. Execute the following command. Change KITTIX.yamlby KITTI00-02.yaml,

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++orb-slam2slamvisual-inertial

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言