1 #ifndef SLAM_CTOR_CORE_STATE_DATA_H 2 #define SLAM_CTOR_CORE_STATE_DATA_H 5 #include "../geometry_utils.h" 12 constexpr
Occupancy(
double prob = 0,
double quality = 0)
13 : prob_occ(prob), estimation_quality(quality) {}
24 return !std::isnan(prob_occ) && !std::isnan(estimation_quality);
29 std::numeric_limits<double>::quiet_NaN()};
37 return stream <<
"invalid";
CONSTEXPR bool are_equal(const T &a, const T &b, const T &eps)
bool operator==(const Occupancy &that) const
static Occupancy invalid()
double estimation_quality
std::ostream & operator<<(std::ostream &stream, const Occupancy &occ)
constexpr Occupancy(double prob=0, double quality=0)