12 #ifndef __TINY_GRID_CELLS_H 13 #define __TINY_GRID_CELLS_H 15 #include "../core/maps/grid_map.h" 82 double value()
const override {
return _n == 0 ? -1 : _cnt / _n; }
91 _cnt += 0.5 + (value.
prob_occ - 0.5) * quality;
110 return std::shared_ptr<GridCell>(
new AvgTinyCell());
double value() const override
std::shared_ptr< GridCell > create_cell() override
A strategy creates cells of the base tiny model (BaseTinyCell).
The base class for factories that encapsulate creation of a specific cell (The Factory method pattern...
void set_value(const Occupancy &value, double quality) override
void set_value(const Occupancy &value, double quality) override
A strategy creates cells with the average probability calculation rule (AvgTinyCell).
std::shared_ptr< GridCell > create_cell() override
The grid cell's model presented in the original tinySLAM paper.
double value() const override
The grid cell's model updates probabilities as an average value.
The base class for GridMap's cell that defines a model of occupancy tracking.