Public Member Functions | Protected Member Functions | Private Attributes
CellOccupancyEstimator Class Reference

#include <cell_occupancy_estimator.h>

Inheritance diagram for CellOccupancyEstimator:
Inheritance graph
[legend]

List of all members.

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

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 ( ) [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.

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

Definition at line 85 of file cell_occupancy_estimator.h.

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 Thu Jun 6 2019 17:44:58