const_occupancy_estimator.h
Go to the documentation of this file.
00001 #ifndef __CONST_OCCUPANCY_ESTIMATOR_H
00002 #define __CONST_OCCUPANCY_ESTIMATOR_H
00003 
00004 #include "cell_occupancy_estimator.h"
00005 
00011 class ConstOccupancyEstimator : public CellOccupancyEstimator {
00012 public:
00018   ConstOccupancyEstimator(double occ, double empty) :
00019     CellOccupancyEstimator(occ, empty) {}
00026   virtual Occupancy estimate_occupancy(const Beam &beam,
00027                                        const Rectangle &cell_bnds,
00028                                        bool is_occ) override {
00029     return Occupancy{is_occ ? base_occ_prob() : base_empty_prob(), 1.0};
00030   }
00031 
00032 };
00033 
00034 #endif


tiny_slam
Author(s):
autogenerated on Mon Jul 17 2017 02:33:42