ACADO Toolkit
1.2.0beta
Toolkit for Automatic Control and Dynamic Optimization
|
Allows to define an adaptive reference trajectory that the ControlLaw aims to track. More...
#include <adaptive_reference_trajectory.hpp>
Public Member Functions | |
AdaptiveReferenceTrajectory () | |
Default constructor. | |
AdaptiveReferenceTrajectory (const AdaptiveReferenceTrajectory &rhs) | |
Copy constructor (deep copy). | |
virtual | ~AdaptiveReferenceTrajectory () |
Destructor. | |
AdaptiveReferenceTrajectory & | operator= (const AdaptiveReferenceTrajectory &rhs) |
Assignment operator (deep copy). | |
virtual ReferenceTrajectory * | clone () const =0 |
Clone constructor (deep copy). | |
virtual returnValue | init (double startTime=0.0, const Vector &_x=emptyConstVector, const Vector &_xa=emptyConstVector, const Vector &_u=emptyConstVector, const Vector &_p=emptyConstVector, const Vector &_w=emptyConstVector)=0 |
Initializes the reference trajectory evaluation based on the given inputs. | |
virtual returnValue | step (double _currentTime, const Vector &_y, const Vector &_x=emptyConstVector, const Vector &_xa=emptyConstVector, const Vector &_u=emptyConstVector, const Vector &_p=emptyConstVector, const Vector &_w=emptyConstVector)=0 |
Updates the reference trajectory evaluation based on the given inputs. | |
virtual returnValue | step (const Vector &_x, const VariablesGrid &_u=emptyConstVariablesGrid, const VariablesGrid &_p=emptyConstVariablesGrid, const VariablesGrid &_w=emptyConstVariablesGrid)=0 |
Updates the reference trajectory evaluation based on the given inputs. | |
virtual returnValue | getReference (double tStart, double tEnd, VariablesGrid &_yRef) const =0 |
Returns a piece of the reference trajectory starting and ending at given times. | |
virtual uint | getDim () const |
Returns dimension of reference trajectory. | |
BooleanType | isDefined () const |
Returns whether reference trajectory is defined (i.e. |
The class AdaptiveReferenceTrajectory allows to define an adaptive reference trajectory (determined online) that the ControlLaw aims to track while computing its control action.
[in] | rhs | Right-hand side object. |
virtual ReferenceTrajectory* AdaptiveReferenceTrajectory::clone | ( | ) | const [pure virtual] |
Implements ReferenceTrajectory.
Implemented in SimulatedReferenceTrajectory.
uint AdaptiveReferenceTrajectory::getDim | ( | ) | const [virtual] |
Implements ReferenceTrajectory.
Reimplemented in SimulatedReferenceTrajectory.
virtual returnValue AdaptiveReferenceTrajectory::getReference | ( | double | tStart, |
double | tEnd, | ||
VariablesGrid & | _yRef | ||
) | const [pure virtual] |
[in] | tStart | Start time of reference piece. |
[in] | tEnd | End time of reference piece. |
[out] | _yRef | Desired piece of the reference trajectory. |
Implements ReferenceTrajectory.
Implemented in SimulatedReferenceTrajectory.
virtual returnValue AdaptiveReferenceTrajectory::init | ( | double | startTime = 0.0 , |
const Vector & | _x = emptyConstVector , |
||
const Vector & | _xa = emptyConstVector , |
||
const Vector & | _u = emptyConstVector , |
||
const Vector & | _p = emptyConstVector , |
||
const Vector & | _w = emptyConstVector |
||
) | [pure virtual] |
[in] | _startTime | Start time. |
[in] | _x | Initial value for differential states. |
[in] | _xa | Initial value for algebraic states. |
[in] | _u | Initial value for controls. |
[in] | _p | Initial value for parameters. |
[in] | _w | Initial value for disturbances. |
Implements ReferenceTrajectory.
Implemented in SimulatedReferenceTrajectory.
BEGIN_NAMESPACE_ACADO BooleanType ReferenceTrajectory::isDefined | ( | ) | const [inline, inherited] |
has positive dimension).
References BT_FALSE, BT_TRUE, and ReferenceTrajectory::getDim().
Referenced by Controller::Controller(), and Controller::setReferenceTrajectory().
AdaptiveReferenceTrajectory & AdaptiveReferenceTrajectory::operator= | ( | const AdaptiveReferenceTrajectory & | rhs | ) |
[in] | rhs | Right-hand side object. |
virtual returnValue AdaptiveReferenceTrajectory::step | ( | double | _currentTime, |
const Vector & | _y, | ||
const Vector & | _x = emptyConstVector , |
||
const Vector & | _xa = emptyConstVector , |
||
const Vector & | _u = emptyConstVector , |
||
const Vector & | _p = emptyConstVector , |
||
const Vector & | _w = emptyConstVector |
||
) | [pure virtual] |
[in] | _currentTime | Start time. |
[in] | _y | Current process output. |
[in] | _x | Estimated current value for differential states. |
[in] | _xa | Estimated current value for algebraic states. |
[in] | _u | Estimated current value for controls. |
[in] | _p | Estimated current value for parameters. |
[in] | _w | Estimated current value for disturbances. |
Implements ReferenceTrajectory.
Implemented in SimulatedReferenceTrajectory.
virtual returnValue AdaptiveReferenceTrajectory::step | ( | const Vector & | _x, |
const VariablesGrid & | _u = emptyConstVariablesGrid , |
||
const VariablesGrid & | _p = emptyConstVariablesGrid , |
||
const VariablesGrid & | _w = emptyConstVariablesGrid |
||
) | [pure virtual] |
[in] | _x | Estimated current value for differential states. |
[in] | _u | Estimated current time-varying value for controls. |
[in] | _p | Estimated current time-varying value for parameters. |
[in] | _w | Estimated current time-varying value for disturbances. |
Implements ReferenceTrajectory.
Implemented in SimulatedReferenceTrajectory.