#include <GridMapBase.h>
Public Member Functions | |
void | allocateArray (const Eigen::Vector2i &newMapDims) |
void | clear () |
void | deleteArray () |
ConcreteCellType & | getCell (int x, int y) |
const ConcreteCellType & | getCell (int x, int y) const |
ConcreteCellType & | getCell (int index) |
const ConcreteCellType & | getCell (int index) const |
float | getCellLength () const |
Eigen::Vector2f | getMapCoords (const Eigen::Vector2f &worldCoords) const |
Eigen::Vector3f | getMapCoordsPose (const Eigen::Vector3f &worldPose) const |
const Eigen::Vector2i & | getMapDimensions () const |
const MapDimensionProperties & | getMapDimProperties () const |
bool | getMapExtends (int &xMax, int &yMax, int &xMin, int &yMin) const |
const Eigen::Affine2f & | getMapTworld () const |
float | getScaleToMap () const |
int | getSizeX () const |
int | getSizeY () const |
int | getUpdateIndex () const |
Eigen::Vector2f | getWorldCoords (const Eigen::Vector2f &mapCoords) const |
Eigen::Vector3f | getWorldCoordsPose (const Eigen::Vector3f &mapPose) const |
const Eigen::Affine2f & | getWorldTmap () const |
const Eigen::Affine3f & | getWorldTmap3D () const |
GridMapBase (float mapResolution, const Eigen::Vector2i &size, const Eigen::Vector2f &offset) | |
GridMapBase (const GridMapBase &other) | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW bool | hasGridValue (int x, int y) const |
GridMapBase & | operator= (const GridMapBase &other) |
bool | pointOutOfMapBounds (const Eigen::Vector2f &pointMapCoords) const |
virtual void | reset () |
void | setDimensionProperties (const Eigen::Vector2f &topLeftOffsetIn, const Eigen::Vector2i &mapDimensionsIn, float cellLengthIn) |
void | setDimensionProperties (const MapDimensionProperties &newMapDimProps) |
void | setMapGridSize (const Eigen::Vector2i &newMapDims) |
void | setMapTransformation (const Eigen::Vector2f &topLeftOffset, float cellLength) |
void | setUpdated () |
virtual | ~GridMapBase () |
Protected Attributes | |
ConcreteCellType * | mapArray |
Map representation used with plain pointer array. More... | |
MapDimensionProperties | mapDimensionProperties |
Eigen::Affine2f | mapTworld |
Homogenous 2D transform from world to map coordinates. More... | |
float | scaleToMap |
Scaling factor from world to map. More... | |
int | sizeX |
Eigen::Affine2f | worldTmap |
Homogenous 2D transform from map to world coordinates. More... | |
Eigen::Affine3f | worldTmap3D |
Homogenous 3D transform from map to world coordinates. More... | |
Private Attributes | |
int | lastUpdateIndex |
GridMapBase provides basic grid map functionality (creates grid , provides transformation from/to world coordinates). It serves as the base class for different map representations that may extend it's functionality.
Definition at line 44 of file GridMapBase.h.
|
inline |
Constructor, creates grid representation and transformations.
Definition at line 95 of file GridMapBase.h.
|
inlinevirtual |
Destructor
Definition at line 112 of file GridMapBase.h.
|
inline |
Copy Constructor, only needed if pointer members are present.
Definition at line 173 of file GridMapBase.h.
|
inline |
Allocates memory for the two dimensional pointer array for map representation.
Definition at line 120 of file GridMapBase.h.
|
inline |
Resets the grid cell values by using the resetGridCell() function.
Definition at line 77 of file GridMapBase.h.
|
inline |
Definition at line 130 of file GridMapBase.h.
|
inline |
Definition at line 141 of file GridMapBase.h.
|
inline |
Definition at line 146 of file GridMapBase.h.
|
inline |
Definition at line 151 of file GridMapBase.h.
|
inline |
Definition at line 156 of file GridMapBase.h.
|
inline |
Returns the cell edge length of grid cells in millimeters.
Definition at line 296 of file GridMapBase.h.
|
inline |
Returns the map coordinates for the given world coords.
Definition at line 218 of file GridMapBase.h.
|
inline |
Returns the map pose for the given world pose.
Definition at line 235 of file GridMapBase.h.
|
inline |
Definition at line 60 of file GridMapBase.h.
|
inline |
Definition at line 90 of file GridMapBase.h.
|
inline |
Returns the rectangle ([xMin,yMin],[xMax,xMax]) containing non-default cell values
Definition at line 334 of file GridMapBase.h.
|
inline |
Returns a reference to the homogenous 2D transform from world to map coordinates.
Definition at line 323 of file GridMapBase.h.
|
inline |
Returns the scale factor for one unit in world coords to one unit in map coords.
Definition at line 287 of file GridMapBase.h.
|
inline |
Definition at line 61 of file GridMapBase.h.
|
inline |
Definition at line 62 of file GridMapBase.h.
|
inline |
Definition at line 329 of file GridMapBase.h.
|
inline |
Returns the world coordinates for the given map coords.
Definition at line 210 of file GridMapBase.h.
|
inline |
Returns the world pose for the given map pose.
Definition at line 226 of file GridMapBase.h.
|
inline |
Returns a reference to the homogenous 2D transform from map to world coordinates.
Definition at line 305 of file GridMapBase.h.
|
inline |
Returns a reference to the homogenous 3D transform from map to world coordinates.
Definition at line 314 of file GridMapBase.h.
|
inline |
Indicates if given x and y are within map bounds
Definition at line 55 of file GridMapBase.h.
|
inline |
Assignment operator, only needed if pointer members are present.
Definition at line 182 of file GridMapBase.h.
|
inline |
Definition at line 64 of file GridMapBase.h.
|
inlinevirtual |
Definition at line 69 of file GridMapBase.h.
|
inline |
Definition at line 241 of file GridMapBase.h.
|
inline |
Definition at line 246 of file GridMapBase.h.
|
inline |
Definition at line 161 of file GridMapBase.h.
|
inline |
Set the map transformations
xWorld | The origin of the map coordinate system on the x axis in world coordinates |
yWorld | The origin of the map coordinate system on the y axis in world coordinates |
The | cell length of the grid map |
Definition at line 265 of file GridMapBase.h.
|
inline |
Definition at line 328 of file GridMapBase.h.
|
private |
Definition at line 399 of file GridMapBase.h.
|
protected |
Map representation used with plain pointer array.
Definition at line 387 of file GridMapBase.h.
|
protected |
Definition at line 395 of file GridMapBase.h.
|
protected |
Homogenous 2D transform from world to map coordinates.
Definition at line 393 of file GridMapBase.h.
|
protected |
Scaling factor from world to map.
Definition at line 389 of file GridMapBase.h.
|
protected |
Definition at line 396 of file GridMapBase.h.
|
protected |
Homogenous 2D transform from map to world coordinates.
Definition at line 391 of file GridMapBase.h.
|
protected |
Homogenous 3D transform from map to world coordinates.
Definition at line 392 of file GridMapBase.h.