82 double _noiseSamplingTime
104 double _noiseSamplingTime
107 if ( ( idx >=
getNY( ) ) || ( _noise.
getDim( ) != 1 ) )
131 if ( _deadTimes.
getMin( ) < 0.0 )
147 if ( _deadTime < 0.0 )
164 if ( idx >=
getNY( ) )
167 if ( _deadTime < 0.0 )
305 Grid commonGrid, tmpGrid;
307 currentNoise.
getGrid( tmpGrid );
returnValue setTime(double _time)
returnValue merge(const Grid &arg, MergeMethod _mergeMethod=MM_DUPLICATE, BooleanType keepOverlap=BT_TRUE)
virtual returnValue step(VariablesGrid &_y)
double getFirstTime() const
BooleanType acadoIsEqual(double x, double y, double TOL)
Provides a time grid consisting of vector-valued optimization variables at each grid point...
Allows to pass back messages to the calling function.
Sensor & operator=(const Sensor &rhs)
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.
Allows to simulate the behaviour of sensors within the Process.
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)
returnValue setOutputDeadTime(uint idx, double _deadTime)
Grid getTimePoints() const
returnValue addSensorNoise(VariablesGrid &_y) 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 setOutputNoise(const Noise &_noise, double _noiseSamplingTime)
void rhs(const real_t *x, real_t *f)
virtual Noise * clone() const =0
Grid & shiftTimes(double timeShift)
returnValue addTime(double _time)
uint getNumPoints() const
void setAll(const T &_value)
returnValue getDelayedOutputGrid(const VariablesGrid &_y, VariablesGrid &_yDelayed) const
double getLastTime() const
#define ACADOWARNING(retval)
DVector noiseSamplingTimes
#define BEGIN_NAMESPACE_ACADO
virtual returnValue init(double _startTime=0.0, const DVector &_startValue=emptyConstVector)
returnValue delaySensorOutput(VariablesGrid &_y)
returnValue setOutputDeadTimes(const DVector &_deadTimes)
TransferDevice & operator=(const TransferDevice &rhs)
#define ACADOERROR(retval)
Base class for simulating Actuator and Sensor behaviour wihtin the Process.