grid_cell_factory.h
Go to the documentation of this file.
1 
8 #ifndef __GRID_CELL_FACTORY_H
9 #define __GRID_CELL_FACTORY_H
10 
11 #include <memory>
12 
14 
18 class GridCell {
19 public:
23  virtual double value() const = 0;
27  virtual void set_value(const Occupancy &occ, double quality = 1.0) = 0;
28 
29  // TODO: move to gmapping
30  virtual double obst_x() const { return 0; }
31  virtual double obst_y() const { return 0; }
32 };
33 
39 public:
44  virtual std::shared_ptr<GridCell> create_cell() = 0;
45 };
46 
47 #endif
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&#39;s cell that defines a model of occupancy tracking.


tiny_slam
Author(s):
autogenerated on Mon Jun 10 2019 15:30:57