Go to the documentation of this file.
34 #ifndef OCTOMAP_ABSTRACT_OCCUPANCY_OCTREE_H
35 #define OCTOMAP_ABSTRACT_OCCUPANCY_OCTREE_H
115 return (occupancyNode->
getLogOdds() >= this->occ_prob_thres_log);
120 return (occupancyNode.
getLogOdds() >= this->occ_prob_thres_log);
125 return (occupancyNode->
getLogOdds() >= this->clamping_thres_max
126 || occupancyNode->
getLogOdds() <= this->clamping_thres_min);
131 return (occupancyNode.
getLogOdds() >= this->clamping_thres_max
132 || occupancyNode.
getLogOdds() <= this->clamping_thres_min);
void setProbMiss(double prob)
sets the probability for a "miss" (will be converted to logodds) - sensor model
bool writeBinaryConst(const std::string &filename) const
virtual std::ostream & writeBinaryData(std::ostream &s) const =0
Writes the actual data, implemented in OccupancyOcTreeBase::writeBinaryData()
float getClampingThresMinLog() const
double getClampingThresMin() const
static const std::string binaryFileHeader
void setOccupancyThres(double prob)
sets the threshold for occupancy (sensor model)
double getOccupancyThres() const
AbstractOccupancyOcTree()
double probability(double logodds)
compute probability from logodds:
bool readBinary(std::istream &s)
virtual std::istream & readBinaryData(std::istream &s)=0
Reads the actual data, implemented in OccupancyOcTreeBase::readBinaryData()
This class represents a three-dimensional vector.
float getOccupancyThresLog() const
bool readBinaryLegacyHeader(std::istream &s, unsigned int &size, double &res)
Try to read the old binary format for conversion, will be removed in the future.
bool isNodeOccupied(const OcTreeNode *occupancyNode) const
queries whether a node is occupied according to the tree's parameter for "occupancy"
virtual ~AbstractOccupancyOcTree()
void setClampingThresMin(double thresProb)
sets the minimum threshold for occupancy clamping (sensor model)
double getClampingThresMax() const
bool isNodeAtThreshold(const OcTreeNode *occupancyNode) const
queries whether a node is at the clamping threshold according to the tree's parameter
void setClampingThresMax(double thresProb)
sets the maximum threshold for occupancy clamping (sensor model)
void setProbHit(double prob)
sets the probability for a "hit" (will be converted to logodds) - sensor model
float getProbHitLog() const
double getProbHit() const
bool isNodeOccupied(const OcTreeNode &occupancyNode) const
queries whether a node is occupied according to the tree's parameter for "occupancy"
virtual size_t size() const =0
bool isNodeAtThreshold(const OcTreeNode &occupancyNode) const
queries whether a node is at the clamping threshold according to the tree's parameter
double getProbMiss() const
float logodds(double probability)
compute log-odds from probability:
float getProbMissLog() const
virtual void toMaxLikelihood()=0
virtual OcTreeNode * updateNode(const OcTreeKey &key, float log_odds_update, bool lazy_eval=false)=0
float getClampingThresMaxLog() const
bool writeBinary(const std::string &filename)
octomap
Author(s): Kai M. Wurm
, Armin Hornung
autogenerated on Tue Dec 12 2023 03:39:40