Public Member Functions | Protected Member Functions | Private Attributes | List of all members
CellOccupancyEstimator Class Referenceabstract

#include <cell_occupancy_estimator.h>

Inheritance diagram for CellOccupancyEstimator:
Inheritance graph
[legend]

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. More...
 
double base_occ_prob ()
 Returns the probability of being occupied. More...
 

Private Attributes

double _base_empty_prob
 
double _base_occ_prob
 

Detailed Description

Estimates the occupancy of cell according to a strategy defined by subclasses.

Definition at line 56 of file cell_occupancy_estimator.h.

Constructor & Destructor Documentation

CellOccupancyEstimator::CellOccupancyEstimator ( double  base_occ_prob,
double  base_empty_prob 
)
inline

Initializes an estimator with probability of cell to be occupied and empty.

Parameters
base_occ_probThe initial probability of a cell to be occupied.
base_empty_probThe initial probability of a cell to be empty.

Definition at line 64 of file cell_occupancy_estimator.h.

Member Function Documentation

double CellOccupancyEstimator::base_empty_prob ( )
inlineprotected

Returns the probability of being empty.

Definition at line 83 of file cell_occupancy_estimator.h.

double CellOccupancyEstimator::base_occ_prob ( )
inlineprotected

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.

Parameters
beamA beam bounded with a given cell.
cell_bndsBounds of a cell in the context of the world.
is_occThe probability of a cell to be occupied.

Implemented in AreaOccupancyEstimator, and ConstOccupancyEstimator.

Member Data Documentation

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.


The documentation for this class was generated from the following file:


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