Coder Social home page Coder Social logo

ekfmonoslam's Introduction

ekfmonoslam

SLAM based on EKF using a monocular camera, optionally an IMU, and GPS data. This package has been tested in matlab 2012 on 64bit Windows 8.1.

1. Dependencies

1.1 1-Point RANSAC Inverse Depth EKF Monocular SLAM v1.01 (included)

The EKF of ekfmonoslam is based on that in 1-Point RANSAC Inverse Depth EKF Monocular SLAM v1.01. A few minor changes have been made to several files of its scripts, so the package is included to simplify the installation procedure.

1.2 Camera calibration toolbox for matlab (included)

Ekfmonoslam used a couple of pinhole camera projection functions from the camera calibration toolbox package.

1.3 mexopencv (included)

Ekfmonoslam used Good feature to track and Lucas-Kanade tracker in mexopencv. Mex files built from either mexopencv v3.4.1 or v2.4 have been shown to support ekfmonoslam. For convenience, necessary compiled mex files are included for mexopencv v2.4 built in maplab 2012b on Windows 7 with OpenCV 2.4.6 x64 vc10 release libs. These mex files worked normally under maplab 2012b and 2018b. If mexopencv is to be built anew, please refer to the instuctions here.

1.4 INS toolkit (included)

ekfmonoslam also depends on the INS toolkit which can be found at http://www.instk.org/. Since I made much changes to instk, I included it in ekfmonoslam package.

1.5 VoiceBox (included)

Mike Brooke's VoiceBox is used for rotation transformations.

2. Build

Download the ekfmonoslam package.

3. Test with data

A test data, "20130808", can be retrieved from here. Once downloaded, put it to the ekfmonoslam/data folder. (1) To test GPS/IMU integration, open the folder ekfmonoslam/tests in matlab, then run Test_EKF_filters.m.

(2) To test GPS/IMU/Monocular fusion, run mainslam.m.

(3) Unscented Kalman filter for GPS/IMU/Monocular camera fusion, refer to gssm_cam_ins_gps.m and cam_ins_gps.m. But this was very experimental.

4. Simulate noisy IMU data given ground truth poses

Suppose the ground truth SE(3) poses (3D position and 3DOF attitude) are given at a regular interval, e.g. 0.1s, the noisy IMU data at a particular frequency, e.g., 100Hz can be generated in two steps: 1, generate the continuous trajectory by interpolating the existing poses, differentiating the continuous trajectory will give angular rates and linear accelerations, for details, see [1]; 2, add noise to these true IMU samples, given error specs of a particular IMU model.

In practice, first build and run the program in the folder SE3Interpolation. Two test cases are provided in SE3Interpolation, for both KITTI seq 00 and Tsukuba CG stereo dataset. To run it, you need to download at least one of these two datasets. This step will produce the true IMU samples. Then to add noise, call testAddImuError.m in tests folder.

Reference

[1] Jianzhu Huai, Charles K. Toth and Dorota A. Grejner-Brzezinska: Stereo-inertial odometry using nonlinear optimization. Proceedings of the 28th International Technical Meeting of The Satellite Division of the Institute of Navigation (ION GNSS+ 2015) 2015.

ekfmonoslam's People

Contributors

jzhuai0108 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ekfmonoslam's Issues

a formula issue

Hi Huai,
The function 'Renew( filter, newGrpPts)' in the fuction file 'EKF_filter_s0frame.m':
when 'add new feature points to the states and add the new Key frame to the KeyFrames, and update covariance', the following two lines:
Gmat(endIndex+(1:3), filter.imuOrientSIP+(0:2))=eye(3); % for qs0 2 s
Gmat(endIndex+(4:6), 7:9)=eye(3); % for Ts0 2s
could u explain it ?

Simulate noisy IMU data

when i simulated IMU data in your way,i can not find "poseFile="/media/jhuai/Mag/KITTISeq00/00.txt";" in kittiseq00 dataset,i already succeeding in coping with Tsukuba 3G stereo dataset. so,could U give me some help to simulate imu data from kittiseq00? I have no idea of "poseFile" in kittiSeq00.

camera model

Hi Huai,
Thank you for sharing your code . Nowadays I am trying to modify the ekfslam to run my own dataset.But I get confused by the Civera's classic model as in Civera, 2008 . I don't what the relationship between k1 k2 in Civera's classic model to the general opencv radial distortion. Can you give a answer? Thank you.

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.