Apollo  6.0
Open source self driving car software
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
apollo::localization::msf::LossyMapMatrix2D Class Reference

#include <lossy_map_matrix_2d.h>

Inheritance diagram for apollo::localization::msf::LossyMapMatrix2D:
Inheritance graph
Collaboration diagram for apollo::localization::msf::LossyMapMatrix2D:
Collaboration graph

Public Member Functions

 LossyMapMatrix2D ()
 
 ~LossyMapMatrix2D ()
 
 LossyMapMatrix2D (const LossyMapMatrix2D &matrix)
 
virtual void Init (const BaseMapConfig *config)
 Initialize the map matrix. More...
 
virtual void Reset (const BaseMapConfig *config)
 Reset map cells data. More...
 
void Init (unsigned int rows, unsigned int cols)
 
void Reset (unsigned int rows, unsigned int cols)
 
virtual unsigned int LoadBinary (unsigned char *buf)
 Load the map cell from a binary chunk. More...
 
virtual unsigned int CreateBinary (unsigned char *buf, unsigned int buf_size) const
 Create the binary. Serialization of the object. More...
 
virtual unsigned int GetBinarySize () const
 Get the binary size of the object. More...
 
virtual void GetIntensityImg (cv::Mat *intensity_img) const
 get intensity image of node. More...
 
LossyMapCell2Doperator[] (int row)
 
const LossyMapCell2Doperator[] (int row) const
 
LossyMapMatrix2Doperator= (const LossyMapMatrix2D &matrix)
 
- Public Member Functions inherited from apollo::localization::msf::BaseMapMatrix
 BaseMapMatrix ()
 The default constructor. More...
 
virtual ~BaseMapMatrix ()
 The deconstructor. More...
 
 BaseMapMatrix (const BaseMapMatrix &cell)
 The copy constructor. More...
 

Protected Member Functions

unsigned char EncodeIntensity (const LossyMapCell2D &cell) const
 
void DecodeIntensity (unsigned char data, LossyMapCell2D *cell) const
 
uint16_t EncodeVar (const LossyMapCell2D &cell) const
 
void DecodeVar (uint16_t data, LossyMapCell2D *cell) const
 
uint16_t EncodeAltitudeGround (const LossyMapCell2D &cell) const
 
void DecodeAltitudeGround (uint16_t data, LossyMapCell2D *cell) const
 
uint16_t EncodeAltitudeAvg (const LossyMapCell2D &cell) const
 
void DecodeAltitudeAvg (uint16_t data, LossyMapCell2D *cell) const
 
unsigned char EncodeCount (const LossyMapCell2D &cell) const
 
void DecodeCount (unsigned char data, LossyMapCell2D *cell) const
 

Protected Attributes

unsigned int rows_
 The number of rows. More...
 
unsigned int cols_
 The number of columns. More...
 
LossyMapCell2Dmap_cells_
 The matrix data structure. More...
 
const int var_range_ = 1023
 
const int var_ratio_ = 4
 
const float alt_ground_interval_ = 0.04f
 
const uint16_t ground_void_flag_ = 0xffff
 
const float alt_avg_interval_ = 0.04f
 
const int count_range_ = 2
 
float alt_avg_min_
 
float alt_avg_max_
 
float alt_ground_min_
 
float alt_ground_max_
 

Constructor & Destructor Documentation

◆ LossyMapMatrix2D() [1/2]

apollo::localization::msf::LossyMapMatrix2D::LossyMapMatrix2D ( )

◆ ~LossyMapMatrix2D()

apollo::localization::msf::LossyMapMatrix2D::~LossyMapMatrix2D ( )

◆ LossyMapMatrix2D() [2/2]

apollo::localization::msf::LossyMapMatrix2D::LossyMapMatrix2D ( const LossyMapMatrix2D matrix)

Member Function Documentation

◆ CreateBinary()

virtual unsigned int apollo::localization::msf::LossyMapMatrix2D::CreateBinary ( unsigned char *  buf,
unsigned int  buf_size 
) const
virtual

Create the binary. Serialization of the object.

Parameters
<buf,buf_size>The buffer and its size.
<return>The required or the used size of is returned.

Implements apollo::localization::msf::BaseMapMatrix.

◆ DecodeAltitudeAvg()

void apollo::localization::msf::LossyMapMatrix2D::DecodeAltitudeAvg ( uint16_t  data,
LossyMapCell2D cell 
) const
inlineprotected

◆ DecodeAltitudeGround()

void apollo::localization::msf::LossyMapMatrix2D::DecodeAltitudeGround ( uint16_t  data,
LossyMapCell2D cell 
) const
inlineprotected

◆ DecodeCount()

void apollo::localization::msf::LossyMapMatrix2D::DecodeCount ( unsigned char  data,
LossyMapCell2D cell 
) const
inlineprotected

◆ DecodeIntensity()

void apollo::localization::msf::LossyMapMatrix2D::DecodeIntensity ( unsigned char  data,
LossyMapCell2D cell 
) const
inlineprotected

