38 #ifndef DYNAMICEDTOCTOMAP_H_ 39 #define DYNAMICEDTOCTOMAP_H_ 60 virtual void update(
bool updateRealDist=
true);
int getSquaredDistanceInCells(const octomap::point3d &p) const
retrieves squared distance in cells at point. Returns DynamicEDTOctomap::distanceInCellsValue_Error i...
bool checkConsistency() const
Brute force method used for debug purposes. Checks occupancy state consistency between octomap and in...
A DynamicEDTOctomap object connects a DynamicEDT3D object to an octomap.
int getSquaredMaxDistCells() const
retrieve squared maximum distance value in grid cells
virtual ~DynamicEDTOctomap()
float getMaxDist() const
retrieve maximum distance value
void mapToWorld(int x, int y, int z, octomap::point3d &p) const
void worldToMap(const octomap::point3d &p, int &x, int &y, int &z) const
void getDistanceAndClosestObstacle_unsafe(const octomap::point3d &p, float &distance, octomap::point3d &closestObstacle) const
DynamicEDTOctomap(float maxdist, octomap::OcTree *_octree, octomap::point3d bbxMin, octomap::point3d bbxMax, bool treatUnknownAsOccupied)
octomap::OcTreeKey boundingBoxMaxKey
float getDistance_unsafe(const octomap::point3d &p) const
int getSquaredDistanceInCells_unsafe(const octomap::point3d &p) const
static float distanceValue_Error
distance value returned when requesting distance for a cell outside the map
void getDistanceAndClosestObstacle(const octomap::point3d &p, float &distance, octomap::point3d &closestObstacle) const
A DynamicEDT3D object computes and updates a 3D distance map.
void insertMaxDepthLeafAtInitialize(octomap::OcTreeKey key)
float getDistance(const octomap::point3d &p) const
retrieves distance at point. Returns DynamicEDTOctomap::distanceValue_Error if point is outside the m...
virtual void update(bool updateRealDist=true)
static int distanceInCellsValue_Error
distance value returned when requesting distance in cell units for a cell outside the map ...
double getResolution() const
void initializeOcTree(octomap::point3d bbxMin, octomap::point3d bbxMax)
octomap::OcTreeKey boundingBoxMinKey
void updateMaxDepthLeaf(octomap::OcTreeKey &key, bool occupied)