23namespace localization {
69 void Init(
unsigned int rows,
unsigned int cols);
70 void Reset(
unsigned int rows,
unsigned int cols);
75 virtual unsigned int LoadBinary(
unsigned char* buf);
81 unsigned int buf_size)
const;
The options of the reflectance map.
The data structure of the map cells in a map node.
unsigned char EncodeCount(const LossyMapCell2D &cell) const
virtual unsigned int LoadBinary(unsigned char *buf)
Load the map cell from a binary chunk.
unsigned int rows_
The number of rows.
LossyMapMatrix2D & operator=(const LossyMapMatrix2D &matrix)
virtual unsigned int CreateBinary(unsigned char *buf, unsigned int buf_size) const
Create the binary.
const float alt_ground_interval_
void DecodeCount(unsigned char data, LossyMapCell2D *cell) const
void DecodeAltitudeGround(uint16_t data, LossyMapCell2D *cell) const
virtual void GetIntensityImg(cv::Mat *intensity_img) const
get intensity image of node.
void DecodeVar(uint16_t data, LossyMapCell2D *cell) const
void DecodeAltitudeAvg(uint16_t data, LossyMapCell2D *cell) const
void DecodeIntensity(unsigned char data, LossyMapCell2D *cell) const
const uint16_t ground_void_flag_
uint16_t EncodeVar(const LossyMapCell2D &cell) const
const float alt_avg_interval_
uint16_t EncodeAltitudeAvg(const LossyMapCell2D &cell) const
const LossyMapCell2D * operator[](int row) const
unsigned int cols_
The number of columns.
uint16_t EncodeAltitudeGround(const LossyMapCell2D &cell) const
LossyMapCell2D * operator[](int row)
unsigned char EncodeIntensity(const LossyMapCell2D &cell) const
LossyMapCell2D * map_cells_
The matrix data structure.
virtual unsigned int GetBinarySize() const
Get the binary size of the object.
virtual void Init(const BaseMapConfig *config)
Initialize the map matrix.
virtual void Reset(const BaseMapConfig *config)
Reset map cells data.
void Reset()
Reset to default value.
bool is_ground_useful
is ground altitude usefu
float altitude_ground
The ground altitude of the cell.
float intensity
The average intensity value.
float altitude
The average altitude of the cell.
LossyMapCell2D()
The default constructor.
float intensity_var
The variance intensity value.
unsigned int count
The number of samples in the cell.
LossyMapCell2D & operator=(const LossyMapCell2D &ref)
Overloading the assign operator.