estimator.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of ACADO Toolkit.
3  *
4  * ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.
5  * Copyright (C) 2008-2014 by Boris Houska, Hans Joachim Ferreau,
6  * Milan Vukov, Rien Quirynen, KU Leuven.
7  * Developed within the Optimization in Engineering Center (OPTEC)
8  * under supervision of Moritz Diehl. All rights reserved.
9  *
10  * ACADO Toolkit is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 3 of the License, or (at your option) any later version.
14  *
15  * ACADO Toolkit is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with ACADO Toolkit; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  *
24  */
25 
26 
33 #ifndef ACADO_TOOLKIT_ESTIMATOR_HPP
34 #define ACADO_TOOLKIT_ESTIMATOR_HPP
35 
36 
39 
41 
42 
44 
45 
56 class Estimator : public SimulationBlock
57 {
58  //
59  // PUBLIC MEMBER FUNCTIONS:
60  //
61  public:
63  Estimator( );
64 
66  Estimator( double _samplingTime
67  );
68 
70  Estimator( const Estimator& rhs );
71 
73  virtual ~Estimator( );
74 
76  Estimator& operator=( const Estimator& rhs );
77 
78  virtual Estimator* clone( ) const = 0;
79 
80 
82  virtual returnValue init( double startTime = 0.0,
83  const DVector &x0_ = emptyConstVector,
84  const DVector &p_ = emptyConstVector
85  );
86 
88  virtual returnValue step( double currentTime,
89  const DVector& _y
90  ) = 0;
91 
92 
94  inline returnValue getOutputs( DVector& _x,
95  DVector& _xa,
96  DVector& _u,
97  DVector& _p,
98  DVector& _w
99  ) const;
100 
102  inline returnValue getX( DVector& _x
103  ) const;
104 
106  inline returnValue getXA( DVector& _xa
107  ) const;
108 
110  inline returnValue getU( DVector& _u
111  ) const;
112 
114  inline returnValue getP( DVector& _p
115  ) const;
116 
118  inline returnValue getW( DVector& _w
119  ) const;
120 
121 
124  inline uint getNX( ) const;
125 
128  inline uint getNXA( ) const;
129 
132  inline uint getNU( ) const;
133 
136  inline uint getNP( ) const;
137 
140  inline uint getNW( ) const;
141 
144  inline uint getNY( ) const;
145 
146 
147  //
148  // PROTECTED MEMBER FUNCTIONS:
149  //
150  protected:
151 
152 
153 
154  //
155  // DATA MEMBERS:
156  //
157  protected:
163 };
164 
165 
167 
168 
169 
170 #include <acado/estimator/estimator.ipp>
171 
172 
173 #endif // ACADO_TOOLKIT_ESTIMATOR_HPP
174 
175 /*
176  * end of file
177  */
returnValue getW(DVector &_w) const
uint getNW() const
returnValue getX(DVector &_x) const
uint getNU() const
Estimator & operator=(const Estimator &rhs)
Definition: estimator.cpp:72
virtual returnValue step(double currentTime, const DVector &_y)=0
uint getNY() const
virtual ~Estimator()
Definition: estimator.cpp:67
Allows to pass back messages to the calling function.
returnValue getP(DVector &_p) const
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
Definition: acado_types.hpp:42
virtual returnValue init(double startTime=0.0, const DVector &x0_=emptyConstVector, const DVector &p_=emptyConstVector)
Definition: estimator.cpp:89
#define CLOSE_NAMESPACE_ACADO
returnValue getOutputs(DVector &_x, DVector &_xa, DVector &_u, DVector &_p, DVector &_w) const
DVector p
Definition: estimator.hpp:161
static const DVector emptyConstVector
Definition: vector.hpp:336
virtual Estimator * clone() const =0
DVector w
Definition: estimator.hpp:162
Base class for interfacing online state/parameter estimators.
Definition: estimator.hpp:56
DVector xa
Definition: estimator.hpp:159
void rhs(const real_t *x, real_t *f)
uint getNP() const
DVector x
Definition: estimator.hpp:158
returnValue getU(DVector &_u) const
Base class for building-blocks of the SimulationEnvironment.
uint getNXA() const
returnValue getXA(DVector &_xa) const
#define BEGIN_NAMESPACE_ACADO
DVector u
Definition: estimator.hpp:160
uint getNX() const


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:34:33