22namespace localization {
24namespace pyramid_map {
31 int zone_id,
unsigned int resolution_id,
34 resolution_id, zone_id);
40 int zone_id,
unsigned int resolution_id,
43 resolution_id, zone_id);
49 int zone_id,
unsigned int resolution_id,
52 resolution_id, zone_id);
58 int zone_id,
unsigned int resolution_id,
61 resolution_id, zone_id);
67 int zone_id,
unsigned int resolution_id,
70 resolution_id, zone_id);
76 int zone_id,
unsigned int resolution_id,
79 resolution_id, zone_id);
86 unsigned int resolution_id,
89 resolution_id, zone_id);
The data structure of the base map.
BaseMapNode * GetMapNodeSafe(const MapNodeIndex &index)
Return the map node, if it's not in the cache, safely load it.
const BaseMapConfig & GetMapConfig() const
Get the map config.
static MapNodeIndex GetMapNodeIndex(const BaseMapConfig &option, const Eigen::Vector3d &coordinate, unsigned int resolution_id, int zone_id)
Construct a map node index, given a global coordinate, eigen version.
float GetAltitudeVarSafe(const Eigen::Vector3d &coordinate, unsigned int level=0) const
Given the 3D global coordinate, get the map cell's variance of the altitude with check.
float GetAltitudeSafe(const Eigen::Vector3d &coordinate, unsigned int level=0) const
Given the 3D global coordinate, get the map cell's average altitude with check.
unsigned int GetGroundCountSafe(const Eigen::Vector3d &coordinate, unsigned int level=0) const
Given the 3D global coordinate, get the map cell's count of the ground samples with check.
unsigned int GetCountSafe(const Eigen::Vector3d &coordinate, unsigned int level=0) const
Given the 3D global coordinate, get the map cell's count of the samples with check.
float GetIntensitySafe(const Eigen::Vector3d &coordinate, unsigned int level=0) const
Given the 3D global coordinate, get the map cell intensity with check.
float GetIntensityVarSafe(const Eigen::Vector3d &coordinate, unsigned int level=0) const
Given the 3D global coordinate, get the map cell variance of the intensity with check.
float GetGroundAltitudeSafe(const Eigen::Vector3d &coordinate, unsigned int level=0) const
Given the 3D global coordinate, get the map cell's average ground altitude with check.
unsigned int GetGroundCountSafe(const Eigen::Vector3d &coordinate, int zone_id, unsigned int resolution_id, unsigned int level=0)
Get the number of ground samples in the map cell thread safely.
float GetAltitudeVarSafe(const Eigen::Vector3d &coordinate, int zone_id, unsigned int resolution_id, unsigned int level=0)
Given the 3D global coordinate, this function loads the corresponding map node in the cache thread sa...
PyramidMap(PyramidMapConfig *config)
float GetGroundAltitudeSafe(const Eigen::Vector3d &coordinate, int zone_id, unsigned int resolution_id, unsigned int level=0)
Given the 3D global coordinate, this function loads the corresponding map node in the cache thread sa...
float GetIntensityVarSafe(const Vector3d &coordinate, int zone_id, unsigned int resolution_id, unsigned int level=0)
Given the 3D global coordinate, this function loads the corresponding map node in the cache and retur...
unsigned int GetCountSafe(const Eigen::Vector3d &coordinate, int zone_id, unsigned int resolution_id, unsigned int level=0)
Get the number of samples in the map cell thread safely.
float GetAltitudeSafe(const Eigen::Vector3d &coordinate, int zone_id, unsigned int resolution_id, unsigned int level=0)
Given the 3D global coordinate, this function loads the corresponding map node in the cache thread sa...
float GetIntensitySafe(const Eigen::Vector3d &coordinate, int zone_id, unsigned int resolution_id, unsigned int level=0)
Given the 3D global coordinate, this function loads the corresponding map node in the cache thread sa...