◆ DecodeVar()

void apollo::localization::msf::LossyMapMatrix2D::DecodeVar ( uint16_t  data,
LossyMapCell2D cell 
) const
inlineprotected

◆ EncodeAltitudeAvg()

uint16_t apollo::localization::msf::LossyMapMatrix2D::EncodeAltitudeAvg ( const LossyMapCell2D cell) const
inlineprotected

◆ EncodeAltitudeGround()

uint16_t apollo::localization::msf::LossyMapMatrix2D::EncodeAltitudeGround ( const LossyMapCell2D cell) const
inlineprotected

◆ EncodeCount()

unsigned char apollo::localization::msf::LossyMapMatrix2D::EncodeCount ( const LossyMapCell2D cell) const
inlineprotected

◆ EncodeIntensity()

unsigned char apollo::localization::msf::LossyMapMatrix2D::EncodeIntensity ( const LossyMapCell2D cell) const
inlineprotected

◆ EncodeVar()

uint16_t apollo::localization::msf::LossyMapMatrix2D::EncodeVar ( const LossyMapCell2D cell) const
inlineprotected

◆ GetBinarySize()

virtual unsigned int apollo::localization::msf::LossyMapMatrix2D::GetBinarySize ( ) const
virtual

Get the binary size of the object.

Implements apollo::localization::msf::BaseMapMatrix.

◆ GetIntensityImg()

virtual void apollo::localization::msf::LossyMapMatrix2D::GetIntensityImg ( cv::Mat *  intensity_img) const
virtual

get intensity image of node.

Implements apollo::localization::msf::BaseMapMatrix.

◆ Init() [1/2]

virtual void apollo::localization::msf::LossyMapMatrix2D::Init ( const BaseMapConfig config)
virtual

Initialize the map matrix.

Implements apollo::localization::msf::BaseMapMatrix.

◆ Init() [2/2]

void apollo::localization::msf::LossyMapMatrix2D::Init ( unsigned int  rows,
unsigned int  cols 
)

◆ LoadBinary()

virtual unsigned int apollo::localization::msf::LossyMapMatrix2D::LoadBinary ( unsigned char *  buf)
virtual

Load the map cell from a binary chunk.

Parameters
<return>The size read (the real size of object).

Implements apollo::localization::msf::BaseMapMatrix.

◆ operator=()

LossyMapMatrix2D& apollo::localization::msf::LossyMapMatrix2D::operator= ( const LossyMapMatrix2D matrix)

◆ operator[]() [1/2]

LossyMapCell2D* apollo::localization::msf::LossyMapMatrix2D::operator[] ( int  row)
inline

◆ operator[]() [2/2]

const LossyMapCell2D* apollo::localization::msf::LossyMapMatrix2D::operator[] ( int  row) const
inline

◆ Reset() [1/2]

virtual void apollo::localization::msf::LossyMapMatrix2D::Reset ( const BaseMapConfig config)
virtual

Reset map cells data.

Implements apollo::localization::msf::BaseMapMatrix.

◆ Reset() [2/2]

void apollo::localization::msf::LossyMapMatrix2D::Reset ( unsigned int  rows,
unsigned int  cols 
)

Member Data Documentation

◆ alt_avg_interval_

const float apollo::localization::msf::LossyMapMatrix2D::alt_avg_interval_ = 0.04f
protected

◆ alt_avg_max_

float apollo::localization::msf::LossyMapMatrix2D::alt_avg_max_
mutableprotected

◆ alt_avg_min_

float apollo::localization::msf::LossyMapMatrix2D::alt_avg_min_
mutableprotected

◆ alt_ground_interval_

const float apollo::localization::msf::LossyMapMatrix2D::alt_ground_interval_ = 0.04f
protected

◆ alt_ground_max_

float apollo::localization::msf::LossyMapMatrix2D::alt_ground_max_
mutableprotected

◆ alt_ground_min_

float apollo::localization::msf::LossyMapMatrix2D::alt_ground_min_
mutableprotected

◆ cols_

unsigned int apollo::localization::msf::LossyMapMatrix2D::cols_
protected

The number of columns.

◆ count_range_

const int apollo::localization::msf::LossyMapMatrix2D::count_range_ = 2
protected

◆ ground_void_flag_

const uint16_t apollo::localization::msf::LossyMapMatrix2D::ground_void_flag_ = 0xffff
protected

◆ map_cells_

LossyMapCell2D* apollo::localization::msf::LossyMapMatrix2D::map_cells_
protected

The matrix data structure.

◆ rows_

unsigned int apollo::localization::msf::LossyMapMatrix2D::rows_
protected

The number of rows.

◆ var_range_

const int apollo::localization::msf::LossyMapMatrix2D::var_range_ = 1023
protected

◆ var_ratio_

const int apollo::localization::msf::LossyMapMatrix2D::var_ratio_ = 4
protected

The documentation for this class was generated from the following file: