35 #ifndef NAV_GRID_NAV_GRID_H 36 #define NAV_GRID_NAV_GRID_H 84 virtual void reset() = 0;
92 virtual T
getValue(
const unsigned int x,
const unsigned int y)
const = 0;
100 virtual void setValue(
const unsigned int x,
const unsigned int y,
const T& value) = 0;
157 #endif // NAV_GRID_NAV_GRID_H T operator()(const unsigned int x, const unsigned int y) const
virtual void setValue(const unsigned int x, const unsigned int y, const T &value)=0
set the value of the grid at (x,y)
virtual void reset()=0
Reset the contents of the grid.
virtual T getValue(const unsigned int x, const unsigned int y) const =0
get the value of the grid at (x,y)
NavGrid(const T default_value=T{})
double origin_x
The origin defines the coordinates of minimum corner of cell (0,0) in the grid.
void setDefaultValue(const T new_value)
Set the default value.
std::string getFrameId() const
virtual void updateInfo(const NavGridInfo &new_info)
Change the info while attempting to keep the values associated with the world coordinates.
T getValue(const Index &index)
unsigned int getHeight() const
void setValue(const Index &index, const T &value)
double getResolution() const
unsigned int getWidth() const
virtual void setInfo(const NavGridInfo &new_info)=0
Change the info while attempting to keep the values associated with the grid coordinates.
NavGridInfo getInfo() const
double getOriginY() const
double getOriginX() const
A simple pair of x/y coordinates.