25namespace localization {
37 void SetValue(
const Eigen::Vector3d& coordinate,
unsigned char intensity);
44 unsigned char intensity);
51 unsigned char intensity);
54 void GetValue(
const Eigen::Vector3d& coordinate,
55 std::vector<unsigned char>* values)
const;
58 void GetVar(
const Eigen::Vector3d& coordinate,
59 std::vector<float>* vars)
const;
62 void GetAlt(
const Eigen::Vector3d& coordinate,
63 std::vector<float>* alts)
const;
66 void GetAltVar(
const Eigen::Vector3d& coordinate,
67 std::vector<float>* alt_vars)
const;
70 void GetCount(
const Eigen::Vector3d& coordinate,
71 std::vector<unsigned int>* counts)
const;
74 unsigned char GetValue(
const Eigen::Vector3d& coordinate)
const;
77 float GetVar(
const Eigen::Vector3d& coordinate)
const;
80 float GetAlt(
const Eigen::Vector3d& coordinate)
const;
83 float GetAltVar(
const Eigen::Vector3d& coordinate)
const;
86 unsigned int GetCount(
const Eigen::Vector3d& coordinate)
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)
The data structure of a Node in the map.
BaseMapMatrix * map_matrix_
The data structure of the map datas, which is a matrix.
const LosslessMapSingleCell & GetFirstMapCell(unsigned int row, unsigned int col) const
Get the constant map cell given the coordinate.
float GetAltVar(unsigned int row, unsigned int col) const
Get the map cell's variance of the altitude
float GetMinAltitude() const
Get the min altitude of point cloud in the node.
float GetAlt(unsigned int row, unsigned int col) const
Get the map cell's average altitude.
float GetVar(unsigned int row, unsigned int col) const
Get the map cell variance of the intensity.
void SetValue(const Eigen::Vector3d &coordinate, unsigned char intensity)
Set the value of a pixel in the map node.
float min_altitude_
The min altitude of point cloud in the node.
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 SetValueLayer(const Eigen::Vector3d &coordinate, unsigned char intensity)
Set the value of a pixel in a layer in the map node.
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.
void SetMinAltitude(float altitude)
Set the min altitude of point cloud in the node.
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.
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.
LosslessMapSingleCell & GetFirstMapCell(unsigned int row, unsigned int col)
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.
unsigned char GetValue(unsigned int row, unsigned int col) const
Get the map cell average intensity.
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.
unsigned int GetCount(unsigned int row, unsigned int col) const
Get the map cell's count of the samples.