const_occupancy_estimator.h
Go to the documentation of this file.
1 #ifndef __CONST_OCCUPANCY_ESTIMATOR_H
2 #define __CONST_OCCUPANCY_ESTIMATOR_H
3 
5 
12 public:
18  ConstOccupancyEstimator(double occ, double empty) :
19  CellOccupancyEstimator(occ, empty) {}
26  virtual Occupancy estimate_occupancy(const Beam &beam,
27  const Rectangle &cell_bnds,
28  bool is_occ) override {
29  return Occupancy{is_occ ? base_occ_prob() : base_empty_prob(), 1.0};
30  }
31 
32 };
33 
34 #endif
double base_empty_prob()
Returns the probability of being empty.
virtual Occupancy estimate_occupancy(const Beam &beam, const Rectangle &cell_bnds, bool is_occ) override
ConstEstimator is responsible for the occupancy estimation strategy that returns probability of being...
ConstOccupancyEstimator(double occ, double empty)
Defines interface Cell Occupancy Estimator. There are structures Occupancy and Beam that are used in ...
Defines an axis-aligned rectangle.
double base_occ_prob()
Returns the probability of being occupied.


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