This repository is an example for using g2o to run visual odometry on KITTI dataset in C++
- pangolin: https://github.com/stevenlovegrove/Pangolin
- opencv4 (build from source is preferred)
- Eigen (sudo apt install libeigen3-dev)
- g2o: https://github.com/RainerKuemmerle/g2o
mkdir build
cd build
cmake ..
make
./run_kitti_stereo
Make sure you change the default.yaml file in config folder!
./viewPose
The odometry data will be written to pose.txt file in result directory
- Use ORB features
- Add loop closure thread with Bag of Words(DBoW3)
Visualize the detected sparse featurepoints in the Pangolin Viewer