26 template <
typename TCELL>
49 if (theCell ==
nullptr)
return;
51 *theCell -= logodd_obs;
53 *theCell = traits_t::CELLTYPE_MIN;
68 const unsigned x,
const unsigned y,
const unsigned z,
86 if (theCell ==
nullptr)
return;
88 *theCell += logodd_obs;
90 *theCell = traits_t::CELLTYPE_MAX;
105 const unsigned x,
const unsigned y,
const unsigned z,
void updateCell_fast_free(const unsigned x, const unsigned y, const unsigned z, const cell_t logodd_obs, const cell_t thres)
Performs the Bayesian fusion of a new observation of a cell.
void updateCell_fast_occupied(const unsigned x, const unsigned y, const unsigned z, const cell_t logodd_obs, const cell_t thres)
Performs Bayesian fusion of a new observation of a cell.
static void updateCell_fast_occupied(cell_t *theCell, const cell_t logodd_obs, const cell_t thres)
Performs Bayesian fusion of a new observation of a cell.
OccGridCellTraits::cellType cell_t
The type of cells.
T * cellByIndex(unsigned int cx, unsigned int cy, unsigned int cz)
Returns a pointer to the contents of a voxel given by its voxel indexes, or nullptr if it is out of t...
A generic provider of log-odds grid-map maintainance functions.
grid_t m_grid
The actual 3D voxels container.
static void updateCell_fast_free(cell_t *theCell, const cell_t logodd_obs, const cell_t thres)
Performs Bayesian fusion of a new observation of a cell.