Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
BaseTBM Class Reference

#include <viny_grid_cell.h>

Public Member Functions

 BaseTBM ()
 
 BaseTBM (const BaseTBM &)=default
 
 BaseTBM (const AreaOccupancyObservation &aoo)
 
 BaseTBM (double occupied, double empty, double unknown, double conflict)
 
double conflict () const
 
double empty () const
 
void normalize_conflict ()
 
double occupied () const
 
 operator Occupancy ()
 
BaseTBMoperator+= (const BaseTBM &rhs)
 
BaseTBMoperator-= (const BaseTBM &rhs)
 
BaseTBMoperator= (const BaseTBM &)=default
 
BaseTBMoperator= (BaseTBM &&)=default
 
double unknown () const
 

Private Member Functions

double & belief_by_id (int id)
 
const double & belief_by_id (int id) const
 
void normalize ()
 
void reset ()
 

Private Attributes

double _conflict = 0.0
 
double _empty = 0.0
 
double _occupied = 0.0
 
double _unknown = 1.0
 

Static Private Attributes

static const int CONFLICT = 0b11
 
static const int EMPTY = 0b01
 
static const int NM = 4
 
static const int OCCUPIED = 0b10
 
static const int UNKNOWN = 0b00
 

Detailed Description

Definition at line 7 of file viny_grid_cell.h.

Constructor & Destructor Documentation

BaseTBM::BaseTBM ( )
inline

Definition at line 13 of file viny_grid_cell.h.

BaseTBM::BaseTBM ( const BaseTBM )
default
BaseTBM::BaseTBM ( const AreaOccupancyObservation aoo)
inline

Definition at line 18 of file viny_grid_cell.h.

BaseTBM::BaseTBM ( double  occupied,
double  empty,
double  unknown,
double  conflict 
)
inline

Definition at line 39 of file viny_grid_cell.h.

Member Function Documentation

double& BaseTBM::belief_by_id ( int  id)
inlineprivate

Definition at line 107 of file viny_grid_cell.h.

const double& BaseTBM::belief_by_id ( int  id) const
inlineprivate

Definition at line 112 of file viny_grid_cell.h.

double BaseTBM::conflict ( ) const
inline

Definition at line 88 of file viny_grid_cell.h.

double BaseTBM::empty ( ) const
inline

Definition at line 90 of file viny_grid_cell.h.

void BaseTBM::normalize ( )
inlineprivate

Definition at line 93 of file viny_grid_cell.h.

void BaseTBM::normalize_conflict ( )
inline

Definition at line 80 of file viny_grid_cell.h.

double BaseTBM::occupied ( ) const
inline

Definition at line 89 of file viny_grid_cell.h.

BaseTBM::operator Occupancy ( )
inlineexplicit

Definition at line 75 of file viny_grid_cell.h.

BaseTBM& BaseTBM::operator+= ( const BaseTBM rhs)
inline

Definition at line 43 of file viny_grid_cell.h.

BaseTBM& BaseTBM::operator-= ( const BaseTBM rhs)
inline

Definition at line 59 of file viny_grid_cell.h.

BaseTBM& BaseTBM::operator= ( const BaseTBM )
default
BaseTBM& BaseTBM::operator= ( BaseTBM &&  )
default
void BaseTBM::reset ( )
inlineprivate

Definition at line 105 of file viny_grid_cell.h.

double BaseTBM::unknown ( ) const
inline

Definition at line 91 of file viny_grid_cell.h.

Member Data Documentation

double BaseTBM::_conflict = 0.0
private

Definition at line 124 of file viny_grid_cell.h.

double BaseTBM::_empty = 0.0
private

Definition at line 122 of file viny_grid_cell.h.

double BaseTBM::_occupied = 0.0
private

Definition at line 121 of file viny_grid_cell.h.

double BaseTBM::_unknown = 1.0
private

Definition at line 123 of file viny_grid_cell.h.

const int BaseTBM::CONFLICT = 0b11
staticprivate

Definition at line 11 of file viny_grid_cell.h.

const int BaseTBM::EMPTY = 0b01
staticprivate

Definition at line 10 of file viny_grid_cell.h.

const int BaseTBM::NM = 4
staticprivate

Definition at line 11 of file viny_grid_cell.h.

const int BaseTBM::OCCUPIED = 0b10
staticprivate

Definition at line 10 of file viny_grid_cell.h.

const int BaseTBM::UNKNOWN = 0b00
staticprivate

Definition at line 10 of file viny_grid_cell.h.


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


slam_constructor
Author(s): JetBrains Research, OSLL team
autogenerated on Mon Jun 10 2019 15:08:26