29 #ifndef __GridMapLogOdds_h_ 30 #define __GridMapLogOdds_h_ 117 this->setUpdateFreeFactor(0.4
f);
118 this->setUpdateOccupiedFactor(0.6
f);
166 return odds / (odds + 1.0f);
189 logOddsFree = probToLogOdds(factor);
194 logOddsOccupied = probToLogOdds(factor);
201 float odds = prob / (1.0f - prob);
float probToLogOdds(float prob)
INLINE Rall1d< T, V, S > log(const Rall1d< T, V, S > &arg)
void setUpdateFreeFactor(float factor)
GridMapLogOddsFunctions()
void updateSetFree(LogOddsCell &cell) const
float getGridProbability(const LogOddsCell &cell) const
void setUpdateOccupiedFactor(float factor)
INLINE Rall1d< T, V, S > exp(const Rall1d< T, V, S > &arg)
float logOddsFree
< The log odds representation of probability used for updating cells as occupied
void updateUnsetFree(LogOddsCell &cell) const
void updateSetOccupied(LogOddsCell &cell) const
float logOddsVal
The log odds representation of occupancy probability.