Home

Awesome

LDSO: Direct Sparse Odometry with Loop Closure

Related Publications

Dependencies

System dependencies

There is a convenience script that will help you install the needed libraries in Ubuntu 16.04 and later, including Eigen, glog, gtest, Suitesparse, OpenCV, libzip.

./install_dependencies.sh

On OSX you can install these via Homebrew.

Other libraries

Compile and install Pangolin for visualization.

Compile

./make_project.sh

This will build the thirdparty library and also ldso library for you. You can also follow the steps in this script manually (will compile DBoW3 and g2o first, and the ldso).

Run

We provide examples on three datasets.

You can easily extend them in the examples folder or add your own executables for your camera or dataset.

After compilation, in the bin directory there will be three executables like run_dso_xxx. You can either specify the directories in the source file like examples/run_dso_xxx.cc, or pass them as command line parameters. When running LDSO, you will see a window showing an visualization of camera trajectory and tracked points.

Make sure your working directory is at the root of LDSO code, to ensure that files like the BoW vocabulary file are found.

TUM-Mono:

To run LDSO on TUM-Mono dataset sequence 34, execute:

./bin/run_dso_tum_mono \
    preset=0 \
    files=XXXXX/TUMmono/sequences/sequence_34/images.zip \
    vignette=XXXXX/TUMmono/sequences/sequence_34/vignette.png \
    calib=XXXXX/TUMmono/sequences/sequence_34/camera.txt \
    gamma=XXXXX/TUMmono/sequences/sequence_34/pcalib.txt

Kitti:

To run LDSO on Kitti dataset sequence 00, execute:

./bin/run_dso_kitti \
    preset=0 \
    files=XXXXX/Kitti/odometry/dataset/sequences/00/ \
    calib=./examples/Kitti/Kitti00-02.txt

EuRoC:

To run LDSO on EuRoC dataset sequence MH_01_easy, execute:

./bin/run_dso_euroc \
    preset=0 \
    files=XXXX/EuRoC/MH_01_easy/mav0/cam0/

Notes

License

LDSO, like DSO, is licensed under GPLv3. It makes use of several third-party libraries. Among other's it comes with the source of: