-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from OmarHarib/devel-c98
Devel c98
- Loading branch information
Showing
12 changed files
with
264 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<<<<<<< HEAD | ||
# Temp files | ||
*~ | ||
|
||
# Prerequisites | ||
*.d | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,67 @@ | ||
# invariant-ekf | ||
C++ library to implement invariant extended Kalman filtering for aided inertial navigation. | ||
# inekf | ||
This repository contains a C++ library that implements an invariant extended Kalman filter (InEKF) for 3D aided inertial navigation. | ||
|
||
This filter can be used to estimate a robot's 3D pose and velocity using an IMU motion model for propagation. The following measurements are currently supported: | ||
* Prior landmark position measurements (localization) | ||
* Estiamted landmark position measurements (SLAM) | ||
* Kinematic and contact measurements | ||
|
||
The core theory was developed by Barrau and Bonnabel and is presented in: | ||
["The Invariant Extended Kalman filter as a Stable Observer"](https://arxiv.org/abs/1410.1465). | ||
|
||
Inclusion of kinematic and contact measurements is presented in: | ||
["Contact-aided Invariant Extended Kalman Filtering for Legged Robot State Estimation"](https://arxiv.org/pdf/1805.10410.pdf). | ||
|
||
A ROS wrapper for the filter is available at [https://github.com/RossHartley/invariant-ekf-ros](https://github.com/RossHartley/invariant-ekf-ros). | ||
|
||
## Setup | ||
### Requirements | ||
* CMake 2.8.3 or later | ||
* g++ 5.4.0 or later | ||
* [Eigen3 C++ Library](http://eigen.tuxfamily.org/index.php?title=Main_Page) | ||
|
||
### Installation Using CMake | ||
``` | ||
mkdir build | ||
cd build | ||
cmake .. | ||
make | ||
``` | ||
invariant-ekf can be easily included in your cmake project by adding the following to your CMakeLists.txt: | ||
``` | ||
find_package(inekf) | ||
include_directories(${inekf_INCLUDE_DIRS}) | ||
``` | ||
|
||
## Examples | ||
1. A landmark-aided inertial navigation example is provided at `src/examples/landmarks.cpp` | ||
2. A contact-aided inertial navigation example is provided at `src/examples/kinematics.cpp` | ||
|
||
## Citations | ||
The contact-aided invariant extended Kalman filter is described in: | ||
* R. Hartley, M. G. Jadidi, J. Grizzle, and R. M. Eustice, “Contact-aided invariant extended kalman filtering for legged robot state estimation,” in Proceedings of Robotics: Science and Systems, Pittsburgh, Pennsylvania, June 2018. | ||
``` | ||
@INPROCEEDINGS{Hartley-RSS-18, | ||
AUTHOR = {Ross Hartley AND Maani Ghaffari Jadidi AND Jessy Grizzle AND Ryan M Eustice}, | ||
TITLE = {Contact-Aided Invariant Extended Kalman Filtering for Legged Robot State Estimation}, | ||
BOOKTITLE = {Proceedings of Robotics: Science and Systems}, | ||
YEAR = {2018}, | ||
ADDRESS = {Pittsburgh, Pennsylvania}, | ||
MONTH = {June}, | ||
DOI = {10.15607/RSS.2018.XIV.050} | ||
} | ||
``` | ||
The core theory of invariant extended Kalman filtering is presented in: | ||
* Barrau, Axel, and Silvère Bonnabel. "The invariant extended Kalman filter as a stable observer." IEEE Transactions on Automatic Control 62.4 (2017): 1797-1812. | ||
``` | ||
@article{barrau2017invariant, | ||
title={The invariant extended Kalman filter as a stable observer}, | ||
author={Barrau, Axel and Bonnabel, Silv{\`e}re}, | ||
journal={IEEE Transactions on Automatic Control}, | ||
volume={62}, | ||
number={4}, | ||
pages={1797--1812}, | ||
year={2017}, | ||
publisher={IEEE} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
## Running the Matlab example | ||
1. Open Matlab to the "matlab_example" folder. | ||
|
||
2. Run the scipt "run_RIEKF_test.m". This will open and run a simulink model with the measurement data stored in the "/data" folder. After the simulation finishes, a few plots will appear analyzing the results of the state estimator. | ||
|
||
3. The filter parameters can be changed in the "example_code/RIEKF_InitFcn.m" script. This script is automatically executed when the simulink model is run. | ||
|
||
### Tunable Parameters | ||
The following parameters will affect the actual noisy measurements coming into the filter: | ||
* `gyro_true_bias_init` - Initial gyroscope bias | ||
* `accel_true_bias_init` - Initial accelerometer bias | ||
* `gyro_true_noise_std` - Standard deviation of noise added to the gyroscope measurement | ||
* `gyro_true_bias_noise_std` - Standard deviation of noise added to the gyroscope bias | ||
* `accel_true_noise_std` - Standard deviation of noise added to the accelerometer measurement | ||
* `accel_true_bias_noise_std` - Standard deviation of noise added to the accelerometer bias | ||
* `landmark_true_noise_std` - Standard deviation of noise added to the landmark measurements | ||
* `landmark_positions` - List of landmark positions with an associated ID | ||
* `landmark_measurement_frequency` - Frequency of incoming landmark measurements | ||
|
||
The following parameters will affect how the filter is run: | ||
* `static_bias_initialization` - Flag that enables static bias initialization, where the initial bias estimate is obtained from the first few seconds of data assuming the base pose remains fixed. Keep this flag to false for the included dataset. | ||
* `ekf_update_enabled` - Flag that enables the update phase of the Kalman filter. | ||
* `enable_kinematic_measurements` - Flag that enables kinematic measurements. | ||
* `enable_landmark_measurements` - Flag that enables landmark measurements. | ||
* `enable_static_landmarks` - Flag that enables static landmarks. If false, the landmark positions will be estimated along with the rest of the state variables. | ||
|
||
The following parameters affect the initial condition and covariances used for the process and measurement models: | ||
* `gyro_bias_init` - Initial gyroscope bias estimate | ||
* `accel_bias_init` - Initial accelerometer bias estimate | ||
* `gyro_noise_std` - Standard deviation of the gyroscope measurement noise | ||
* `gyro_bias_noise_std` - Standard deviation of the gyroscope bias noise | ||
* `accel_noise_std` - Standard deviation of the accelerometer measurement noise | ||
* `accel_bias_noise_std` - Standard deviation the accelerometer bias noise | ||
* `contact_noise_std` - Standard deviation of the contact frame velocity measurement noise | ||
* `encoder_noise_std` - Standard deviation of the joint encoder measurement noise | ||
* `landmark_noise_std` - Standard deviation of the landmark measurement noise | ||
|
||
The following parameters set the initial covariance for the state estimate: | ||
* `prior_base_pose_std` - Initial base orientation and position standard deviation | ||
* `prior_base_velocity_std` - Initial base velocity standard deviation | ||
* `prior_contact_position_std` - Initial contact position standard deviation | ||
* `prior_gyro_bias_std` - Initial gyroscope bias standard deviation | ||
* `prior_accel_bias_std` - Initial accelerometer bias standard deviation | ||
* `prior_forward_kinematics_std` - Additional noise term that is added to increase the forward kinematics measurement covariance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.