Code Monkey home page Code Monkey logo

visualinertialodometry's Introduction

VisualInertialOdometry

Introduction

This project is designed for students to learn the front-end and back-end in a Simultaneous Localization and Mapping (SLAM) system. The objective is that using feature_tracker in VINS-MONO as front-end, and GTSAM as back-end to implement a visual inertial odometry (VIO) algorithm for real-data collected by a vehicle: The MVSEC Dataset. The code is modified based on original code from CPI.

Specifically, we are learning how to utilize a front-end package and use IMUFactor, SmartProjectionPoseFactor and ISAM2 optimizer in GTSAM to achieve a simple but straight-forward VIO system.

Instruction

Step 1

Install ROS:

Ubuntu 18.04: http://wiki.ros.org/melodic/Installation/Ubuntu.

Ubuntu 16.04: http://wiki.ros.org/kinetic/Installation/Ubuntu.

Install GTSAM as a thirdparty: https://github.com/borglab/gtsam.

Step 2

Clone this ros workspace:

$ git clone https://github.com/ganlumomo/VisualInertialOdometry.git

Try out the feature_tracker package to see how does it work and what does it output.

Step 3

Refer examples ImuFactorsExample.cpp and ISAM2Example_SmartFactor.cpp to implement the following functions defined in GraphSolver.h:

// For IMU preintegration
set_imu_preintegration
create_imu_factor
get_predicted_state
reset_imu_integration

// For smart vision factor
process_feat_smart

You are free to change the function signature, but make sure change other places accordingly.

Step 4

Build the code and launch the ros node with rosbag data:

$ cd VisualInertialOdometry
$ catkin_make
$ source devel/setup.bash
$ roslaunch launch/mvsec_test.launch
$ rosbag play mvsec_test.bag

Test data can be downloaded here: mvsec_test.bag.

Expected Results

Write one-page project summary about your implementation and result.

References

VINS-Mono: A Robust and Versatile Monocular Visual-Inertial State Estimator (PDF)

IMU Preintegration on Manifold for Efficient Visual-Inertial Maximum-a-Posteriori Estimation (PDF)

Eliminating conditionally independent sets in factor graphs: A unifying perspective based on smart factors (PDF)

The Multivehicle Stereo Event Camera Dataset: An Event Camera Dataset for 3D Perception (PDF)

visualinertialodometry's People

Contributors

ganlumomo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.