ViSP  2.9.0
vpLinearKalmanFilterInstantiation.h
1 /****************************************************************************
2  *
3  * $Id: vpLinearKalmanFilterInstantiation.h 4649 2014-02-07 14:57:11Z fspindle $
4  *
5  * This file is part of the ViSP software.
6  * Copyright (C) 2005 - 2014 by INRIA. All rights reserved.
7  *
8  * This software is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * ("GPL") version 2 as published by the Free Software Foundation.
11  * See the file LICENSE.txt at the root directory of this source
12  * distribution for additional information about the GNU GPL.
13  *
14  * For using ViSP with software that can not be combined with the GNU
15  * GPL, please contact INRIA about acquiring a ViSP Professional
16  * Edition License.
17  *
18  * See http://www.irisa.fr/lagadic/visp/visp.html for more information.
19  *
20  * This software was developed at:
21  * INRIA Rennes - Bretagne Atlantique
22  * Campus Universitaire de Beaulieu
23  * 35042 Rennes Cedex
24  * France
25  * http://www.irisa.fr/lagadic
26  *
27  * If you have questions regarding the use of this file, please contact
28  * INRIA at visp@inria.fr
29  *
30  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
31  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
32  *
33  *
34  * Description:
35  * Kalman filtering.
36  *
37  * Authors:
38  * Eric Marchand
39  * Fabien Spindler
40  *
41  *****************************************************************************/
42 
43 #ifndef vpLinearKalmanFilterInstantiation_h
44 #define vpLinearKalmanFilterInstantiation_h
45 
46 #include <visp/vpKalmanFilter.h>
47 
48 #include <math.h>
49 
60 {
61  public:
65  typedef enum {
82  unknown
83  } vpStateModel;
84 
92  {
93  };
94 
101  return model;
102  }
103  void filter(vpColVector &z);
104 
107  inline void setStateModel(vpStateModel model);
108 
109  void initFilter(unsigned int nsignal, vpColVector &sigma_state,
110  vpColVector &sigma_measure, double rho, double dt);
112 
115  void initStateConstVel_MeasurePos(unsigned int nsignal,
116  vpColVector &sigma_state,
117  vpColVector &sigma_measure,
118  double dt);
119  void initStateConstVelWithColoredNoise_MeasureVel(unsigned int nsignal,
120  vpColVector &sigma_state,
121  vpColVector &sigma_measure,
122  double rho);
124 
127  void initStateConstAccWithColoredNoise_MeasureVel(unsigned int nsignal,
128  vpColVector &sigma_state,
129  vpColVector &sigma_measure,
130  double rho,
131  double dt);
133 
134  protected:
136 
137 } ;
138 
160  this->model = mdl;
161  switch(model) {
164  size_state = 2;
165  size_measure = 1;
166  break;
168  size_state = 3;
169  size_measure = 1;
170  break;
171  case unknown:
172  size_state = 0;
173  size_measure = 0;
174  break;
175  }
176 }
177 
178 
179 #endif
unsigned int size_state
Size of the state vector .
unsigned int size_measure
Size of the measure vector .
Class that provides a data structure for the column vectors as well as a set of operations on these v...
Definition: vpColVector.h:72
This class provides an implementation of some specific linear Kalman filters.
This class provides a generic Kalman filtering algorithm along with some specific state model (consta...