Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
RescalableCachingGridMap< BackGridMap > Class Template Reference

#include <rescalable_caching_grid_map.h>

Inheritance diagram for RescalableCachingGridMap< BackGridMap >:
Inheritance graph
[legend]

Public Member Functions

unsigned coarsest_scale_id () const
 
bool has_cell (const Coord &c) const override
 
int height () const override
 
RescalableCachingGridMapoperator= (const RescalableCachingGridMap &)=delete
 
RescalableCachingGridMapoperator= (RescalableCachingGridMap &&)=default
 
const GridCelloperator[] (const Coord &coord) const override
 
Coord origin () const override
 
 RescalableCachingGridMap (std::shared_ptr< GridCell > prototype, const GridMapParams &params=MapValues::gmp)
 
 RescalableCachingGridMap (const RescalableCachingGridMap &)=delete
 
 RescalableCachingGridMap (RescalableCachingGridMap &&)=default
 
void rescale (double target_scale) override
 
void reset (const Coord &area_id, const GridCell &area) override
 
double scale () const override
 
unsigned scale_id () const
 
unsigned scales_nm () const
 
void set_scale_id (unsigned scale_id)
 
void update (const Coord &area_id, const AreaOccupancyObservation &aoo) override
 Updates area with a given observation. More...
 
int width () const override
 
- 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
 
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
 
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
 

Static Public Member Functions

static constexpr unsigned finest_scale_id ()
 

Static Public Attributes

static constexpr unsigned Map_Scale_Factor = 2
 
- Static Public Attributes inherited from RegularSquaresGrid
static constexpr double Dbl_Inf = std::numeric_limits<double>::infinity()
 

Private Types

using MapCache = std::vector< std::unique_ptr< GridMap >>
 

Private Member Functions

const GridMapactive_map () const
 
GridMapactive_map ()
 
void ensure_map_cache_is_continuous () const
 
const GridMapmap (unsigned scale_id) const
 
GridMapmap (unsigned scale_id)
 
void on_area_update (const Coord &area_id)
 

Private Attributes

GridMap_active_map = nullptr
 
std::shared_ptr< MapCache_map_cache
 
unsigned _scale_id = -1
 

Static Private Attributes

static constexpr int Coarsest_Map_H = 1
 
static constexpr int Coarsest_Map_W = 1
 

Additional Inherited Members

- Public Types inherited from RegularSquaresGrid
using Coord = DiscretePoint2D
 
- 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)
 

Detailed Description

template<typename BackGridMap>
class RescalableCachingGridMap< BackGridMap >

Definition at line 14 of file rescalable_caching_grid_map.h.

Member Typedef Documentation

template<typename BackGridMap >
using RescalableCachingGridMap< BackGridMap >::MapCache = std::vector<std::unique_ptr<GridMap>>
private

Definition at line 16 of file rescalable_caching_grid_map.h.

Constructor & Destructor Documentation

template<typename BackGridMap >
RescalableCachingGridMap< BackGridMap >::RescalableCachingGridMap ( std::shared_ptr< GridCell prototype,
const GridMapParams params = MapValues::gmp 
)
inline

Definition at line 22 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
RescalableCachingGridMap< BackGridMap >::RescalableCachingGridMap ( const RescalableCachingGridMap< BackGridMap > &  )
delete
template<typename BackGridMap >
RescalableCachingGridMap< BackGridMap >::RescalableCachingGridMap ( RescalableCachingGridMap< BackGridMap > &&  )
default

Member Function Documentation

template<typename BackGridMap >
const GridMap& RescalableCachingGridMap< BackGridMap >::active_map ( ) const
inlineprivate

Definition at line 142 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
GridMap& RescalableCachingGridMap< BackGridMap >::active_map ( )
inlineprivate

Definition at line 146 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
unsigned RescalableCachingGridMap< BackGridMap >::coarsest_scale_id ( ) const
inline

Definition at line 55 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
void RescalableCachingGridMap< BackGridMap >::ensure_map_cache_is_continuous ( ) const
inlineprivate

