Main Page
Classes
Files
File List
File Members
src
core
maps
cell_occupancy_estimator.h
Go to the documentation of this file.
1
#ifndef SLAM_CTOR_CORE_CELL_OCCUPANCY_ESTIMATOR_H
2
#define SLAM_CTOR_CORE_CELL_OCCUPANCY_ESTIMATOR_H
3
4
#include "../geometry_utils.h"
5
#include "../states/state_data.h"
// the Occupancy class
6
7
class
CellOccupancyEstimator
{
8
public
:
9
CellOccupancyEstimator
(
const
Occupancy
& base_occ,
10
const
Occupancy
&
base_empty
):
11
_base_occ
(base_occ),
_base_empty
(base_empty) {}
12
virtual
~CellOccupancyEstimator
() =
default
;
13
virtual
Occupancy
estimate_occupancy
(
const
Segment2D
&beam,
14
const
Rectangle
&cell_bnds,
15
bool
is_occ) = 0;
16
protected
:
17
const
Occupancy
&
base_occupied
()
const
{
return
_base_occ
; }
18
const
Occupancy
&
base_empty
()
const
{
return
_base_empty
; }
19
private
:
20
Occupancy
_base_occ
,
_base_empty
;
21
};
22
23
#endif
CellOccupancyEstimator::estimate_occupancy
virtual Occupancy estimate_occupancy(const Segment2D &beam, const Rectangle &cell_bnds, bool is_occ)=0
Segment2D
Definition:
geometry_primitives.h:36
Occupancy
Definition:
state_data.h:7
CellOccupancyEstimator::CellOccupancyEstimator
CellOccupancyEstimator(const Occupancy &base_occ, const Occupancy &base_empty)
Definition:
cell_occupancy_estimator.h:9
CellOccupancyEstimator::base_empty
const Occupancy & base_empty() const
Definition:
cell_occupancy_estimator.h:18
CellOccupancyEstimator::_base_occ
Occupancy _base_occ
Definition:
cell_occupancy_estimator.h:20
Rectangle
Definition:
geometry_primitives.h:322
CellOccupancyEstimator::~CellOccupancyEstimator
virtual ~CellOccupancyEstimator()=default
CellOccupancyEstimator::_base_empty
Occupancy _base_empty
Definition:
cell_occupancy_estimator.h:20
CellOccupancyEstimator::base_occupied
const Occupancy & base_occupied() const
Definition:
cell_occupancy_estimator.h:17
CellOccupancyEstimator
Definition:
cell_occupancy_estimator.h:7
slam_constructor
Author(s): JetBrains Research, OSLL team
autogenerated on Mon Jun 10 2019 15:08:25