Core implementation for Kalman. More...
#include <Kalman.h>
Public Member Functions | |
int | get_n () |
Accessor for n. | |
KalmanCore (const KalmanCore &s) | |
Copy constructor. | |
KalmanCore (int _n) | |
Constructor. | |
virtual CvMat * | predict () |
Predict the Kalman state vector for the given time step . x_pred = F * x. | |
CvMat * | predict_update (KalmanSensorCore *sensor) |
Predict the Kalman state vector and update the state using the constant Kalman gain. x = x_pred + K* ( z - H*x_pred) | |
~KalmanCore () | |
Destructor. | |
Public Attributes | |
CvMat * | F |
The matrix (n*n) containing the transition model for the internal state. | |
CvMat * | x |
The Kalman state vector (n*1) | |
CvMat * | x_pred |
Predicted state, TODO: should be protected?! | |
Protected Member Functions | |
virtual void | predict_x (unsigned long tick) |
Protected Attributes | |
CvMat * | F_trans |
int | n |
Friends | |
class | KalmanVisualize |
alvar::KalmanCore::KalmanCore | ( | const KalmanCore & | s | ) |
Copy constructor.
Definition at line 82 of file Kalman.cpp.
alvar::KalmanCore::KalmanCore | ( | int | _n | ) |
Constructor.
_n | The number of items in the Kalman state vector |
Definition at line 90 of file Kalman.cpp.
Destructor.
Definition at line 98 of file Kalman.cpp.
int alvar::KalmanCore::get_n | ( | ) | [inline] |
CvMat * alvar::KalmanCore::predict | ( | ) | [virtual] |
Predict the Kalman state vector for the given time step . x_pred = F * x.
Definition at line 105 of file Kalman.cpp.
CvMat * alvar::KalmanCore::predict_update | ( | KalmanSensorCore * | sensor | ) |
Predict the Kalman state vector and update the state using the constant Kalman gain. x = x_pred + K* ( z - H*x_pred)
Definition at line 110 of file Kalman.cpp.
void alvar::KalmanCore::predict_x | ( | unsigned long | tick | ) | [protected, virtual] |
Reimplemented in alvar::KalmanEkf.
Definition at line 77 of file Kalman.cpp.
friend class KalmanVisualize [friend] |
CvMat* alvar::KalmanCore::F |
CvMat* alvar::KalmanCore::F_trans [protected] |
int alvar::KalmanCore::n [protected] |
CvMat* alvar::KalmanCore::x |
CvMat* alvar::KalmanCore::x_pred |