44 int main(
int argc,
char *argv[] ) {
46 std::cout<<
"usage: "<<argv[0]<<
" <octoMap.bt>"<<std::endl;
56 std::cout<<
"read in tree, "<<tree->
getNumLeafNodes()<<
" leaves "<<std::endl;
66 bool unknownAsOccupied =
true;
67 unknownAsOccupied =
false;
82 p.
x() = min.
x() + 0.3 * (max.
x() - min.
x());
83 p.
y() = min.
y() + 0.6 * (max.
y() - min.
y());
84 p.
z() = min.
z() + 0.5 * (max.
z() - min.
z());
91 std::cout<<
"\n\ndistance at point "<<p.
x()<<
","<<p.
y()<<
","<<p.
z()<<
" is "<<distance<<std::endl;
93 std::cout<<
"closest obstacle to "<<p.
x()<<
","<<p.
y()<<
","<<p.
z()<<
" is at "<<closestObst.
x()<<
","<<closestObst.
y()<<
","<<closestObst.
z()<<std::endl;
size_t getNumLeafNodes() const
A DynamicEDTOctomap object connects a DynamicEDT3D object to an octomap.
float getMaxDist() const
retrieve maximum distance value
int main(int argc, char *argv[])
virtual void getMetricMin(double &x, double &y, double &z)
void getDistanceAndClosestObstacle(const octomap::point3d &p, float &distance, octomap::point3d &closestObstacle) const
virtual void update(bool updateRealDist=true)
virtual void getMetricMax(double &x, double &y, double &z)
bool readBinary(std::istream &s)