Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Types | Static Public Member Functions
mrpt::maps::CLogOddsGridMap2D< TCELL > Struct Template Reference

Detailed Description

template<typename TCELL>
struct mrpt::maps::CLogOddsGridMap2D< TCELL >

A generic provider of log-odds grid-map maintainance functions.

Map cells must be type TCELL, which can be only:

See also
CLogOddsGridMapLUT, See derived classes for usage examples.

Definition at line 56 of file CLogOddsGridMap2D.h.

#include <mrpt/maps/CLogOddsGridMap2D.h>

Inheritance diagram for mrpt::maps::CLogOddsGridMap2D< TCELL >:
Inheritance graph

Public Types

typedef TCELL cell_t
 The type of cells. More...
 
typedef detail::logoddscell_traits< TCELL > traits_t
 

Static Public Member Functions

static void updateCell_fast_occupied (const unsigned x, const unsigned y, const cell_t logodd_obs, const cell_t thres, cell_t *mapArray, const unsigned _size_x)
 Performs the Bayesian fusion of a new observation of a cell, without checking for grid limits nor updateInfoChangeOnly. More...
 
static void updateCell_fast_occupied (cell_t *theCell, const cell_t logodd_obs, const cell_t thres)
 Performs the Bayesian fusion of a new observation of a cell, without checking for grid limits nor updateInfoChangeOnly. More...
 
static void updateCell_fast_free (const unsigned x, const unsigned y, const cell_t logodd_obs, const cell_t thres, cell_t *mapArray, const unsigned _size_x)
 Performs the Bayesian fusion of a new observation of a cell, without checking for grid limits nor updateInfoChangeOnly. More...
 
static void updateCell_fast_free (cell_t *theCell, const cell_t logodd_obs, const cell_t thres)
 Performs the Bayesian fusion of a new observation of a cell, without checking for grid limits nor updateInfoChangeOnly. More...
 

Member Typedef Documentation

◆ cell_t

template<typename TCELL>
typedef TCELL mrpt::maps::CLogOddsGridMap2D< TCELL >::cell_t

The type of cells.

Definition at line 59 of file CLogOddsGridMap2D.h.

◆ traits_t

template<typename TCELL>
typedef detail::logoddscell_traits<TCELL> mrpt::maps::CLogOddsGridMap2D< TCELL >::traits_t

Definition at line 60 of file CLogOddsGridMap2D.h.

Member Function Documentation

◆ updateCell_fast_free() [1/2]

template<typename TCELL>
static void mrpt::maps::CLogOddsGridMap2D< TCELL >::updateCell_fast_free ( const unsigned  x,
const unsigned  y,
const cell_t  logodd_obs,
const cell_t  thres,
cell_t mapArray,
const unsigned  _size_x 
)
inlinestatic

Performs the Bayesian fusion of a new observation of a cell, without checking for grid limits nor updateInfoChangeOnly.

This method increases the "free-ness" of a cell, managing possible saturation.

Parameters
xCell index in X axis.
yCell index in Y axis.
logodd_obsObservation of the cell, in log-odd form as transformed by p2l.
thresThis must be CELLTYPE_MAX-logodd_obs
See also
updateCell_fast_occupied

Definition at line 114 of file CLogOddsGridMap2D.h.

◆ updateCell_fast_free() [2/2]

template<typename TCELL>
static void mrpt::maps::CLogOddsGridMap2D< TCELL >::updateCell_fast_free ( cell_t theCell,
const cell_t  logodd_obs,
const cell_t  thres 
)
inlinestatic

Performs the Bayesian fusion of a new observation of a cell, without checking for grid limits nor updateInfoChangeOnly.

This method increases the "free-ness" of a cell, managing possible saturation.

Parameters
xCell index in X axis.
yCell index in Y axis.
logodd_obsObservation of the cell, in log-odd form as transformed by p2l.
thresThis must be CELLTYPE_MAX-logodd_obs
See also
updateCell_fast_occupied

Definition at line 136 of file CLogOddsGridMap2D.h.

◆ updateCell_fast_occupied() [1/2]

template<typename TCELL>
static void mrpt::maps::CLogOddsGridMap2D< TCELL >::updateCell_fast_occupied ( const unsigned  x,
const unsigned  y,
const cell_t  logodd_obs,
const cell_t  thres,
cell_t mapArray,
const unsigned  _size_x 
)
inlinestatic

Performs the Bayesian fusion of a new observation of a cell, without checking for grid limits nor updateInfoChangeOnly.

This method increases the "occupancy-ness" of a cell, managing possible saturation.

Parameters
xCell index in X axis.
yCell index in Y axis.
logodd_obsObservation of the cell, in log-odd form as transformed by p2l.
thresThis must be CELLTYPE_MIN+logodd_obs
See also
updateCell, updateCell_fast_free

Definition at line 73 of file CLogOddsGridMap2D.h.

◆ updateCell_fast_occupied() [2/2]

template<typename TCELL>
static void mrpt::maps::CLogOddsGridMap2D< TCELL >::updateCell_fast_occupied ( cell_t theCell,
const cell_t  logodd_obs,
const cell_t  thres 
)
inlinestatic

Performs the Bayesian fusion of a new observation of a cell, without checking for grid limits nor updateInfoChangeOnly.

This method increases the "occupancy-ness" of a cell, managing possible saturation.

Parameters
theCellThe cell to modify
logodd_obsObservation of the cell, in log-odd form as transformed by p2l.
thresThis must be CELLTYPE_MIN+logodd_obs
See also
updateCell, updateCell_fast_free

Definition at line 94 of file CLogOddsGridMap2D.h.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019