Allows to define a static reference trajectory that the ControlLaw aims to track. More...
#include <static_reference_trajectory.hpp>
Protected Attributes | |
VariablesGrid | yRef |
Allows to define a static reference trajectory that the ControlLaw aims to track.
The class StaticReferenceTrajectory allows to define a static reference trajectory (given beforehand) that the ControlLaw aims to track while computing its control action.
Definition at line 55 of file static_reference_trajectory.hpp.
BEGIN_NAMESPACE_ACADO StaticReferenceTrajectory::StaticReferenceTrajectory | ( | ) |
Default constructor.
Definition at line 45 of file static_reference_trajectory.cpp.
StaticReferenceTrajectory::StaticReferenceTrajectory | ( | const VariablesGrid & | _yRef | ) |
Constructor which takes a pre-defined static reference trajectory.
@param[in] _yRef Pre-defined reference trajectory.
Definition at line 59 of file static_reference_trajectory.cpp.
StaticReferenceTrajectory::StaticReferenceTrajectory | ( | const char *const | _yRefFileName | ) |
Constructor which takes a pre-defined static reference trajectory.
@param[in] _yRefFileName Name of file containing the pre-defined reference trajectory.
Definition at line 75 of file static_reference_trajectory.cpp.
StaticReferenceTrajectory::StaticReferenceTrajectory | ( | const StaticReferenceTrajectory & | rhs | ) |
Copy constructor (deep copy).
@param[in] rhs Right-hand side object.
Definition at line 95 of file static_reference_trajectory.cpp.
|
virtual |
Destructor.
Definition at line 101 of file static_reference_trajectory.cpp.
|
virtual |
Clone constructor (deep copy).
\return Pointer to deep copy of base class type
Implements ReferenceTrajectory.
Reimplemented in PeriodicReferenceTrajectory.
Definition at line 119 of file static_reference_trajectory.cpp.
|
virtual |
Returns dimension of reference trajectory.
Implements ReferenceTrajectory.
Definition at line 197 of file static_reference_trajectory.cpp.
|
virtual |
Returns a piece of the reference trajectory starting and ending at given times.
@param[in] tStart Start time of reference piece. @param[in] tEnd End time of reference piece. @param[out] _yRef Desired piece of the reference trajectory.
Implements ReferenceTrajectory.
Reimplemented in PeriodicReferenceTrajectory.
Definition at line 160 of file static_reference_trajectory.cpp.
|
virtual |
Initializes the reference trajectory evaluation based on the given inputs.
@param[in] _startTime Start time. @param[in] _x Initial value for differential states. @param[in] _xa Initial value for algebraic states. @param[in] _u Initial value for controls. @param[in] _p Initial value for parameters. @param[in] _w Initial value for disturbances.
Implements ReferenceTrajectory.
Definition at line 125 of file static_reference_trajectory.cpp.
StaticReferenceTrajectory & StaticReferenceTrajectory::operator= | ( | const StaticReferenceTrajectory & | rhs | ) |
Assignment operator (deep copy).
@param[in] rhs Right-hand side object.
Definition at line 106 of file static_reference_trajectory.cpp.
|
virtual |
Updates the reference trajectory evaluation based on the given inputs.
@param[in] _currentTime Start time. @param[in] _y Current process output. @param[in] _x Estimated current value for differential states. @param[in] _xa Estimated current value for algebraic states. @param[in] _u Estimated current value for controls. @param[in] _p Estimated current value for parameters. @param[in] _w Estimated current value for disturbances.
Implements ReferenceTrajectory.
Definition at line 137 of file static_reference_trajectory.cpp.
|
virtual |
Updates the reference trajectory evaluation based on the given inputs.
@param[in] _x Estimated current value for differential states. @param[in] _u Estimated current time-varying value for controls. @param[in] _p Estimated current time-varying value for parameters. @param[in] _w Estimated current time-varying value for disturbances.
Implements ReferenceTrajectory.
Definition at line 150 of file static_reference_trajectory.cpp.
|
protected |
Definition at line 200 of file static_reference_trajectory.hpp.