#include <FixedPositionModel.h>
Inheritance diagram for KalmanFixedPositionModel:
Public Member Functions | |
KalmanFixedPositionModel () | |
virtual | ~KalmanFixedPositionModel () |
virtual const char * | getModelName () const |
Returns the name of the process model. | |
virtual int | getStateDim () const |
Returns the dimension of the state. | |
virtual void | getP (double *pDest) const |
Retrieves the internal kalman filter covariance matrix. | |
virtual void | getQ (double *pDest) const |
Retrieves the process error covariance matrix. | |
virtual void | setQ (const double *pSource) |
Sets the process error covariance matrix. | |
virtual void | getR (double *pDest) const |
Retrieves the measurement error covariance matrix. | |
virtual void | setR (double *pSource) |
Sets the measurement error covariance matrix. | |
virtual void | reset () |
Resets the process model. | |
virtual KalmanUpdateResult | update (double time, double x, double y) |
virtual KalmanPredictResult | predict (double time) |
Permorms a prediction of the ball state. | |
virtual void | adapt (const OdometryData &lastOdometry, const OdometryData &actualOdometry) |
Function to adapt the state of the model when position and rotation of the robot changes. | |
Private Attributes | |
Vector_n< double, 2 > | x_act |
Actual state: x_act[0] is x-position in meters x_act[1] is y-position in meters. | |
Matrix_nxn< double, 2 > | A |
linear process model matrix | |
Matrix_nxn< double, 2 > | P |
internal covariance matrix | |
Matrix_nxn< double, 2 > | Q |
process model error covariance matrix | |
Matrix_nxn< double, 2 > | R |
measurement error covariance matrix | |
bool | inited |
true, if model is initied | |
double | lastLiklihood |
last liklihood | |
double | lastTime |
last time in seconds | |
Vector_n< double, 2 > | x_minus |
Matrix_nxn< double, 2 > | P_minus |
Matrix_nxn< double, 2 > | C |
Matrix_nxn< double, 2 > | C_inv |
Matrix_nxn< double, 2 > | K |
Vector_n< double, 2 > | z |
Vector_n< double, 2 > | x_predict |
Matrix_nxn< double, 2 > | globQ |
global process covariance matrix that is adapted with dt | |
Matrix_nxn< double, 2 > | globR |
global measurement covariance matrix | |
Static Private Attributes | |
double | defaultA [4] |
default linear process model matrix | |
double | defaultP [4] |
default internal covariance matrix | |
double | defaultQ [4] |
default process error covariance matrix | |
double | defaultR [4] |
default measurement error covariance matrix |
Definition at line 19 of file FixedPositionModel.h.
|
Definition at line 34 of file FixedPositionModel.cpp. |
Here is the call graph for this function:
|
Definition at line 42 of file FixedPositionModel.cpp. |
|
Returns the name of the process model.
Implements KalmanProcessModelBase. Definition at line 26 of file FixedPositionModel.h. |
|
Returns the dimension of the state.
Implements KalmanProcessModelBase. Definition at line 28 of file FixedPositionModel.h. |
|
Retrieves the internal kalman filter covariance matrix.
Implements KalmanProcessModelBase. Definition at line 29 of file FixedPositionModel.h. References Matrix_nxn< double, 2 >::copyTo(). |
Here is the call graph for this function:
|
Retrieves the process error covariance matrix.
Implements KalmanProcessModelBase. Definition at line 30 of file FixedPositionModel.h. References Matrix_nxn< double, 2 >::copyTo(). |
Here is the call graph for this function:
|
Sets the process error covariance matrix.
Implements KalmanProcessModelBase. Definition at line 31 of file FixedPositionModel.h. |
|
Retrieves the measurement error covariance matrix.
Implements KalmanProcessModelBase. Definition at line 32 of file FixedPositionModel.h. References Matrix_nxn< double, 2 >::copyTo(). |
Here is the call graph for this function:
|
Sets the measurement error covariance matrix.
Implements KalmanProcessModelBase. Definition at line 33 of file FixedPositionModel.h. |
|
Resets the process model.
Implements KalmanProcessModelBase. Definition at line 46 of file FixedPositionModel.cpp. References defaultP, and inited. Referenced by KalmanFixedPositionModel(), predict(), and update(). |
|
Here is the call graph for this function:
|
Permorms a prediction of the ball state.
Implements KalmanProcessModelBase. Definition at line 185 of file FixedPositionModel.cpp. References inited, KalmanPredictResult::liklihood, KalmanProcessModelBase::OutputException(), reset(), KalmanPredictResult::state, KalmanBallState::vx, KalmanBallState::vy, KalmanBallState::x, and KalmanBallState::y. |
Here is the call graph for this function:
|
Function to adapt the state of the model when position and rotation of the robot changes.
Implements KalmanProcessModelBase. Definition at line 215 of file FixedPositionModel.cpp. References Vector2< V >::x, and Vector2< V >::y. |
|
Actual state: x_act[0] is x-position in meters x_act[1] is y-position in meters.
Definition at line 48 of file FixedPositionModel.h. |
|
linear process model matrix
Definition at line 49 of file FixedPositionModel.h. |
|
internal covariance matrix
Definition at line 50 of file FixedPositionModel.h. |
|
process model error covariance matrix
Definition at line 51 of file FixedPositionModel.h. |
|
measurement error covariance matrix
Definition at line 52 of file FixedPositionModel.h. |
|
true, if model is initied
Definition at line 54 of file FixedPositionModel.h. |
|
last liklihood
Definition at line 55 of file FixedPositionModel.h. |
|
last time in seconds
Definition at line 56 of file FixedPositionModel.h. |
|
Definition at line 59 of file FixedPositionModel.h. |
|
Definition at line 60 of file FixedPositionModel.h. |
|
Definition at line 61 of file FixedPositionModel.h. |
|
Definition at line 62 of file FixedPositionModel.h. |
|
Definition at line 63 of file FixedPositionModel.h. |
|
Definition at line 64 of file FixedPositionModel.h. |
|
Definition at line 65 of file FixedPositionModel.h. |
|
global process covariance matrix that is adapted with dt
Definition at line 68 of file FixedPositionModel.h. |
|
global measurement covariance matrix
Definition at line 70 of file FixedPositionModel.h. |
|
Initial value: { 1.0, 0.0, 0.0, 1.0 }
Definition at line 7 of file FixedPositionModel.cpp. Referenced by KalmanFixedPositionModel(). |
|
Initial value: { 1.0, 0.0, 0.0, 1.0 }
Definition at line 13 of file FixedPositionModel.cpp. Referenced by reset(). |
|
Initial value: { 0.01*0.01, 0.00*0.00, 0.00*0.00, 0.01*0.01 }
Definition at line 21 of file FixedPositionModel.cpp. Referenced by KalmanFixedPositionModel(). |
|
Initial value: { 0.04*0.04, 0.00*0.00, 0.00*0.00, 0.04*0.04 }
Definition at line 28 of file FixedPositionModel.cpp. Referenced by KalmanFixedPositionModel(). |