Go to the documentation of this file.
38 #ifndef _DYNAMICEDT3D_H_
39 #define _DYNAMICEDT3D_H_
67 virtual void update(
bool updateRealDist=
true);
110 inline void inspectCellRaise(
int &nx,
int &ny,
int &nz,
bool updateRealDist);
119 inline bool isOccupied(
int &x,
int &y,
int &z, dataCell &c);
bool isOccupied(int x, int y, int z) const
checks whether the specficied location is occupied
void raiseCell(INTPOINT3D &p, dataCell &c, bool updateRealDist)
static float distanceValue_Error
distance value returned when requesting distance for a cell outside the map
void initializeMap(int _sizeX, int _sizeY, int sizeZ, bool ***_gridMap)
Initialization with a given binary map (false==free, true==occupied)
void clearCell(int x, int y, int z)
remove an obstacle at the specified cell coordinate
void removeObstacle(int x, int y, int z)
void setObstacle(int x, int y, int z)
int getSQCellDistance(int x, int y, int z) const
returns the squared obstacle distance in cell units at the specified location
static int distanceInCellsValue_Error
distance value returned when requesting distance in cell units for a cell outside the map
DynamicEDT3D(int _maxdist_squared)
std::vector< INTPOINT3D > addList
float getDistance(int x, int y, int z) const
returns the obstacle distance at the specified location
void inspectCellPropagate(int &nx, int &ny, int &nz, dataCell &c, bool updateRealDist)
void commitAndColorize(bool updateRealDist=true)
unsigned int getSizeY() const
returns the y size of the workspace/map
std::vector< INTPOINT3D > removeList
void occupyCell(int x, int y, int z)
add an obstacle at the specified cell coordinate
void inspectCellRaise(int &nx, int &ny, int &nz, bool updateRealDist)
unsigned int getSizeX() const
returns the x size of the workspace/map
A DynamicEDT3D object computes and updates a 3D distance map.
unsigned int getSizeZ() const
returns the z size of the workspace/map
std::vector< INTPOINT3D > lastObstacles
BucketPrioQueue< INTPOINT3D > open
virtual void update(bool updateRealDist=true)
update distance map to reflect the changes
void propagateCell(INTPOINT3D &p, dataCell &c, bool updateRealDist)
void exchangeObstacles(std::vector< INTPOINT3D > newObstacles)
remove old dynamic obstacles and add the new ones
void initializeEmpty(int _sizeX, int _sizeY, int sizeZ, bool initGridMap=true)
Initialization with an empty map.
INTPOINT3D getClosestObstacle(int x, int y, int z) const
gets the closest occupied cell for that location
dynamicEDT3D
Author(s): Christoph Sprunk
autogenerated on Tue Dec 12 2023 03:39:46