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

#include <lossless_map_matrix.h>

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

Public Member Functions

 LosslessMapMatrix ()
 
 ~LosslessMapMatrix ()
 
 LosslessMapMatrix (const LosslessMapMatrix &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...
 
const LosslessMapCellGetMapCell (unsigned int row, unsigned int col) const
 Get a map cell. More...
 
LosslessMapCellGetMapCell (unsigned int row, unsigned int col)
 Get a map cell. More...
 
LosslessMapCelloperator[] (int row)
 
const LosslessMapCelloperator[] (int row) const
 
- 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 Attributes

unsigned int rows_
 The number of rows. More...
 
unsigned int cols_
 The number of columns. More...
 
LosslessMapCellmap_cells_
 The matrix data structure. More...
 

Constructor & Destructor Documentation

◆ LosslessMapMatrix() [1/2]

apollo::localization::msf::LosslessMapMatrix::LosslessMapMatrix ( )

◆ ~LosslessMapMatrix()

apollo::localization::msf::LosslessMapMatrix::~LosslessMapMatrix ( )

◆ LosslessMapMatrix() [2/2]

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

Member Function Documentation

◆ CreateBinary()

virtual unsigned int apollo::localization::msf::LosslessMapMatrix::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.

◆ GetBinarySize()

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

Get the binary size of the object.

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

◆ GetIntensityImg()

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

get intensity image of node.

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

◆ GetMapCell() [1/2]

const LosslessMapCell& apollo::localization::msf::LosslessMapMatrix::GetMapCell ( unsigned int  row,
unsigned int  col 
) const
inline

Get a map cell.

◆ GetMapCell() [2/2]

LosslessMapCell& apollo::localization::msf::LosslessMapMatrix::GetMapCell ( unsigned int  row,
unsigned int  col 
)
inline

Get a map cell.

◆ Init() [1/2]

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

Initialize the map matrix.

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

◆ Init() [2/2]

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

◆ LoadBinary()

virtual unsigned int apollo::localization::msf::LosslessMapMatrix::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[]() [1/2]

LosslessMapCell* apollo::localization::msf::LosslessMapMatrix::operator[] ( int  row)
inline

◆ operator[]() [2/2]

const LosslessMapCell* apollo::localization::msf::LosslessMapMatrix::operator[] ( int  row) const
inline

◆ Reset() [1/2]

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

Reset map cells data.

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

◆ Reset() [2/2]

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

Member Data Documentation

◆ cols_

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

The number of columns.

◆ map_cells_

LosslessMapCell* apollo::localization::msf::LosslessMapMatrix::map_cells_
protected

The matrix data structure.

◆ rows_

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

The number of rows.


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