KalmanFilter
KalmanFilter
#include <kalman.hpp>
Public Functions
| Name | |
|---|---|
| KalmanFilter(double dt, Eigen::MatrixXd const & A, Eigen::MatrixXd const & C, Eigen::MatrixXd const & Q, Eigen::MatrixXd const & R, Eigen::MatrixXd const & P) | |
| KalmanFilter() | |
| void | init() |
| void | init(double t0, Eigen::VectorXd const & x0) |
| void | update(Eigen::VectorXd const & y) |
| void | update(Eigen::VectorXd const & y, double dt, Eigen::MatrixXd const A) |
| Eigen::VectorXd | state() |
| double | time() |
Detailed Description
class KalmanFilter;Author: : Hayk Martirosyan
Date: : 2014.11.15
The MIT License (MIT)
Copyright (c) 2014 Hayk Martirosyan
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Kalman filter implementation using Eigen. Based on the following introductory paper:
http://www.cs.unc.edu/~welch/media/pdf/kalman_intro.pdf
Public Functions Documentation
function KalmanFilter
KalmanFilter(
double dt,
Eigen::MatrixXd const & A,
Eigen::MatrixXd const & C,
Eigen::MatrixXd const & Q,
Eigen::MatrixXd const & R,
Eigen::MatrixXd const & P
)Author: : Hayk Martirosyan
Date: : 2014.11.15
Create a Kalman filter with the specified matrices. A - System dynamics matrix C - Output matrix Q - Process noise covariance R - Measurement noise covariance P - Estimate error covariance
The MIT License (MIT)
Copyright (c) 2014 Hayk Martirosyan
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Kalman filter implementation using Eigen. Based on the following introductory paper:
http://www.cs.unc.edu/~welch/media/pdf/kalman_intro.pdf
function KalmanFilter
KalmanFilter()Create a blank estimator.
function init
void init()Initialize the filter with initial states as zero.
function init
void init(
double t0,
Eigen::VectorXd const & x0
)Initialize the filter with a guess for initial states.
function update
void update(
Eigen::VectorXd const & y
)Update the estimated state based on measured values. The time step is assumed to remain constant.
function update
void update(
Eigen::VectorXd const & y,
double dt,
Eigen::MatrixXd const A
)Update the estimated state based on measured values, using the given time step and dynamics matrix.
function state
inline Eigen::VectorXd state()Return the current state and time.
function time
inline double time()Updated on 2026-11-13 at 20:25:40 +0000