国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

編譯安裝及運行單目ORBSLAM2在Ubuntu14.04

2019-11-09 19:22:41
字體:
來源:轉載
供稿:網友

前言

ORBSLAM2是一個非常適合SLAM入門學習的開源工程。它支持單目、雙目、RGB-D使用,可以計算攝像機的軌跡,并且重建稀疏的3D地圖。

官網有源代碼和配置教程,地址是

https://github.com/raulmur/ORB_SLAM2

 

1 安裝必要工具

首先,有兩個工具是需要提前安裝的。即cmake和Git。

sudo apt-get install cmake

sudo apt-get install git

 

2 安裝Pangolin,用于可視化和用戶接口

安裝依賴項:

sudo apt-get install libglew-dev

sudo apt-get install libpython2.7-dev

 

先轉到一個要存儲Pangolin的路徑下,例如~/Documents,然后

git clonehttps://github.com/stevenlovegrove/Pangolin.git

cd Pangolin

mkdir build

cd build

cmake ..

make –j

sudo make install

 

3 安裝OpenCV

最低的OpenCV版本為2.4.3,建議采用OpenCV 2.4.11或者OpenCV 3.2.0。從OpenCV官網下載OpenCV2.4.11。然后安裝依賴項:

sudo apt-get install build-essential

sudo apt-get install libgtk2.0-dev

sudo apt-get install pkg-config

 

將下載的OpenCV解壓到自己的指定目錄,然后cd到OpenCV的目錄下。

cd ~/Downloads/opencv-2.4.11

mkdir release

cd release

cmake -D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local ..

make

sudo make install

 

4 安裝Eigen3

最低要求版本為3.1.0。在http://eigen.tuxfamily.org 下載Eigen3的最新版本,一般是一個壓縮文件,下載后解壓,然后cd到Eigen3的根目錄下。

mkdir build

cd build

cmake ..

make

sudo make install

 

5 安裝ORBSLAM2

先轉到自己打算存儲ORBSLAM2工程的路徑,然后執行下列命令

git clonehttps://github.com/raulmur/ORB_SLAM2.git ORB_SLAM2

cd ORB_SLAM2

chmod +x build.sh

./build.sh

 

之后會在lib文件夾下生成libORB_SLAM2.so,并且在Examples文件夾下生成mono_tum,mono_kitti, rgbd_tum,stereo_kitti, mono_euroc 和 stereo_euroc。

 

6 運行單目SLAM實例

在http://vision.in.tum.de/data/datasets/rgbd-dataset/download下載一個序列,并解壓。轉到ORBSLAM2文件夾下,執行下面的命令。根據下載的視頻序列freiburg1, freiburg2 和 freiburg3將TUMX.yaml分別轉換為TUM1.yaml,TUM2.yaml,TUM3.yaml。將PATH_TO_SEQUENCE_FOLDER更改為解壓的視頻序列文件夾。

 

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

 

例如,我自己的電腦上,該命令變為:

./Examples/Monocular/mono_tumVocabulary/ORBvoc.txt Examples/Monocular/TUM1.yaml/home/bill/Downloads/rgbd_dataset_freiburg1_xyz

 

運行截圖如下:

相關文獻

[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. ArXiv preprint arXiv:1610.06475 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


上一篇:JFreeChart 折線圖

下一篇:自旋鎖

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 南城县| 广元市| 菏泽市| 额尔古纳市| 油尖旺区| 宁河县| 横峰县| 丹凤县| 元阳县| 柳河县| 莱西市| 淮南市| 余庆县| 满城县| 竹溪县| 措勤县| 宁河县| 高陵县| 阳朔县| 武城县| 泗阳县| 怀仁县| 海安县| 河西区| 原阳县| 巴东县| 定西市| 巧家县| 灵璧县| 延庆县| 高清| 云霄县| 巴中市| 潞西市| 开鲁县| 南城县| 平利县| 清徐县| 宜兰市| 通海县| 佳木斯市|