grid_cell_strategy.h
Go to the documentation of this file.
1 #ifndef __GRID_CELL_STRATEGY_H
2 #define __GRID_CELL_STRATEGY_H
3 
4 #include <memory>
5 
6 #include "grid_cell_factory.h"
7 #include "../grid_scan_matcher.h"
9 
14 public:
21  GridCellStrategy(std::shared_ptr<GridCellFactory> factory,
22  std::shared_ptr<ScanCostEstimator> cost_est,
23  std::shared_ptr<CellOccupancyEstimator> occ_est)
24  : _cell_factory(factory), _cost_estimator(cost_est),
25  _occupancy_estimator(occ_est) {}
26 
31  std::shared_ptr<GridCellFactory> cell_factory() { return _cell_factory; }
32 
37  std::shared_ptr<ScanCostEstimator> cost_est() { return _cost_estimator; }
38 
43  std::shared_ptr<CellOccupancyEstimator> occupancy_est() {
44  return _occupancy_estimator;
45  }
46 
47 private:
48  // cell creation/update
49  std::shared_ptr<GridCellFactory> _cell_factory;
50  // cell comparison (scan evaluation)
51  std::shared_ptr<ScanCostEstimator> _cost_estimator;
52  // new cell value estimation
53  std::shared_ptr<CellOccupancyEstimator> _occupancy_estimator;
54 };
55 
56 #endif
std::shared_ptr< ScanCostEstimator > _cost_estimator
std::shared_ptr< CellOccupancyEstimator > occupancy_est()
Returns an occupancy estimator.
std::shared_ptr< GridCellFactory > _cell_factory
std::shared_ptr< GridCellFactory > cell_factory()
Returns a cell factory that creates cells that implement a specific model.
std::shared_ptr< CellOccupancyEstimator > _occupancy_estimator
GridCellStrategy(std::shared_ptr< GridCellFactory > factory, std::shared_ptr< ScanCostEstimator > cost_est, std::shared_ptr< CellOccupancyEstimator > occ_est)
Initializes a grid cell model.
Defines interface Cell Occupancy Estimator. There are structures Occupancy and Beam that are used in ...
std::shared_ptr< ScanCostEstimator > cost_est()
Returns a scan cost estimator.
A container for strategies specific to a grid cell model.
The following classes are defined in this file GridCell - base class for GridMap&#39;s cell; GridCellFact...


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