#include <bonxai.hpp>
◆ InnerGrid
◆ LeafGrid
◆ RootMap
◆ VoxelGrid() [1/3]
template<typename DataT>
| VoxelGrid |
( |
double | voxel_size, |
|
|
uint8_t | inner_bits = 2, |
|
|
uint8_t | leaf_bits = 3 ) |
|
explicit |
VoxelGrid constructor.
- Parameters
-
| voxel_size | dimension of the voxel. Used to convert between Point3D and CoordT |
◆ VoxelGrid() [2/3]
template<typename DataT>
| VoxelGrid |
( |
const VoxelGrid< DataT > & | | ) |
|
|
delete |
◆ VoxelGrid() [3/3]
template<typename DataT>
| VoxelGrid |
( |
VoxelGrid< DataT > && | other | ) |
|
|
default |
◆ activeCellsCount()
template<typename DataT>
| size_t activeCellsCount |
( |
| ) |
const |
|
nodiscard |
Return the total number of active cells.
◆ allocateLeafGrid()
template<typename DataT>
| std::shared_ptr< Grid< DataT > > allocateLeafGrid |
( |
| ) |
|
◆ clear()
◆ coordToPos()
◆ createAccessor()
◆ createConstAccessor()
◆ forEachCell() [1/2]
template<typename DataT>
template<class VisitorFunction>
| void forEachCell |
( |
VisitorFunction | func | ) |
|
forEachCell apply a function of type:
void(DataT&, const CoordT&)
to each active element of the grid.
◆ forEachCell() [2/2]
template<typename DataT>
template<class VisitorFunction>
| void forEachCell |
( |
VisitorFunction | func | ) |
const |
forEachCell apply a function of type:
void(const DataT&, const CoordT&)
to each active element of the grid.
◆ getInnerIndex()
template<typename DataT>
| uint32_t getInnerIndex |
( |
const CoordT & | coord | ) |
const |
|
nodiscard |
◆ getInnerKey()
◆ getLeafIndex()
template<typename DataT>
| uint32_t getLeafIndex |
( |
const CoordT & | coord | ) |
const |
|
nodiscard |
◆ getRootKey()
◆ innetBits()
template<typename DataT>
| uint32_t innetBits |
( |
| ) |
const |
◆ leafBits()
template<typename DataT>
| uint32_t leafBits |
( |
| ) |
const |
◆ memUsage()
template<typename DataT>
| size_t memUsage |
( |
| ) |
const |
|
nodiscard |
getMemoryUsage returns the amount of bytes used by this data structure
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ posToCoord() [1/2]
posToCoord is used to convert real coordinates to CoordT indices.
◆ posToCoord() [2/2]
template<typename DataT>
| CoordT posToCoord |
( |
double | x, |
|
|
double | y, |
|
|
double | z ) const |
|
nodiscard |
posToCoord is used to convert real coordinates to CoordT indices.
◆ releaseUnusedMemory()
template<typename DataT>
| void releaseUnusedMemory |
( |
| ) |
|
Try freeing memory; this will discard grids where all the cells are OFF.
Note that the memory release is NOT guaranteed, since we are using a memory pool too. CAREFULL: This will invalidate all the existing Accessors (you need to create new ones).
◆ rootMap() [1/2]
◆ rootMap() [2/2]
◆ voxelSize()
template<typename DataT>
| double voxelSize |
( |
| ) |
const |
The documentation for this class was generated from the following file:
- maps_managers/easynav_bonxai_maps_manager/include/bonxai/bonxai.hpp