Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __EXTENDED_KALMAN_FILTER__
00022 #define __EXTENDED_KALMAN_FILTER__
00023
00024 #include "kalmanfilter.h"
00025 #include "../pdf/conditionalpdf.h"
00026 #include "../pdf/gaussian.h"
00027 # include <map>
00028
00029 namespace BFL
00030 {
00031
00043 class ExtendedKalmanFilter : public KalmanFilter
00044 {
00045 public:
00050 ExtendedKalmanFilter(Gaussian* prior);
00051
00053 virtual ~ExtendedKalmanFilter();
00054
00056
00057
00058
00059
00060 void AllocateMeasModelExt( const vector<unsigned int>& meas_dimensions);
00061
00063
00064
00065
00066
00067 void AllocateMeasModelExt( const unsigned int& meas_dimensions);
00068
00069 private:
00070 struct MeasUpdateVariablesExt
00071 {
00072 SymmetricMatrix _R;
00073 Matrix _H;
00074 ColumnVector _Z;
00075 MeasUpdateVariablesExt() {};
00076 MeasUpdateVariablesExt(unsigned int meas_dimension, unsigned int state_dimension):
00077 _R(meas_dimension)
00078 , _H(meas_dimension,state_dimension)
00079 , _Z(meas_dimension)
00080 {};
00081 };
00082
00083 protected:
00084 virtual void SysUpdate(SystemModel<MatrixWrapper::ColumnVector>* const sysmodel,
00085 const MatrixWrapper::ColumnVector& u);
00086 virtual void MeasUpdate(MeasurementModel<MatrixWrapper::ColumnVector,MatrixWrapper::ColumnVector>* const measmodel,
00087 const MatrixWrapper::ColumnVector& z,
00088 const MatrixWrapper::ColumnVector& s);
00089
00090 ColumnVector _x;
00091 ColumnVector _J;
00092 Matrix _F;
00093 SymmetricMatrix _Q;
00094 std::map<unsigned int, MeasUpdateVariablesExt> _mapMeasUpdateVariablesExt;
00095 std::map<unsigned int, MeasUpdateVariablesExt>::iterator _mapMeasUpdateVariablesExt_it;
00096
00097
00098 };
00099
00100 }
00101
00102 #endif // __EXTENDED_KALMAN_FILTER__
bfl
Author(s): Klaas Gadeyne, Wim Meeussen, Tinne Delaet and many others. See web page for a full contributor list. ROS package maintained by Wim Meeussen.
autogenerated on Fri Aug 28 2015 10:10:21