85 #define PTK_MAP_MAX_NUM_GRIDS_PER_MAP 32U 97 #define PTK_MAP_OK ((uint32_t)0) 104 #define PTK_MAP_XCELL_COUNT_INVALID ((uint32_t)-1) 111 #define PTK_MAP_YCELL_COUNT_INVALID ((uint32_t)-2) 118 #define PTK_MAP_ZCELL_COUNT_INVALID ((uint32_t)-3) 125 #define PTK_MAP_GRID_ID_INVALID ((uint32_t)-4) 132 #define PTK_MAP_GRID_DATA_TYPE_INVALID ((uint32_t)-5) 139 #define PTK_MAP_CELL_DATA_SIZE_INVALID ((uint32_t)-6) void PTK_Map_clear(PTK_Map *map)
This clears all PTK_Grids internal to the map. It has the same result as if PTK_Grid clear were calle...
uint32_t zCells
Definition: map.h:186
float yMin
Definition: map.h:203
uint32_t xCells
Definition: map.h:178
Map definition.
Definition: map.h:236
uint32_t PTK_Map_copy(PTK_Map *__restrict dst, const PTK_Map *__restrict src)
Copy all constituent PTK_Grids from the given source PTK_Map to the destination PTK_Map. They must have the same PTK_MapConfig or an assertion failure is generated.
uint32_t dataSize
Definition: map.h:162
PTK_MapConfig config
Definition: map.h:239
PTK_Map * PTK_Map_init(uint8_t *mem, const PTK_MapConfig *config)
Initialize an externally allocated piece of memory to be a valid PTK_Map. This also initializes all m...
float xCellSize
Definition: map.h:189
uint32_t id
Definition: map.h:156
uint32_t yCells
Definition: map.h:181
PTK_GridType
Grid data type definition.
Definition: grid.h:120
float zMin
Definition: map.h:208
This defines the common grid functionality which is then used to construct occupancy grids that store...
Map configuration.
Definition: map.h:175
float yCellSize
Definition: map.h:192
float zCellSize
Definition: map.h:197
float xMin
Definition: map.h:200
Grid information.
Definition: map.h:151
uint32_t PTK_Map_has(const PTK_Map *map, uint32_t id)
Test if a PTK_Map contains a PTK_Grid with the specified id.
PTK_Grid * PTK_Map_get(const PTK_Map *map, uint32_t id)
Obtain a pointer to the PTK_Grid matching the specified id.
Grid definition.
Definition: grid.h:233
PTK_GridType type
Definition: map.h:159
uint32_t PTK_Map_getSize(const PTK_MapConfig *config)
Compute how much memory is required to store the complete PTK_Map described by the given configuratio...
#define PTK_MAP_MAX_NUM_GRIDS_PER_MAP
Maximum number of grids per Map - 1. One of the nodes will be used as a NULL node.
Definition: map.h:85