#include <rescalable_caching_grid_map.h>
Public Member Functions | |
unsigned | coarsest_scale_id () const |
bool | has_cell (const Coord &c) const override |
int | height () const override |
RescalableCachingGridMap & | operator= (const RescalableCachingGridMap &)=delete |
RescalableCachingGridMap & | operator= (RescalableCachingGridMap &&)=default |
const GridCell & | operator[] (const Coord &coord) const override |
Coord | origin () const override |
RescalableCachingGridMap (std::shared_ptr< GridCell > prototype, const GridMapParams ¶ms=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 ¶ms=MapValues::gmp) | |
virtual void | load_state (const std::vector< char > &) |
std::unique_ptr< GridCell > | new_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 |
RegularSquaresGrid & | operator= (const RegularSquaresGrid &grid)=default |
RegularSquaresGrid & | operator= (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< Coord > | world_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 GridMap & | active_map () const |
GridMap & | active_map () |
void | ensure_map_cache_is_continuous () const |
const GridMap & | map (unsigned scale_id) const |
GridMap & | map (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< GridCell > | cell_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) |
Definition at line 14 of file rescalable_caching_grid_map.h.
|
private |
Definition at line 16 of file rescalable_caching_grid_map.h.
|
inline |
Definition at line 22 of file rescalable_caching_grid_map.h.
|
delete |
|
default |
|
inlineprivate |
Definition at line 142 of file rescalable_caching_grid_map.h.
|
inlineprivate |
Definition at line 146 of file rescalable_caching_grid_map.h.
|
inline |
Definition at line 55 of file rescalable_caching_grid_map.h.
|
inlineprivate |
Definition at line 151 of file rescalable_caching_grid_map.h.
|
inlinestatic |
Definition at line 54 of file rescalable_caching_grid_map.h.
|
inlineoverridevirtual |
Reimplemented from RegularSquaresGrid.
Definition at line 70 of file rescalable_caching_grid_map.h.
|
inlineoverridevirtual |
Reimplemented from RegularSquaresGrid.
Definition at line 68 of file rescalable_caching_grid_map.h.
|
inlineprivate |
Definition at line 133 of file rescalable_caching_grid_map.h.
|
inlineprivate |
Definition at line 137 of file rescalable_caching_grid_map.h.
|
inlineprivate |
Definition at line 109 of file rescalable_caching_grid_map.h.
|
delete |
|
default |
|
inlineoverridevirtual |
Implements GridMap.
Definition at line 91 of file rescalable_caching_grid_map.h.
|
inlineoverridevirtual |
Reimplemented from RegularSquaresGrid.
Definition at line 66 of file rescalable_caching_grid_map.h.
|
inlineoverridevirtual |
Reimplemented from RegularSquaresGrid.
Definition at line 74 of file rescalable_caching_grid_map.h.
|
inlineoverridevirtual |
Reimplemented from GridMap.
Definition at line 101 of file rescalable_caching_grid_map.h.
|
inlineoverridevirtual |
Reimplemented from RegularSquaresGrid.
Definition at line 69 of file rescalable_caching_grid_map.h.
|
inline |
Definition at line 52 of file rescalable_caching_grid_map.h.
|
inline |
Definition at line 47 of file rescalable_caching_grid_map.h.
|
inline |
Definition at line 57 of file rescalable_caching_grid_map.h.
|
inlineoverridevirtual |
Updates area with a given observation.
Reimplemented from GridMap.
Definition at line 95 of file rescalable_caching_grid_map.h.
|
inlineoverridevirtual |
Reimplemented from RegularSquaresGrid.
Definition at line 67 of file rescalable_caching_grid_map.h.
|
private |
Definition at line 176 of file rescalable_caching_grid_map.h.
|
mutableprivate |
Definition at line 178 of file rescalable_caching_grid_map.h.
|
private |
Definition at line 177 of file rescalable_caching_grid_map.h.
|
staticprivate |
Definition at line 18 of file rescalable_caching_grid_map.h.
|
staticprivate |
Definition at line 18 of file rescalable_caching_grid_map.h.
|
static |
Definition at line 20 of file rescalable_caching_grid_map.h.