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;
uint getNumPoints() const
returnValue setParameterNoise(const Noise &_noise, double _noiseSamplingTime)
returnValue setTime(double _time)
DVector getLastVector() const
returnValue getDelayedInputGrids(const VariablesGrid &_u, const VariablesGrid &_p, VariablesGrid &_uDelayed, VariablesGrid &_pDelayed) const
returnValue delayActuatorInput(VariablesGrid &_u, VariablesGrid &_p)
double getLastTime() const
BooleanType acadoIsEqual(double x, double y, double TOL)
BooleanType hasNoise() const
returnValue setParameterDeadTime(uint idx, double _deadTime)
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 getTimeSubGrid(uint startIdx, uint endIdx) const
BooleanType isEmpty() 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.
returnValue checkInputConsistency(const VariablesGrid &_u, const VariablesGrid &_p) const
Grid getTimePoints() const
#define CLOSE_NAMESPACE_ACADO
returnValue appendValues(const VariablesGrid &arg)
Actuator & operator=(const Actuator &rhs)
double getFirstTime() const
uint getFloorIndex(double time) const
virtual returnValue generateNoise(double startTime, double endTime, VariablesGrid ¤tNoise) const
returnValue merge(const VariablesGrid &arg, MergeMethod _mergeMethod=MM_DUPLICATE, BooleanType keepOverlap=BT_TRUE)
BlockStatus getStatus() const
virtual returnValue init(double _startTime=0.0, const DVector &_startValue=emptyConstVector)
returnValue refineGrid(const Grid &arg, InterpolationMode mode=IM_CONSTANT)
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
returnValue addActuatorNoise(VariablesGrid &_u, VariablesGrid &_p) const
uint getLastIndex() const
GenericVector & append(const GenericVector &_arg)
Grid & shiftTimes(double timeShift)
returnValue addTime(double _time)
void setAll(const T &_value)
returnValue getGrid(Grid &_grid) const
#define ACADOWARNING(retval)
BooleanType hasDeadTime() const
DVector noiseSamplingTimes
#define BEGIN_NAMESPACE_ACADO
returnValue setControlNoise(const Noise &_noise, double _noiseSamplingTime)
Allows to simulate the behaviour of actuators within the Process.
VariablesGrid getValuesSubGrid(uint startIdx, uint endIdx) const
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)