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

#include <lazy_tiled_grid_map.h>

Inheritance diagram for LazyTiledGridMap:
Inheritance graph
[legend]

Classes

struct  Tile
 

Public Member Functions

 LazyTiledGridMap (std::shared_ptr< GridCell > prototype, const GridMapParams &params=MapValues::gmp)
 
const GridCelloperator[] (const Coord &c) const override
 
void reset (const Coord &area_id, const GridCell &new_area) override
 
void update (const Coord &area_id, const AreaOccupancyObservation &aoo) override
 Updates area with a given observation. More...
 
- Public Member Functions inherited from GridMap
 GridMap (std::shared_ptr< GridCell > prototype, const GridMapParams &params=MapValues::gmp)
 
virtual void load_state (const std::vector< char > &)
 
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...
 
virtual std::vector< char > save_state () const
 
- Public Member Functions inherited from RegularSquaresGrid
Point2D cell_to_world (const Coord &cell) const
 
virtual bool has_cell (const Coord &c) const
 
virtual int height () const
 
Coord internal2external (const Coord &coord) const
 
RegularSquaresGridoperator= (const RegularSquaresGrid &grid)=default
 
RegularSquaresGridoperator= (RegularSquaresGrid &&grid)=default
 
virtual DiscretePoint2D origin () const
 
 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

const GridCellcell_internal (const Coord &ic) const
 
void ensure_sole_owning (const Coord &area_id)
 
std::tuple< unsigned, unsigned > extra_tiles_nm (int min, int val, int max) const
 
const std::shared_ptr< GridCellunknown_cell () const
 
std::shared_ptr< Tileunknown_tile ()
 
- 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)
 

Protected Attributes

std::vector< std::shared_ptr< Tile > > _tiles
 
unsigned _tiles_nm_x
 
unsigned _tiles_nm_y
 

Static Protected Attributes

static constexpr unsigned Tile_Coord_Mask = Tile_Size - 1
 
static constexpr unsigned Tile_Size = 1 << Tile_Size_Bits
 
static constexpr unsigned Tile_Size_Bits = 7
 

Private Member Functions

std::shared_ptr< Tile > & tile (const Coord &c) const
 

Private Attributes

std::shared_ptr< GridCell_unknown_cell
 
std::shared_ptr< Tile_unknown_tile
 

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()
 

Detailed Description

Definition at line 18 of file lazy_tiled_grid_map.h.

Constructor & Destructor Documentation

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

Definition at line 26 of file lazy_tiled_grid_map.h.

Member Function Documentation

const GridCell& LazyTiledGridMap::cell_internal ( const Coord ic) const
inlineprotected

Definition at line 52 of file lazy_tiled_grid_map.h.

void LazyTiledGridMap::ensure_sole_owning ( const Coord area_id)
inlineprotected

Definition at line 56 of file lazy_tiled_grid_map.h.

std::tuple<unsigned, unsigned> LazyTiledGridMap::extra_tiles_nm ( int  min,
int  val,
int  max 
) const
inlineprotected

Definition at line 76 of file lazy_tiled_grid_map.h.

const GridCell& LazyTiledGridMap::operator[] ( const Coord c) const
inlineoverridevirtual

Implements GridMap.

Reimplemented in UnboundedLazyTiledGridMap.

Definition at line 46 of file lazy_tiled_grid_map.h.

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

Reimplemented from GridMap.

Reimplemented in UnboundedLazyTiledGridMap.

Definition at line 41 of file lazy_tiled_grid_map.h.

std::shared_ptr<Tile>& LazyTiledGridMap::tile ( const Coord c) const
inlineprivate

Definition at line 106 of file lazy_tiled_grid_map.h.

const std::shared_ptr<GridCell> LazyTiledGridMap::unknown_cell ( ) const
inlineprotected

Definition at line 72 of file lazy_tiled_grid_map.h.

std::shared_ptr<Tile> LazyTiledGridMap::unknown_tile ( )
inlineprotected

Definition at line 73 of file lazy_tiled_grid_map.h.

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

Updates area with a given observation.

Reimplemented from GridMap.

Reimplemented in UnboundedLazyTiledGridMap.

Definition at line 35 of file lazy_tiled_grid_map.h.

Member Data Documentation

std::vector<std::shared_ptr<Tile> > LazyTiledGridMap::_tiles
mutableprotected

Definition at line 116 of file lazy_tiled_grid_map.h.

unsigned LazyTiledGridMap::_tiles_nm_x
protected

Definition at line 115 of file lazy_tiled_grid_map.h.

unsigned LazyTiledGridMap::_tiles_nm_y
protected

Definition at line 115 of file lazy_tiled_grid_map.h.

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

Definition at line 112 of file lazy_tiled_grid_map.h.

std::shared_ptr<Tile> LazyTiledGridMap::_unknown_tile
private

Definition at line 113 of file lazy_tiled_grid_map.h.

constexpr unsigned LazyTiledGridMap::Tile_Coord_Mask = Tile_Size - 1
staticprotected

Definition at line 22 of file lazy_tiled_grid_map.h.

constexpr unsigned LazyTiledGridMap::Tile_Size = 1 << Tile_Size_Bits
staticprotected

Definition at line 21 of file lazy_tiled_grid_map.h.

constexpr unsigned LazyTiledGridMap::Tile_Size_Bits = 7
staticprotected

Definition at line 20 of file lazy_tiled_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