26 namespace localization {
28 namespace pyramid_map {
38 bool create_map_cells =
true);
54 unsigned char intensity,
unsigned int level = 0);
60 const std::vector<unsigned char>& intensity,
61 unsigned int level = 0);
66 unsigned int* x,
unsigned int* y)
const;
69 unsigned int y)
const;
72 unsigned int* y)
const;
74 unsigned int* y)
const;
81 unsigned int level = 0)
const;
85 unsigned int level = 0)
const;
89 unsigned int level = 0)
const;
93 unsigned int level = 0)
const;
97 unsigned int level = 0)
const;
101 unsigned int level = 0)
const;
105 unsigned int level = 0)
const;
110 unsigned int level = 0)
const;
114 unsigned int level = 0)
const;
118 unsigned int level = 0)
const;
122 unsigned int level = 0)
const;
126 unsigned int level = 0)
const;
130 unsigned int level = 0)
const;
134 unsigned int level = 0)
const;
140 std::vector<float> resolutions_mr_;
void BottomUpBase()
Propagate the data to the coarse resolution. only update count, intensity, intensity var and altitude...
double ComputeMeanIntensity(unsigned int level=0)
Compute mean intensity.
float GetIntensity(const Eigen::Vector3d &coordinate, unsigned int level=0) const
Given the 3D global coordinate, get the map cell intensity without check.
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: pyramid_map_node.h:30
Eigen::Vector2d Vector2d
Definition: base_map_fwd.h:36
float GetAltitude(const Eigen::Vector3d &coordinate, unsigned int level=0) const
Given the 3D global coordinate, get the map cell's average altitude without check.
bool GetCoordinate(const Eigen::Vector2d &coordinate, unsigned int level, unsigned int *x, unsigned int *y) const
Given the global coordinate, get the local 2D coordinate of the map cell matrix. <return> If global c...
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.
Eigen::Vector3d Vector3d
Definition: frame_transform.h:27
float GetAltitudeVar(const Eigen::Vector3d &coordinate, unsigned int level=0) const
Given the 3D global coordinate, get the map cell's variance of the altitude without check...
unsigned int GetGroundCount(const Eigen::Vector3d &coordinate, unsigned int level=0) const
Given the 3D global coordinate, get the map cell's count of the ground samples without 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...
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.
void BottomUpSafe()
Propagate the data to the coarse resolution by check.
The data structure of a Node in the map.
Definition: base_map_node.h:37
unsigned int GetCount(const Eigen::Vector3d &coordinate, unsigned int level=0) const
Given the 3D global coordinate, get the map cell's count of the samples without check.
bool AddValueIfInBound(const Eigen::Vector3d &coordinate, unsigned char intensity, unsigned int level=0)
Add the value of a pixel in the map node if the pixel in the node.
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.
float GetGroundAltitude(const Eigen::Vector3d &coordinate, unsigned int level=0) const
Given the 3D global coordinate, get the map cell's average ground altitude without check...
float GetIntensitySafe(const Eigen::Vector3d &coordinate, unsigned int level=0) const
Given the 3D global coordinate, get the map cell intensity 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.
The options of the reflectance map.
Definition: base_map_config.h:42
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 GetIntensityVar(const Eigen::Vector3d &coordinate, unsigned int level=0) const
Given the 3D global coordinate, get the map cell variance of the intensity without check...
Definition: base_map_node_index.h:33
virtual void Init(const BaseMapConfig *map_config)
Initialize the map node. Call this function first before use it!