#include <cell_occupancy_estimator.h>

Public Member Functions | |
| CellOccupancyEstimator (double base_occ_prob, double base_empty_prob) | |
| virtual Occupancy | estimate_occupancy (const Beam &beam, const Rectangle &cell_bnds, bool is_occ)=0 |
Protected Member Functions | |
| double | base_empty_prob () |
| Returns the probability of being empty. | |
| double | base_occ_prob () |
| Returns the probability of being occupied. | |
Private Attributes | |
| double | _base_empty_prob |
| double | _base_occ_prob |
Estimates the occupancy of cell according to a strategy defined by subclasses.
Definition at line 56 of file cell_occupancy_estimator.h.
| CellOccupancyEstimator::CellOccupancyEstimator | ( | double | base_occ_prob, |
| double | base_empty_prob | ||
| ) | [inline] |
Initializes an estimator with probability of cell to be occupied and empty.
| base_occ_prob | The initial probability of a cell to be occupied. |
| base_empty_prob | The initial probability of a cell to be empty. |
Definition at line 64 of file cell_occupancy_estimator.h.
| double CellOccupancyEstimator::base_empty_prob | ( | ) | [inline, protected] |
Returns the probability of being empty.
Definition at line 83 of file cell_occupancy_estimator.h.
| double CellOccupancyEstimator::base_occ_prob | ( | ) | [inline, protected] |
Returns the probability of being occupied.
Definition at line 80 of file cell_occupancy_estimator.h.
| virtual Occupancy CellOccupancyEstimator::estimate_occupancy | ( | const Beam & | beam, |
| const Rectangle & | cell_bnds, | ||
| bool | is_occ | ||
| ) | [pure virtual] |
Estimates the probaility of cell occupancy according to a strategy defined by subclasses.
| beam | A beam bounded with a given cell. |
| cell_bnds | Bounds of a cell in the context of the world. |
| is_occ | The probability of a cell to be occupied. |
Implemented in AreaOccupancyEstimator, and ConstOccupancyEstimator.
double CellOccupancyEstimator::_base_empty_prob [private] |
Definition at line 85 of file cell_occupancy_estimator.h.
double CellOccupancyEstimator::_base_occ_prob [private] |
Definition at line 85 of file cell_occupancy_estimator.h.