25 namespace localization {
44 unsigned char intensity);
51 unsigned char intensity);
55 std::vector<unsigned char>* values)
const;
59 std::vector<float>* vars)
const;
63 std::vector<float>* alts)
const;
67 std::vector<float>* alt_vars)
const;
71 std::vector<unsigned int>* counts)
const;
88 unsigned char GetValue(
unsigned int row,
unsigned int col)
const {
90 ->GetMapCell(row, col)
94 float GetVar(
unsigned int row,
unsigned int col)
const {
96 ->GetMapCell(row, col)
100 float GetAlt(
unsigned int row,
unsigned int col)
const {
102 ->GetMapCell(row, col)
106 float GetAltVar(
unsigned int row,
unsigned int col)
const {
108 ->GetMapCell(row, col)
112 unsigned int GetCount(
unsigned int row,
unsigned int col)
const {
114 ->GetMapCell(row, col)
119 unsigned int col)
const {
121 ->GetMapCell(row, col)
127 ->GetMapCell(row, col)
void SetValueLayer(const Eigen::Vector3d &coordinate, unsigned char intensity)
Set the value of a pixel in a layer in the map node.
float GetMinAltitude() const
Get the min altitude of point cloud in the node.
Definition: lossless_map_node.h:132
void SetValue(const Eigen::Vector3d &coordinate, unsigned char intensity)
Set the value of a pixel in the map node.
Definition: lossless_map_matrix.h:33
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
const LosslessMapSingleCell & GetFirstMapCell(unsigned int row, unsigned int col) const
Get the constant map cell given the coordinate.
Definition: lossless_map_node.h:118
void GetAlt(const Eigen::Vector3d &coordinate, std::vector< float > *alts) const
Given the 3D global coordinate, get the map cell's average altitude of each layer.
void GetVar(const Eigen::Vector3d &coordinate, std::vector< float > *vars) const
Given the 3D global coordinate, get the map cell variance of the intensity of each layer...
Eigen::Vector3d Vector3d
Definition: frame_transform.h:27
void SetMinAltitude(float altitude)
Set the min altitude of point cloud in the node.
Definition: lossless_map_node.h:134
LosslessMapSingleCell & GetFirstMapCell(unsigned int row, unsigned int col)
Definition: lossless_map_node.h:124
void GetCount(const Eigen::Vector3d &coordinate, std::vector< unsigned int > *counts) const
Given the 3D global coordinate, get the map cell's count of the samples of each layer.
Definition: lossless_map_matrix.h:143
Definition: lossless_map_node.h:28
float GetAltVar(unsigned int row, unsigned int col) const
Get the map cell's variance of the altitude.
Definition: lossless_map_node.h:106
float GetAlt(unsigned int row, unsigned int col) const
Get the map cell's average altitude.
Definition: lossless_map_node.h:100
void GetAltVar(const Eigen::Vector3d &coordinate, std::vector< float > *alt_vars) const
Given the 3D global coordinate, get the map cell's variance of the altitude of each layer...
float min_altitude_
The min altitude of point cloud in the node.
Definition: lossless_map_node.h:138
BaseMapMatrix * map_matrix_
The data structure of the map datas, which is a matrix.
Definition: base_map_node.h:178
unsigned int GetCount(unsigned int row, unsigned int col) const
Get the map cell's count of the samples.
Definition: lossless_map_node.h:112
unsigned char GetValue(unsigned int row, unsigned int col) const
Get the map cell average intensity.
Definition: lossless_map_node.h:88
void GetValue(const Eigen::Vector3d &coordinate, std::vector< unsigned char > *values) const
Given the 3D global coordinate, get the map cell average intensity of each layer. ...
bool SetValueIfInBound(const Eigen::Vector3d &coordinate, unsigned char intensity)
Set the value of a pixel in the map node if the pixel in the node.
float GetVar(unsigned int row, unsigned int col) const
Get the map cell variance of the intensity.
Definition: lossless_map_node.h:94
The data structure of a Node in the map.
Definition: base_map_node.h:32