#include <GridMapCacheArray.h>
Caches filtered grid map accesses in a two dimensional array of the same size as the map.
Definition at line 44 of file GridMapCacheArray.h.
◆ GridMapCacheArray()
GridMapCacheArray::GridMapCacheArray |
( |
| ) |
|
|
inline |
◆ ~GridMapCacheArray()
GridMapCacheArray::~GridMapCacheArray |
( |
| ) |
|
|
inline |
◆ cacheData()
void GridMapCacheArray::cacheData |
( |
int |
index, |
|
|
float |
val |
|
) |
| |
|
inline |
Caches float value val for coordinates coords.
- Parameters
-
coords | The coordinates |
val | The value to be cached for coordinates. |
Definition at line 97 of file GridMapCacheArray.h.
◆ containsCachedData()
bool GridMapCacheArray::containsCachedData |
( |
int |
index, |
|
|
float & |
val |
|
) |
| |
|
inline |
Checks wether cached data for coords is available. If this is the case, writes data into val.
- Parameters
-
coords | The coordinates |
val | Reference to a float the data is written to if available |
- Returns
- Indicates if cached data is available
Definition at line 80 of file GridMapCacheArray.h.
◆ createCacheArray()
void GridMapCacheArray::createCacheArray |
( |
const Eigen::Vector2i & |
newDimensions | ) |
|
|
inlineprotected |
Creates a cache array of size sizeIn.
- Parameters
-
sizeIn | The size of the array |
Definition at line 119 of file GridMapCacheArray.h.
◆ deleteCacheArray()
void GridMapCacheArray::deleteCacheArray |
( |
| ) |
|
|
inlineprotected |
◆ resetCache()
void GridMapCacheArray::resetCache |
( |
| ) |
|
|
inline |
◆ setArraySize()
void GridMapCacheArray::setArraySize |
( |
const Eigen::Vector2i & |
newDimensions | ) |
|
|
inlineprotected |
◆ setMapSize()
void GridMapCacheArray::setMapSize |
( |
const Eigen::Vector2i & |
newDimensions | ) |
|
|
inline |
Sets the map size and resizes the cache array accordingly
- Parameters
-
Definition at line 108 of file GridMapCacheArray.h.
◆ arrayDimensions
Eigen::Vector2i GridMapCacheArray::arrayDimensions |
|
protected |
◆ cacheArray
◆ currCacheIndex
int GridMapCacheArray::currCacheIndex |
|
protected |
The documentation for this class was generated from the following file: