plusk01 / Anticipated-VINS-Mono

visual-inertial odometry (VINS-Mono) with motion-aware feature selection
GNU General Public License v3.0
65 stars 5 forks source link
ceres-solver imu-data optimization robotics submodular-optimization visual-inertial-odometry

Anticipated VINS-Mono

During aggressive maneuvers, vision-based perception techniques tend to fail because of the lack of tracked features. The purpose of this work is to mitigate loss of feature tracks by being more clever with which features are selected for use in the optimization. By doing so, we add robustness to the visual-inertial motion estimation because features that are likely to be soon lost based on future motion are not selected. Further, we allow for more efficient optimization by using fewer features with high information content.

Related Papers

Getting Started

To see Anticipated VINS-Mono in action, make sure to download some of the EuRoC datasets.

After cloning this repo (on the anticipation branch) into your catkin workspace and building, run the following commands (change the sequence/bag name appropriately) in three separate terminals:

# remember to source!
$ roslaunch vins_estimator euroc.launch sequence_name:=MH_05_difficult
# be sure to cd into the appropriate directory
rosbag play MH_05_difficult.bag --clock --pause
# remember to source!
$ roslaunch vins_estimator vins_rviz.launch

Architecture

Anticipated VINS-Mono builds off of the publicly available VINS-Mono ROS implementation. We have added anticipation and attention components as illustrated in the block diagram below. Only the Ceres Solver-based VIO Backend block is from VINS-Mono.

Changes in VINS-Mono

The following are new files, implemented as part of the anticipation algorithm.

File/Component Description
feature_tracker This is our own re-implementation of the VINS-Mono front end using the same processing ideas. Processing time is equivalent, if not 1-2 ms faster. The feature_img (PointCloud) message has been altered to return feature scores from cv::goodFeaturesToTrack.
state_defs.h Useful typedefs for horizon, state, features, and information matrices.
feature_selector.cpp Implements the expected information calculation (anticipation) and the feature selection algorithm (attention). This is where most of the work is done.
feature_selector.h Associated header file.
horizon_generator.cpp Implements the State Horizon Generator block. Two methods are implemented for predicting the future horizon: IMU, which propagates forward using the latest IMU measurement; and GT, which composes the current state estimate with relative ground truth transformations over the horizon. This method is meant to emulate having desired future poses from a path planner or from MPC.
horizon_generator.h Associated header file.

More Information

Authors

Licence

VINS-Mono is released under GPLv3.