Skip to content
/ msckf_cg Public

Modified version of KumarRobotics/msckf_vio (commit e3a39a9 on Jul 26, 2019), a stereo version of MSCKF.

License

Notifications You must be signed in to change notification settings

cggos/msckf_cg

Repository files navigation

msckf_vio

Modified version of KumarRobotics/msckf_vio (commit e3a39a9 on Jul 26, 2019), a stereo version of MSCKF.

The software takes in synchronized stereo images and IMU messages and generates real-time 6DOF pose estimation of the IMU frame.


Build

mkdir -p ws_msckf/src
cd ws_msckf/src
git clone xxx
cd ../
catkin_make --pkg msckf_vio [--cmake-args -DCMAKE_BUILD_TYPE=Release]

Run

with Dataset

  • run with EuRoC dataset

    rosbag play -s 25 MH_01_easy.bag
    # or
    rosbag play V1_01_easy.bag
    
    roslaunch msckf_vio msckf_vio_euroc.launch [rviz:=true]

  • Note

with Live Camera

  • run with MYNTEYE-S1030 (Stereo + IMU)
    roslaunch msckf_vio msckf_vio_mynteye_s1030.launch [rviz:=true]

MSCKF + Loop Closure

ref: OpenVINS + ov_secondary

  • download and build ov_secondary, run

    roslaunch loop_fusion posegraph.launch
  • run MSCKF_VIO with EoRoC MH_01_easy

    roslaunch msckf_vio msckf_vio_euroc.launch rviz:=true
    rosbag play -s 40 euroc/MH_01_easy.bag

Calibration

An accurate calibration is crucial for successfully running the software. To get the best performance of the software, the stereo cameras and IMU should be hardware synchronized. Note that for the stereo calibration, which includes the camera intrinsics, distortion, and extrinsics between the two cameras, you have to use a calibration software. Manually setting these parameters will not be accurate enough. Kalibr can be used for the stereo calibration and also to get the transformation between the stereo cameras and IMU. The yaml file generated by Kalibr can be directly used in this software. See calibration files in the config folder for details. The two calibration files in the config folder should work directly with the EuRoC and fast flight datasets. The convention of the calibration file is as follows:

camx/T_cam_imu: takes a vector from the IMU frame to the camx frame. cam1/T_cn_cnm1: takes a vector from the cam0 frame to the cam1 frame.

The filter uses the first 200 IMU messages to initialize the gyro bias, acc bias, and initial orientation. Therefore, the robot is required to start from a stationary state in order to initialize the VIO successfully.

ROS Nodes

image_processor node

Subscribed Topics

  • imu (sensor_msgs/Imu): IMU messages is used for compensating rotation in feature tracking, and 2-point RANSAC.

  • cam[x]_image (sensor_msgs/Image): Synchronized stereo images.

Published Topics

  • features (msckf_vio/CameraMeasurement): Records the feature measurements on the current stereo image pair.

  • tracking_info (msckf_vio/TrackingInfo): Records the feature tracking status for debugging purpose.

  • debug_stereo_img (sensor_msgs::Image): Draw current features on the stereo images for debugging purpose. Note that this debugging image is only generated upon subscription.

vio node

Subscribed Topics

  • imu (sensor_msgs/Imu): IMU measurements.

  • features (msckf_vio/CameraMeasurement): Stereo feature measurements from the image_processor node.

Published Topics

  • odom (nav_msgs/Odometry): Odometry of the IMU frame including a proper covariance.

  • feature_point_cloud (sensor_msgs/PointCloud2): Shows current features in the map which is used for estimation.

About

Modified version of KumarRobotics/msckf_vio (commit e3a39a9 on Jul 26, 2019), a stereo version of MSCKF.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published