Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes | List of all members
UnboundedPlainGridMap Class Reference

#include <plain_grid_map.h>

Inheritance diagram for UnboundedPlainGridMap:
Inheritance graph
[legend]

Public Member Functions

bool has_cell (const Coord &) const override
 
void load_state (const std::vector< char > &data) override
 
const GridCelloperator[] (const Coord &ec) const override
 
Coord origin () const override
 
void reset (const Coord &area_id, const GridCell &new_area) override
 
std::vector< char > save_state () const override
 
 UnboundedPlainGridMap (std::shared_ptr< GridCell > prototype, const GridMapParams &params=MapValues::gmp)
 
void update (const Coord &area_id, const AreaOccupancyObservation &aoo) override
 Updates area with a given observation. More...
 
- Public Member Functions inherited from PlainGridMap
 PlainGridMap (std::shared_ptr< GridCell > prototype, const GridMapParams &params=MapValues::gmp)
 
- Public Member Functions inherited from GridMap
 GridMap (std::shared_ptr< GridCell > prototype, const GridMapParams &params=MapValues::gmp)
 
std::unique_ptr< GridCellnew_cell () const
 
double occupancy (const Coord &area_id) const override
 Returns known information about the occupancy of a given area. More...
 
- Public Member Functions inherited from RegularSquaresGrid
Point2D cell_to_world (const Coord &cell) const
 
virtual int height () const
 
Coord internal2external (const Coord &coord) const
 
RegularSquaresGridoperator= (const RegularSquaresGrid &grid)=default
 
RegularSquaresGridoperator= (RegularSquaresGrid &&grid)=default
 
 RegularSquaresGrid (int w, int h, double scale)
 
 RegularSquaresGrid (const RegularSquaresGrid &grid)=default
 
 RegularSquaresGrid (RegularSquaresGrid &&grid)=default
 
virtual void rescale (double)
 
virtual double scale () const
 
virtual int width () const
 
Rectangle world_cell_bounds (const Coord &coord) const
 
Coord world_to_cell (const Point2D &pt) const
 
Coord world_to_cell (double x, double y) const
 
Coord world_to_cell (double x, double y, double scale) const
 
std::vector< Coordworld_to_cells (const Segment2D &s) const
 
virtual ~RegularSquaresGrid ()=default
 

Protected Member Functions

std::tuple< unsigned, unsigned > determine_cells_nm (int min, int val, int max) const
 
bool ensure_inside (const Coord &c)
 
- Protected Member Functions inherited from PlainGridMap
const GridCellcell_internal (const Coord &ic) const
 
- Protected Member Functions inherited from GridMap
std::shared_ptr< GridCellcell_prototype () const
 
- Protected Member Functions inherited from RegularSquaresGrid
Coord external2internal (const Coord &coord) const
 
bool has_internal_cell (const Coord &c) const
 
void set_height (unsigned h)
 
void set_scale (double s)
 
void set_width (unsigned w)
 

Private Attributes

Coord _origin
 
std::shared_ptr< GridCell_unknown_cell
 

Static Private Attributes

static constexpr double Expansion_Rate = 1.2
 

Additional Inherited Members

- Public Types inherited from RegularSquaresGrid
using Coord = DiscretePoint2D
 
- Static Public Attributes inherited from RegularSquaresGrid
static constexpr double Dbl_Inf = std::numeric_limits<double>::infinity()
 
- Protected Attributes inherited from PlainGridMap
std::vector< std::vector< std::unique_ptr< GridCell > > > _cells
 

Detailed Description

Definition at line 43 of file plain_grid_map.h.

Constructor & Destructor Documentation

UnboundedPlainGridMap::UnboundedPlainGridMap ( std::shared_ptr< GridCell prototype,
const GridMapParams params = MapValues::gmp 
)
inline

Definition at line 47 of file plain_grid_map.h.

Member Function Documentation

std::tuple<unsigned, unsigned> UnboundedPlainGridMap::determine_cells_nm ( int  min,
int  val,
int  max 
) const
inlineprotected

Definition at line 169 of file plain_grid_map.h.

bool UnboundedPlainGridMap::ensure_inside ( const Coord c)
inlineprotected

Definition at line 127 of file plain_grid_map.h.

bool UnboundedPlainGridMap::has_cell ( const Coord ) const
inlineoverridevirtual

Reimplemented from RegularSquaresGrid.

Definition at line 71 of file plain_grid_map.h.

void UnboundedPlainGridMap::load_state ( const std::vector< char > &  data)
inlineoverridevirtual

Reimplemented from GridMap.

Definition at line 94 of file plain_grid_map.h.

const GridCell& UnboundedPlainGridMap::operator[] ( const Coord ec) const
inlineoverridevirtual

Reimplemented from PlainGridMap.

Definition at line 63 of file plain_grid_map.h.

Coord UnboundedPlainGridMap::origin ( ) const
inlineoverridevirtual

Reimplemented from RegularSquaresGrid.

Definition at line 69 of file plain_grid_map.h.

void UnboundedPlainGridMap::reset ( const Coord area_id,
const GridCell new_area 
)
inlineoverridevirtual

Reimplemented from GridMap.

Definition at line 58 of file plain_grid_map.h.

std::vector<char> UnboundedPlainGridMap::save_state ( ) const
inlineoverridevirtual

Reimplemented from GridMap.

Definition at line 73 of file plain_grid_map.h.

void UnboundedPlainGridMap::update ( const Coord ,
const AreaOccupancyObservation  
)
inlineoverridevirtual

Updates area with a given observation.

Reimplemented from GridMap.

Definition at line 52 of file plain_grid_map.h.

Member Data Documentation

Coord UnboundedPlainGridMap::_origin
private

Definition at line 182 of file plain_grid_map.h.

std::shared_ptr<GridCell> UnboundedPlainGridMap::_unknown_cell
private

Definition at line 183 of file plain_grid_map.h.

constexpr double UnboundedPlainGridMap::Expansion_Rate = 1.2
staticprivate

Definition at line 45 of file plain_grid_map.h.


The documentation for this class was generated from the following file:


slam_constructor
Author(s): JetBrains Research, OSLL team
autogenerated on Mon Jun 10 2019 15:08:26