Definition at line 151 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
static constexpr unsigned RescalableCachingGridMap< BackGridMap >::finest_scale_id ( )
inlinestatic

Definition at line 54 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
bool RescalableCachingGridMap< BackGridMap >::has_cell ( const Coord c) const
inlineoverridevirtual

Reimplemented from RegularSquaresGrid.

Definition at line 70 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
int RescalableCachingGridMap< BackGridMap >::height ( ) const
inlineoverridevirtual

Reimplemented from RegularSquaresGrid.

Definition at line 68 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
const GridMap& RescalableCachingGridMap< BackGridMap >::map ( unsigned  scale_id) const
inlineprivate

Definition at line 133 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
GridMap& RescalableCachingGridMap< BackGridMap >::map ( unsigned  scale_id)
inlineprivate

Definition at line 137 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
void RescalableCachingGridMap< BackGridMap >::on_area_update ( const Coord area_id)
inlineprivate

Definition at line 109 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
RescalableCachingGridMap& RescalableCachingGridMap< BackGridMap >::operator= ( const RescalableCachingGridMap< BackGridMap > &  )
delete
template<typename BackGridMap >
RescalableCachingGridMap& RescalableCachingGridMap< BackGridMap >::operator= ( RescalableCachingGridMap< BackGridMap > &&  )
default
template<typename BackGridMap >
const GridCell& RescalableCachingGridMap< BackGridMap >::operator[] ( const Coord coord) const
inlineoverridevirtual

Implements GridMap.

Definition at line 91 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
Coord RescalableCachingGridMap< BackGridMap >::origin ( ) const
inlineoverridevirtual

Reimplemented from RegularSquaresGrid.

Definition at line 66 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
void RescalableCachingGridMap< BackGridMap >::rescale ( double  target_scale)
inlineoverridevirtual

Reimplemented from RegularSquaresGrid.

Definition at line 74 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
void RescalableCachingGridMap< BackGridMap >::reset ( const Coord area_id,
const GridCell area 
)
inlineoverridevirtual

Reimplemented from GridMap.

Definition at line 101 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
double RescalableCachingGridMap< BackGridMap >::scale ( ) const
inlineoverridevirtual

Reimplemented from RegularSquaresGrid.

Definition at line 69 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
unsigned RescalableCachingGridMap< BackGridMap >::scale_id ( ) const
inline

Definition at line 52 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
unsigned RescalableCachingGridMap< BackGridMap >::scales_nm ( ) const
inline

Definition at line 47 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
void RescalableCachingGridMap< BackGridMap >::set_scale_id ( unsigned  scale_id)
inline

Definition at line 57 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
void RescalableCachingGridMap< BackGridMap >::update ( const Coord ,
const AreaOccupancyObservation  
)
inlineoverridevirtual

Updates area with a given observation.

Reimplemented from GridMap.

Definition at line 95 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
int RescalableCachingGridMap< BackGridMap >::width ( ) const
inlineoverridevirtual

Reimplemented from RegularSquaresGrid.

Definition at line 67 of file rescalable_caching_grid_map.h.

Member Data Documentation

template<typename BackGridMap >
GridMap* RescalableCachingGridMap< BackGridMap >::_active_map = nullptr
private

Definition at line 176 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
std::shared_ptr<MapCache> RescalableCachingGridMap< BackGridMap >::_map_cache
mutableprivate

Definition at line 178 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
unsigned RescalableCachingGridMap< BackGridMap >::_scale_id = -1
private

Definition at line 177 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
constexpr int RescalableCachingGridMap< BackGridMap >::Coarsest_Map_H = 1
staticprivate

Definition at line 18 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
constexpr int RescalableCachingGridMap< BackGridMap >::Coarsest_Map_W = 1
staticprivate

Definition at line 18 of file rescalable_caching_grid_map.h.

template<typename BackGridMap >
constexpr unsigned RescalableCachingGridMap< BackGridMap >::Map_Scale_Factor = 2
static

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