orb-slam2笔记
2020-11-21
2020-11-21
安装
安装依赖
Pangolin
依赖
- libglew
安装
git clone https://github.com/stevenlovegrove/Pangolin.git |
OpenCV
TODO
Eigen
- 安装
sudo apt install libeigen3-dev
编译
修改OpenCV版本
修改根CMakeLists.txt:
# find_package(OpenCV 3.0 QUIET) |
然后需要更换所有#include <opencv/cv.h>
报错及解决
usleep is not declared: 在所有含usleep的*.cc文件加入#include <unistd.h>static assertion failed: 修改include/LoopClosing.h(const的位置)typedef map<KeyFrame*,g2o::Sim3,std::less<KeyFrame*>,
Eigen::aligned_allocator<std::pair<const KeyFrame*, g2o::Sim3> > > KeyFrameAndPose;
typedef map<KeyFrame*,g2o::Sim3,std::less<KeyFrame*>,
Eigen::aligned_allocator<std::pair<KeyFrame* const, g2o::Sim3> > > KeyFrameAndPose;
使用
结果
KeyFrameTrajectory.txt: 时间戳,(x, y, z),(q1, q2, q3, qw)