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 NavGridInfo getInfo() 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)
double getResolution() const
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 getOriginY() const
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.
virtual void updateInfo(const NavGridInfo &new_info)
Change the info while attempting to keep the values associated with the world coordinates.
unsigned int getWidth() const
T getValue(const Index &index)
unsigned int getHeight() const
void setValue(const Index &index, const T &value)
std::string getFrameId() const
virtual void setInfo(const NavGridInfo &new_info)=0
Change the info while attempting to keep the values associated with the grid coordinates.
double getOriginX() const
A simple pair of x/y coordinates.
T operator()(const unsigned int x, const unsigned int y) const