const_occupancy_estimator.h
Go to the documentation of this file.
1 #ifndef SLAM_CTOR_CORE_CONST_OCCUPANCY_ESTIMATOR_H
2 #define SLAM_CTOR_CORE_CONST_OCCUPANCY_ESTIMATOR_H
3 
5 
7 public:
9  const Occupancy& base_empty):
10  CellOccupancyEstimator(base_occ, base_empty) {}
11  virtual Occupancy estimate_occupancy(const Segment2D &beam,
12  const Rectangle &cell_bnds,
13  bool is_occ) override {
14  return is_occ ? base_occupied() : base_empty();
15  }
16 
17 };
18 
19 #endif
virtual Occupancy estimate_occupancy(const Segment2D &beam, const Rectangle &cell_bnds, bool is_occ) override
ConstOccupancyEstimator(const Occupancy &base_occ, const Occupancy &base_empty)
const Occupancy & base_empty() const
const Occupancy & base_occupied() const


slam_constructor
Author(s): JetBrains Research, OSLL team
autogenerated on Mon Jun 10 2019 15:08:25