Main Page
Classes
Files
File List
File Members
src
core
maps
const_occupancy_estimator.h
Go to the documentation of this file.
1
#ifndef SLAM_CTOR_CORE_CONST_OCCUPANCY_ESTIMATOR_H
2
#define SLAM_CTOR_CORE_CONST_OCCUPANCY_ESTIMATOR_H
3
4
#include "
cell_occupancy_estimator.h
"
5
6
class
ConstOccupancyEstimator
:
public
CellOccupancyEstimator
{
7
public
:
8
ConstOccupancyEstimator
(
const
Occupancy
& base_occ,
9
const
Occupancy
&
base_empty
):
10
CellOccupancyEstimator
(base_occ, base_empty) {}
11
virtual
Occupancy
estimate_occupancy
(
const
Segment2D
&beam,
12
const
Rectangle
&cell_bnds,
13
bool
is_occ)
override
{
14
return
is_occ ?
base_occupied
() :
base_empty
();
15
}
16
17
};
18
19
#endif
ConstOccupancyEstimator::estimate_occupancy
virtual Occupancy estimate_occupancy(const Segment2D &beam, const Rectangle &cell_bnds, bool is_occ) override
Definition:
const_occupancy_estimator.h:11
Segment2D
Definition:
geometry_primitives.h:36
ConstOccupancyEstimator::ConstOccupancyEstimator
ConstOccupancyEstimator(const Occupancy &base_occ, const Occupancy &base_empty)
Definition:
const_occupancy_estimator.h:8
Occupancy
Definition:
state_data.h:7
ConstOccupancyEstimator
Definition:
const_occupancy_estimator.h:6
cell_occupancy_estimator.h
CellOccupancyEstimator::base_empty
const Occupancy & base_empty() const
Definition:
cell_occupancy_estimator.h:18
Rectangle
Definition:
geometry_primitives.h:322
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