ubuntu18.04安装orb_slam2
时间: 2023-05-01 19:01:09 浏览: 159
安装orb_slam2在ubuntu18.04上的步骤如下:
1. 安装依赖项:
```
sudo apt-get install libsuitesparse-dev libeigen3-dev libboost-all-dev libglew-dev libglfw3-dev libatlas-base-dev libatlas-dev libatlas-doc libatlas3-base libatlas3-base-dev libfreeimage-dev libgoogle-glog-dev libgflags-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libqglviewer-dev-qt4 libqglviewer-dev-qt5 libqglviewer-dev-common libqglviewer-dev-doc libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libopenni2-dev libopenni-dev libop这个列表似乎有重复项目,并且安装了很多不必要的依赖项。正确的安装步骤应该是:
1. 安装依赖项:
```
sudo apt-get install libsuitesparse-dev libeigen3-dev libboost-all-dev libglew-dev libglfw3-dev libatlas-base-dev libatlas-dev libfreeimage-dev libgoogle-glog-dev libgflags-dev libopenni-dev libopenni2-dev libqglviewer-dev-qt4 libqglviewer-dev-qt5
```
2. 下载orb_slam2并编译它
```
git clone https://github.com/raulmur/ORB_SLAM2.git
cd ORB_SLAM2
chmod +x build.sh
./build.sh
```
3. 运行示例程序
```
./Examples/Monocular/mono_tum Vocabulary/ORBvoc.txt Examples/Monocular/TUM1.yaml
```
请注意, orb_slam2 仅支持 monocular 和 stereo 模式,并且需要一个特定格式的词汇库和配置文件。
阅读全文