Core implementation for Kalman sensor. More...
#include <Kalman.h>

| Public Member Functions | |
| int | get_m () | 
| Accessor for m. | |
| int | get_n () | 
| Accessor for n. | |
| KalmanSensorCore (const KalmanSensorCore &k) | |
| Copy constructor. | |
| KalmanSensorCore (int _n, int _m) | |
| Constructor. | |
| virtual void | update_x (CvMat *x_pred, CvMat *x) | 
| Method for updating the state estimate x This is called from predict_update() of Kalman. In KalmanSensorCore and in KalmanSensor this update is made linearly but KalmanSensorEkf will override this method to use unlinear estimation. | |
| ~KalmanSensorCore () | |
| Destructor. | |
| Public Attributes | |
| CvMat * | H | 
| The matrix (m*n) mapping Kalman state vector into this sensor's measurements vector. | |
| CvMat * | K | 
| The matrix (n*m) containing Kalman gain (something between 0 and H^-1). In this core-implementation we assume this to be precalculated. In KalmanSensor this is updated using update_K . | |
| CvMat * | z | 
| Latest measurement vector (m*1) | |
| Protected Attributes | |
| CvMat * | H_trans | 
| int | m | 
| int | n | 
| CvMat * | x_gain | 
| CvMat * | z_pred | 
| CvMat * | z_residual | 
| Friends | |
| class | KalmanVisualize | 
Copy constructor.
Definition at line 35 of file Kalman.cpp.
| alvar::KalmanSensorCore::KalmanSensorCore | ( | int | _n, | 
| int | _m | ||
| ) | 
Constructor.
| _n | The number of items in the Kalman state vector | 
| _m | The number of measurements given by this sensor | 
Definition at line 47 of file Kalman.cpp.
Destructor.
Definition at line 59 of file Kalman.cpp.
| int alvar::KalmanSensorCore::get_m | ( | ) |  [inline] | 
| int alvar::KalmanSensorCore::get_n | ( | ) |  [inline] | 
| void alvar::KalmanSensorCore::update_x | ( | CvMat * | x_pred, | 
| CvMat * | x | ||
| ) |  [virtual] | 
Method for updating the state estimate x This is called from predict_update() of Kalman. In KalmanSensorCore and in KalmanSensor this update is made linearly but KalmanSensorEkf will override this method to use unlinear estimation.
Reimplemented in alvar::KalmanSensorEkf.
Definition at line 69 of file Kalman.cpp.
| friend class KalmanVisualize  [friend] | 
| CvMat* alvar::KalmanSensorCore::H | 
| CvMat* alvar::KalmanSensorCore::H_trans  [protected] | 
| CvMat* alvar::KalmanSensorCore::K | 
The matrix (n*m) containing Kalman gain (something between 0 and H^-1). In this core-implementation we assume this to be precalculated. In KalmanSensor this is updated using update_K .
| int alvar::KalmanSensorCore::m  [protected] | 
| int alvar::KalmanSensorCore::n  [protected] | 
| CvMat* alvar::KalmanSensorCore::x_gain  [protected] | 
| CvMat* alvar::KalmanSensorCore::z | 
| CvMat* alvar::KalmanSensorCore::z_pred  [protected] | 
| CvMat* alvar::KalmanSensorCore::z_residual  [protected] |