grid_cell_factory.h
Go to the documentation of this file.
00001 
00008 #ifndef __GRID_CELL_FACTORY_H
00009 #define __GRID_CELL_FACTORY_H
00010 
00011 #include <memory>
00012 
00013 #include "cell_occupancy_estimator.h"
00014 
00018 class GridCell {
00019 public:
00023   virtual double value() const = 0;
00027   virtual void set_value(const Occupancy &occ, double quality = 1.0) = 0;
00028 
00029   // TODO: move to gmapping
00030   virtual double obst_x() const { return 0; }
00031   virtual double obst_y() const { return 0; }
00032 };
00033 
00038 class GridCellFactory {
00039 public:
00044   virtual std::shared_ptr<GridCell> create_cell() = 0;
00045 };
00046 
00047 #endif


tiny_slam
Author(s):
autogenerated on Thu Jun 6 2019 17:44:57