ConstEstimator is responsible for the occupancy estimation strategy that returns probability of being occupied for a cell depending only on the cell status predicted by a sensor. More...
#include <const_occupancy_estimator.h>
Public Member Functions | |
ConstOccupancyEstimator (double occ, double 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 occupied for a cell depending only on the cell status predicted by a sensor.
Definition at line 11 of file const_occupancy_estimator.h.
ConstOccupancyEstimator::ConstOccupancyEstimator | ( | double | occ, |
double | empty | ||
) | [inline] |
Initializes the estimator with base probabilities.
occ | Probability of being occupied. |
empty | Probability of being empty. |
Definition at line 18 of file const_occupancy_estimator.h.
virtual Occupancy ConstOccupancyEstimator::estimate_occupancy | ( | const Beam & | beam, |
const Rectangle & | cell_bnds, | ||
bool | is_occ | ||
) | [inline, override, virtual] |
Returns base probability of being occupied for the cell defined by bounds.
beam | A laser beam (ignored). |
cell_bnds | The geometric representation of the cell (ignored). |
is_occ | A flag that indicates whether the cell is occupied according to sensor data. |
Implements CellOccupancyEstimator.
Definition at line 26 of file const_occupancy_estimator.h.