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 returnValue setTime(double _time)
BooleanType isInLowerHalfOpenInterval(uint pointIdx, double _time) const
int findLastTime(double _time, uint startIdx=0) const
returnValue merge(const Grid &arg, MergeMethod _mergeMethod=MM_DUPLICATE, BooleanType keepOverlap=BT_TRUE)
double getTime(uint pointIdx) const
BooleanType operator!=(const Grid &arg) const
int findTime(double _time, uint startIdx=0) const
double getFirstTime() const
uint getCeilIndex(double time) const
BooleanType operator<=(const Grid &arg) const
BooleanType isEquidistant() const
Allows to pass back messages to the calling function.
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
Allows to conveniently handle (one-dimensional) grids consisting of time points.
BooleanType isEmpty() const
BooleanType operator>(const Grid &arg) const
uint getLastIndex() const
#define CLOSE_NAMESPACE_ACADO
returnValue equalizeGrids(Grid &arg)
BooleanType isInInterval(double _time) const
returnValue getSubGrid(double tStart, double tEnd, Grid &_subGrid) const
returnValue print() const
uint getFloorIndex(double time) const
BooleanType operator==(const Grid &arg) const
Grid & operator&(const Grid &arg)
double getIntervalLength() const
BooleanType operator>=(const Grid &arg) const
returnValue coarsenGrid(uint factor)
Grid & operator=(const Grid &rhs)
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)
returnValue setupEquidistant(double _firstTime, double _lastTime)
Grid & shiftTimes(double timeShift)
uint getNumIntervals() const
returnValue addTime(double _time)
int findFirstTime(double _time, uint startIdx=0) const
uint getNumPoints() const
BooleanType isLast(uint pointIdx) const
BooleanType hasTime(double _time) const
double getLastTime() const
#define BEGIN_NAMESPACE_ACADO
BooleanType operator<(const Grid &arg) const
BooleanType isInUpperHalfOpenInterval(uint pointIdx, double _time) const
int findNextIndex() const