static_reference_trajectory.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_STATIC_REFERENCE_TRAJECTORY_HPP
34 #define ACADO_TOOLKIT_STATIC_REFERENCE_TRAJECTORY_HPP
35 
36 
38 #include <acado/curve/curve.hpp>
40 
41 
43 
44 
56 {
57  //
58  // PUBLIC MEMBER FUNCTIONS:
59  //
60  public:
64 
65 // StaticReferenceTrajectory( const Curve& _yRef
66 // );
67 
73  );
74 
79  StaticReferenceTrajectory( const char* const _yRefFileName
80  );
81 
87  );
88 
91  virtual ~StaticReferenceTrajectory( );
92 
98  );
99 
104  virtual ReferenceTrajectory* clone( ) const;
105 
106 
118  virtual returnValue init( double startTime = 0.0,
119  const DVector& _x = emptyConstVector,
120  const DVector& _xa = emptyConstVector,
121  const DVector& _u = emptyConstVector,
122  const DVector& _p = emptyConstVector,
123  const DVector& _w = emptyConstVector
124  );
125 
126 
139  virtual returnValue step( double _currentTime,
140  const DVector& _y,
141  const DVector& _x = emptyConstVector,
142  const DVector& _xa = emptyConstVector,
143  const DVector& _u = emptyConstVector,
144  const DVector& _p = emptyConstVector,
145  const DVector& _w = emptyConstVector
146  );
147 
157  virtual returnValue step( const DVector& _x,
161  );
162 
163 
173  virtual returnValue getReference( double tStart,
174  double tEnd,
175  VariablesGrid& _yRef
176  ) const;
177 
178 
183  virtual uint getDim( ) const;
184 
185 
186 
187  //
188  // PROTECTED MEMBER FUNCTIONS:
189  //
190  protected:
191 
192 
193 
194  //
195  // DATA MEMBERS:
196  //
197  protected:
198 
199 // Curve yRef;
201 };
202 
203 
205 
206 
207 #include <acado/reference_trajectory/static_reference_trajectory.ipp>
208 
209 
211 
214 
216 
217 
218 // collect all remaining headers
220 
221 
222 #endif // ACADO_TOOLKIT_STATIC_REFERENCE_TRAJECTORY_HPP
223 
224 /*
225  * end of file
226  */
StaticReferenceTrajectory & operator=(const StaticReferenceTrajectory &rhs)
virtual returnValue getReference(double tStart, double tEnd, VariablesGrid &_yRef) const
Abstract base class to define a reference trajectory that the ControlLaw aims to track.
virtual ReferenceTrajectory * clone() const
Provides a time grid consisting of vector-valued optimization variables at each grid point...
Allows to pass back messages to the calling function.
virtual returnValue init(double startTime=0.0, const DVector &_x=emptyConstVector, const DVector &_xa=emptyConstVector, const DVector &_u=emptyConstVector, const DVector &_p=emptyConstVector, const DVector &_w=emptyConstVector)
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
Definition: acado_types.hpp:42
virtual returnValue step(double _currentTime, const DVector &_y, const DVector &_x=emptyConstVector, const DVector &_xa=emptyConstVector, const DVector &_u=emptyConstVector, const DVector &_p=emptyConstVector, const DVector &_w=emptyConstVector)
#define CLOSE_NAMESPACE_ACADO
static const DVector emptyConstVector
Definition: vector.hpp:336
Allows to define a static reference trajectory that the ControlLaw aims to track. ...
void rhs(const real_t *x, real_t *f)
#define BEGIN_NAMESPACE_ACADO
static const VariablesGrid emptyConstVariablesGrid
CLOSE_NAMESPACE_ACADO static BEGIN_NAMESPACE_ACADO StaticReferenceTrajectory emptyReferenceTrajectory
static const StaticReferenceTrajectory emptyConstReferenceTrajectory


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