8 #ifndef __GRID_CELL_FACTORY_H 9 #define __GRID_CELL_FACTORY_H 23 virtual double value()
const = 0;
30 virtual double obst_x()
const {
return 0; }
31 virtual double obst_y()
const {
return 0; }
44 virtual std::shared_ptr<GridCell> create_cell() = 0;
The base class for factories that encapsulate creation of a specific cell (The Factory method pattern...
virtual void set_value(const Occupancy &occ, double quality=1.0)=0
Calculates the probability of being occupied for a cell.
Defines interface Cell Occupancy Estimator. There are structures Occupancy and Beam that are used in ...
virtual double obst_x() const
virtual double value() const =0
Returns the probability of being occupied for a cell.
virtual double obst_y() const
The base class for GridMap's cell that defines a model of occupancy tracking.