#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 |
( |
| ) |
|
|
inline |
GridMapCacheArray::~GridMapCacheArray |
( |
| ) |
|
|
inline |
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.
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.
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.
void GridMapCacheArray::deleteCacheArray |
( |
| ) |
|
|
inlineprotected |
void GridMapCacheArray::resetCache |
( |
| ) |
|
|
inline |
void GridMapCacheArray::setArraySize |
( |
const Eigen::Vector2i & |
newDimensions | ) |
|
|
inlineprotected |
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.
Eigen::Vector2i GridMapCacheArray::arrayDimensions |
|
protected |
int GridMapCacheArray::currCacheIndex |
|
protected |
The documentation for this class was generated from the following file: