#include <maps/VoxelMap.h>
|
| typedef boost::multi_array< T, 3 > | Array |
| |
| typedef boost::multi_array::extent_range | Range |
| |
◆ Array
| typedef boost::multi_array<T,3> Array |
◆ Range
| typedef boost::multi_array::extent_range Range |
◆ VoxelMap() [1/4]
◆ VoxelMap() [2/4]
◆ VoxelMap() [3/4]
Creates a new voxel map that covers the specified region.
The created map is guaranteed to cover the whole specified region. Note that the dimensions of the created map may differ, if the width, height or depth of the specified region is not a multiple of the specified cellSize. The width and height will be increased to the next multiple of the cellSize.
◆ VoxelMap() [4/4]
◆ ~VoxelMap()
◆ getCellSize()
| float getCellSize |
( |
| ) |
const |
|
inline |
Returns the size of each cell in meter.
◆ getOffset()
Returns the offset of the map, e.g. the index of the cell that is located in the origin.
◆ operator=()
Set all voxel cells to the specified value.
◆ getRegion()
| Box3f getRegion |
( |
| ) |
const |
|
inline |
Retuns the region that is covered by the GridMap.
◆ getMapRegion()
| Box3i getMapRegion |
( |
| ) |
const |
|
inline |
Retuns the region that is covered by the GridMap in grid cells.
◆ data() [1/2]
◆ data() [2/2]
| const Array& data |
( |
| ) |
const |
|
inline |
◆ operator()() [1/2]
| T& operator() |
( |
const Point3i & |
idx | ) |
|
|
inline |
◆ operator()() [2/2]
| const T& operator() |
( |
const Point3i & |
idx | ) |
const |
|
inline |
◆ world2map()
Convert a given point to map coordinates.
- Parameters
-
| [in] | p | Point in world coordinates |
- Returns
- Point in map coordinates
- Note
- The point is not checked if it exceeds the boundaries of the map
◆ map2world()
Convert a given point to world coordinates.
- Parameters
-
| [in] | p | Point in map coordinates |
- Returns
- Point in world coordinates
◆ clip()
| void clip |
( |
const Box3i & |
region, |
|
|
const T & |
valueForNewCells |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: