90 double _noiseSamplingTime
112 double _noiseSamplingTime
115 if ( ( idx >=
getNU( ) ) || ( _noise.
getDim( ) != 1 ) )
133 double _noiseSamplingTime
155 double _noiseSamplingTime
158 if ( ( idx >=
getNP( ) ) || ( _noise.
getDim( ) != 1 ) )
182 if ( _deadTimes.
getMin( ) < 0.0 )
198 if ( _deadTime < 0.0 )
215 if ( idx >=
getNU( ) )
218 if ( _deadTime < 0.0 )
237 if ( _deadTimes.
getMin( ) < 0.0 )
253 if ( _deadTime < 0.0 )
270 if ( idx >=
getNP( ) )
273 if ( _deadTime < 0.0 )
294 tmp.
append( _startValueU );
297 tmp.
append( _startValueP );
512 Grid commonGrid, tmpGrid;
513 currentNoise.
getGrid( tmpGrid );
515 commonGrid & tmpGrid;
returnValue setParameterNoise(const Noise &_noise, double _noiseSamplingTime)
returnValue setTime(double _time)
returnValue delayActuatorInput(VariablesGrid &_u, VariablesGrid &_p)
double getFirstTime() const
BooleanType acadoIsEqual(double x, double y, double TOL)
returnValue setParameterDeadTime(uint idx, double _deadTime)
returnValue addActuatorNoise(VariablesGrid &_u, VariablesGrid &_p) const
returnValue setParameterDeadTimes(const DVector &_deadTimes)
Provides a time grid consisting of vector-valued optimization variables at each grid point...
Allows to pass back messages to the calling function.
VariablesGrid getValuesSubGrid(uint startIdx, uint endIdx) const
Base class for generating pseudo-random noise for simulating the Process.
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
Allows to conveniently handle (one-dimensional) grids consisting of time points.
BooleanType isEmpty() const
uint getLastIndex() const
#define CLOSE_NAMESPACE_ACADO
BooleanType hasDeadTime() const
uint getFloorIndex(double time) const
BooleanType hasNoise() const
BlockStatus getStatus() const
returnValue appendValues(const VariablesGrid &arg)
Actuator & operator=(const Actuator &rhs)
returnValue checkInputConsistency(const VariablesGrid &_u, const VariablesGrid &_p) const
Grid getTimePoints() const
returnValue merge(const VariablesGrid &arg, MergeMethod _mergeMethod=MM_DUPLICATE, BooleanType keepOverlap=BT_TRUE)
virtual returnValue generateNoise(double startTime, double endTime, VariablesGrid ¤tNoise) const
returnValue getGrid(Grid &_grid) const
virtual returnValue init(double _startTime=0.0, const DVector &_startValue=emptyConstVector)
DVector getLastVector() const
returnValue refineGrid(const Grid &arg, InterpolationMode mode=IM_CONSTANT)
VariablesGrid getTimeSubGrid(uint startIdx, uint endIdx) const
returnValue setControlDeadTime(uint idx, double _deadTime)
void rhs(const real_t *x, real_t *f)
virtual returnValue init(double _startTime=0.0, const DVector &_startValueU=emptyConstVector, const DVector &_startValueP=emptyConstVector)
virtual Noise * clone() const =0
GenericVector & append(const GenericVector &_arg)
Grid & shiftTimes(double timeShift)
returnValue addTime(double _time)
uint getNumPoints() const
void setAll(const T &_value)
returnValue getDelayedInputGrids(const VariablesGrid &_u, const VariablesGrid &_p, VariablesGrid &_uDelayed, VariablesGrid &_pDelayed) const
double getLastTime() const
#define ACADOWARNING(retval)
DVector noiseSamplingTimes
#define BEGIN_NAMESPACE_ACADO
returnValue setControlNoise(const Noise &_noise, double _noiseSamplingTime)
Allows to simulate the behaviour of actuators within the Process.
virtual returnValue step(VariablesGrid &_u, VariablesGrid &_p=emptyVariablesGrid)
TransferDevice & operator=(const TransferDevice &rhs)
#define ACADOERROR(retval)
Base class for simulating Actuator and Sensor behaviour wihtin the Process.
returnValue setControlDeadTimes(const DVector &_deadTimes)