#include <BaseModel.h>
Inheritance diagram for KalmanProcessModelBase:
Public Member Functions | |
KalmanProcessModelBase () | |
virtual | ~KalmanProcessModelBase () |
virtual const char * | getModelName () const=0 |
Returns the name of the process model. | |
virtual int | getStateDim () const=0 |
Returns the dimension of the state. | |
virtual void | getP (double *pDest) const=0 |
Retrieves the internal kalman filter covariance matrix. | |
virtual void | getQ (double *pDest) const=0 |
Retrieves the process error covariance matrix. | |
virtual void | setQ (const double *pSource)=0 |
Sets the process error covariance matrix. | |
virtual void | getR (double *pDest) const=0 |
Retrieves the measurement error covariance matrix. | |
virtual void | setR (double *pSource)=0 |
Sets the measurement error covariance matrix. | |
virtual void | reset ()=0 |
Resets the process model. | |
virtual KalmanUpdateResult | update (double time, double x, double y, const RobotPose &pose, double panningVelocity)=0 |
Performs an update step of the process model. | |
virtual KalmanPredictResult | predict (double time)=0 |
Permorms a prediction of the ball state. | |
virtual void | adapt (const OdometryData &lastOdometry, const OdometryData &actualOdometry)=0 |
Function to adapt the state of the model when position and rotation of the robot changes. | |
virtual bool | isNonSensePos (double x, double y) const |
Returns true, if the passed ball position is nonsense (because it is far away from the field). | |
virtual bool | useModel () const |
Returns true, if the model is to be used. | |
virtual Out & | toStream (Out &stream) const |
Writes data of the actual process model data to a stream (for debugging). | |
virtual In & | fromStream (In &stream) |
Reads settings for a process model from a stream (e.g. | |
Protected Member Functions | |
void | OutputException (const char *pszLoc, MVException &m) const |
Outputs information about the process model that caused an exception and information about the type of exception. | |
Protected Attributes | |
bool | bUseModel |
true, if the model is to be used | |
Static Protected Attributes | |
double | pi = 3.1415926535897932384626433832795 |
constant pi | |
double | pi2 = 2*3.1415926535897932384626433832795 |
constant 2*pi | |
double | dFieldDiagonalLength |
1.2*length of field diagonal |
Definition at line 65 of file BaseModel.h.
|
Definition at line 31 of file BaseModel.cpp. |
|
Definition at line 69 of file BaseModel.h. |
|
Returns the name of the process model.
Implemented in KalmanConstantSpeedModel, and KalmanFixedPositionModel. Referenced by OutputException(), and toStream(). |
|
Returns the dimension of the state.
Implemented in KalmanConstantSpeedModel, and KalmanFixedPositionModel. Referenced by toStream(). |
|
Retrieves the internal kalman filter covariance matrix.
Implemented in KalmanConstantSpeedModel, and KalmanFixedPositionModel. |
|
Retrieves the process error covariance matrix.
Implemented in KalmanConstantSpeedModel, and KalmanFixedPositionModel. Referenced by toStream(). |
|
Sets the process error covariance matrix.
Implemented in KalmanConstantSpeedModel, and KalmanFixedPositionModel. Referenced by fromStream(). |
|
Retrieves the measurement error covariance matrix.
Implemented in KalmanConstantSpeedModel, and KalmanFixedPositionModel. Referenced by toStream(). |
|
Sets the measurement error covariance matrix.
Implemented in KalmanConstantSpeedModel, and KalmanFixedPositionModel. Referenced by fromStream(). |
|
Resets the process model.
Implemented in KalmanConstantSpeedModel, and KalmanFixedPositionModel. Referenced by fromStream(). |
|
Performs an update step of the process model.
Implemented in KalmanConstantSpeedModel. |
|
Permorms a prediction of the ball state.
Implemented in KalmanConstantSpeedModel, and KalmanFixedPositionModel. |
|
Function to adapt the state of the model when position and rotation of the robot changes.
Implemented in KalmanConstantSpeedModel, and KalmanFixedPositionModel. |
|
Returns true, if the passed ball position is nonsense (because it is far away from the field).
Definition at line 36 of file BaseModel.cpp. References dFieldDiagonalLength. |
|
Returns true, if the model is to be used.
Definition at line 145 of file BaseModel.h. References bUseModel. |
|
Writes data of the actual process model data to a stream (for debugging).
Definition at line 45 of file BaseModel.cpp. References bUseModel, getModelName(), getQ(), getR(), and getStateDim(). |
Here is the call graph for this function:
|
Reads settings for a process model from a stream (e.g. when covariance matrices are changed by user.
Definition at line 75 of file BaseModel.cpp. |
Here is the call graph for this function:
|
Outputs information about the process model that caused an exception and information about the type of exception.
Definition at line 105 of file BaseModel.cpp. References MVException::getDescription(), getModelName(), idText, and OUTPUT. Referenced by KalmanFixedPositionModel::predict(), KalmanConstantSpeedModel::predict(), KalmanFixedPositionModel::update(), and KalmanConstantSpeedModel::update(). |
Here is the call graph for this function:
|
true, if the model is to be used
Definition at line 171 of file BaseModel.h. Referenced by fromStream(), toStream(), and useModel(). |
|
constant pi
Definition at line 13 of file BaseModel.cpp. Referenced by KalmanFixedPositionModel::update(), and KalmanConstantSpeedModel::update(). |
|
constant 2*pi
Definition at line 14 of file BaseModel.cpp. |
|
Initial value: 1.2*sqrt((2.0*xPosOpponentGoal)*(2.0*xPosOpponentGoal) + (2.0*yPosLeftFlags)*(2.0*yPosLeftFlags))
Definition at line 15 of file BaseModel.cpp. Referenced by isNonSensePos(). |