1 #ifndef SLAM_CTOR_CORE_GRID_CELL_H 2 #define SLAM_CTOR_CORE_GRID_CELL_H 5 #include "../math_utils.h" 6 #include "../states/sensor_data.h" 7 #include "../serialization.h" 19 explicit operator bool()
const {
return are_equal(
double(*
this), 0.0); }
22 virtual std::unique_ptr<GridCell>
clone()
const {
23 return std::make_unique<GridCell>(*this);
40 virtual size_t deserialize(
const std::vector<char>& data,
size_t pos = 0) {
virtual double discrepancy(const AreaOccupancyObservation &aoo) const
CONSTEXPR bool are_equal(const T &a, const T &b, const T &eps)
virtual std::unique_ptr< GridCell > clone() const
virtual const Occupancy & occupancy() const
virtual void operator+=(const AreaOccupancyObservation &aoo)
virtual ~GridCell()=default
double estimation_quality
GridCell(const Occupancy &occ)
virtual size_t deserialize(const std::vector< char > &data, size_t pos=0)
virtual std::vector< char > serialize() const
std::vector< char > result() const
GridCell & operator=(const GridCell &gc)=default