Coverage Control Library
|
Class for Importance Density Function (IDF) for the world. More...
#include <world_idf.h>
Public Member Functions | |
WorldIDF (size_t sz) | |
WorldIDF (Parameters const ¶ms) | |
WorldIDF (Parameters const ¶ms, MapType const &world_map) | |
WorldIDF (Parameters const ¶ms, std::string const &file_name) | |
WorldIDF (WorldIDF const &other) | |
WorldIDF & | operator= (WorldIDF const &other) |
void | LoadMap (std::string const &file_name) |
void | AddUniformDistributionPolygon (PolygonFeature const &poly_feature) |
void | AddNormalDistribution (BivariateNormalDistribution const &distribution) |
void | AddNormalDistribution (std::vector< BivariateNormalDistribution > const &dists) |
void | GenerateMap () |
int | WriteWorldMap (std::string const &file_name) const |
void | GetSubWorldMap (Point2 const &pos, int const sensor_size, MapType &submap) const |
void | PrintMapSize () const |
auto | GetNormalizationFactor () const |
const MapType & | GetWorldMap () const |
MapType & | GetWorldMapMutable () |
int | WriteDistributions (std::string const &file_name) const |
auto | GetNumFeatures () const |
void | GenerateMapCPU () |
Class for Importance Density Function (IDF) for the world.
This class contains the world IDF as a 2D map. The world IDF is computed by integrating the normal distributions over the world. The world IDF is used to compute the importance of each cell in the world. Can use CUDA for faster computation of cell importance.
Definition at line 61 of file world_idf.h.
|
inlineexplicit |
Definition at line 103 of file world_idf.h.
|
inlineexplicit |
Definition at line 112 of file world_idf.h.
|
inline |
Definition at line 116 of file world_idf.h.
|
inline |
Definition at line 130 of file world_idf.h.
Copy constructor to handle deep copy of the world map
Definition at line 174 of file world_idf.h.
|
inline |
Add Normal distribution to world IDF
Definition at line 214 of file world_idf.h.
|
inline |
Add Normal distributions to world IDF
Definition at line 219 of file world_idf.h.
|
inline |
Add a uniform distribution over a polygon to world IDF
Definition at line 209 of file world_idf.h.
|
inline |
Definition at line 227 of file world_idf.h.
void GenerateMapCPU | ( | ) |
Fills in values of the world_map_ with the total importance for each cell
Definition at line 41 of file world_idf.cpp.
|
inline |
Definition at line 256 of file world_idf.h.
|
inline |
Definition at line 264 of file world_idf.h.
Definition at line 245 of file world_idf.h.
|
inline |
Definition at line 258 of file world_idf.h.
|
inline |
Definition at line 260 of file world_idf.h.
|
inline |
Definition at line 195 of file world_idf.h.
Definition at line 183 of file world_idf.h.
|
inline |
Definition at line 251 of file world_idf.h.
int WriteDistributions | ( | std::string const & | file_name | ) | const |
Definition at line 166 of file world_idf.cpp.
|
inline |
Write the world map to a file
Definition at line 241 of file world_idf.h.