ImFusion SDK 4.3
KalmanFilter< StateSize, MeasurementSize > Class Template Reference

#include <ImFusion/Base/KalmanFilter.h>

Generic Kalman filter. More...

Detailed Description

template<int StateSize, int MeasurementSize>
class ImFusion::KalmanFilter< StateSize, MeasurementSize >

Generic Kalman filter.

Public Member Functions

 KalmanFilter ()
 Constructor.
 
void init (const Eigen::Matrix< double, StateSize, 1 > &x, const Eigen::Matrix< double, StateSize, StateSize > &P)
 Initializes the Kalman filter with an initial state estimate and an initial measurement covariance.
 
Eigen::Matrix< double, StateSize, 1 > getState () const
 Returns the state vector.
 
void setProcessNoiseCovariance (const Eigen::Matrix< double, StateSize, StateSize > &Q)
 Sets the process noise covariance.
 
void setMeasurementNoiseCovariance (const Eigen::Matrix< double, MeasurementSize, MeasurementSize > &R)
 Sets the measurement noise covariance.
 
Eigen::Matrix< double, StateSize, 1 > & update (const Eigen::Matrix< double, MeasurementSize, 1 > &measurement, const Eigen::Matrix< double, StateSize, StateSize > &F, const Eigen::Matrix< double, MeasurementSize, StateSize > &H)
 Linear Kalman filter prediction and correction step.
 
Eigen::Matrix< double, StateSize, 1 > & update (const Eigen::Matrix< double, StateSize, StateSize > &F, const Eigen::Matrix< double, MeasurementSize, StateSize > &H)
 Linear Kalman filter prediction step.
 
template<typename StatePredictionFunc, typename MeasurementPredictionFunc>
Eigen::Matrix< double, StateSize, 1 > & update (const Eigen::Matrix< double, MeasurementSize, 1 > &measurement, StatePredictionFunc f, MeasurementPredictionFunc h)
 Extended Kalman filter prediction and correction step.
 
template<typename StatePredictionFunc, typename MeasurementPredictionFunc>
Eigen::Matrix< double, StateSize, 1 > & update (StatePredictionFunc f, MeasurementPredictionFunc h)
 Extended Kalman filter prediction step.
 

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close