33 #ifndef ACADO_TOOLKIT_GRID_HPP 34 #define ACADO_TOOLKIT_GRID_HPP 95 Grid(
double _firstTime,
128 const double*
const _times = 0
620 #include <acado/variables_grid/grid.ipp> 622 #endif // ACADO_TOOLKIT_GRID_HPP uint getNumPoints() const
returnValue setTime(double _time)
Grid & operator &(const Grid &arg)
returnValue merge(const Grid &arg, MergeMethod _mergeMethod=MM_DUPLICATE, BooleanType keepOverlap=BT_TRUE)
double getLastTime() const
Allows to pass back messages to the calling function.
int findNextIndex() const
BooleanType isEmpty() const
int findLastTime(double _time, uint startIdx=0) const
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
BooleanType operator!=(const Grid &arg) const
Allows to conveniently handle (one-dimensional) grids consisting of time points.
#define CLOSE_NAMESPACE_ACADO
returnValue equalizeGrids(Grid &arg)
uint getCeilIndex(double time) const
double getFirstTime() const
BooleanType operator==(const Grid &arg) const
uint getFloorIndex(double time) const
returnValue coarsenGrid(uint factor)
BooleanType hasTime(double _time) const
Grid & operator=(const Grid &rhs)
BooleanType isLast(uint pointIdx) const
BooleanType isEquidistant() const
BooleanType operator<=(const Grid &arg) const
returnValue refineGrid(uint factor)
returnValue init(uint _nPoints=0, const double *const _times=0)
void rhs(const real_t *x, real_t *f)
returnValue scaleTimes(double scaling)
double getTime(uint pointIdx) const
double getIntervalLength() const
uint getLastIndex() const
int findFirstTime(double _time, uint startIdx=0) const
returnValue setupEquidistant(double _firstTime, double _lastTime)
Grid & shiftTimes(double timeShift)
returnValue addTime(double _time)
int findTime(double _time, uint startIdx=0) const
BooleanType isInUpperHalfOpenInterval(uint pointIdx, double _time) const
#define BEGIN_NAMESPACE_ACADO
BooleanType operator<(const Grid &arg) const
BooleanType operator>=(const Grid &arg) const
BooleanType operator>(const Grid &arg) const
BooleanType isInLowerHalfOpenInterval(uint pointIdx, double _time) const
returnValue getSubGrid(double tStart, double tEnd, Grid &_subGrid) const
BooleanType isInInterval(double _time) const
returnValue print() const
uint getNumIntervals() const