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

The data structure of ndt Map matrix. More...

#include <ndt_map_matrix.h>

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

Public Member Functions

 NdtMapMatrix ()
 The default constructor. More...
 
 ~NdtMapMatrix ()
 The default destructor. More...
 
 NdtMapMatrix (const NdtMapMatrix &cells)
 The copy constructor. More...
 
virtual void Init (const BaseMapConfig *config)
 Initialize the matrix with the config. More...
 
virtual void Reset (const BaseMapConfig *config)
 Reset the matrix item to default value. More...
 
void Init (unsigned int rows, unsigned int cols)
 Initialize the matrix with the size of rows and columns. More...
 
void Reset (unsigned int rows, unsigned int cols)
 Reset the matrix item to default value. More...
 
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 NdtMapCellsGetMapCell (unsigned int row, unsigned int col) const
 Get a const map cell. More...
 
NdtMapCellsGetMapCell (unsigned int row, unsigned int col)
 Get a map cell. More...
 
unsigned int GetRows () const
 Get the size of row. More...
 
unsigned int GetCols () const
 Get the size of cols. More...
 
- 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...
 

Static Public Member Functions

static void Reduce (NdtMapMatrix *cells, const NdtMapMatrix &cells_new)
 Combine two NdtMapMatrix instances (Reduce). More...
 

Detailed Description

The data structure of ndt Map matrix.

Constructor & Destructor Documentation

◆ NdtMapMatrix() [1/2]

apollo::localization::msf::NdtMapMatrix::NdtMapMatrix ( )

The default constructor.

◆ ~NdtMapMatrix()

apollo::localization::msf::NdtMapMatrix::~NdtMapMatrix ( )

The default destructor.

◆ NdtMapMatrix() [2/2]

apollo::localization::msf::NdtMapMatrix::NdtMapMatrix ( const NdtMapMatrix cells)

The copy constructor.

Member Function Documentation

◆ CreateBinary()

virtual unsigned int apollo::localization::msf::NdtMapMatrix::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::NdtMapMatrix::GetBinarySize ( ) const
virtual

Get the binary size of the object.

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

◆ GetCols()

unsigned int apollo::localization::msf::NdtMapMatrix::GetCols ( ) const
inline

Get the size of cols.

◆ GetIntensityImg()

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

get intensity image of node.

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

◆ GetMapCell() [1/2]

const NdtMapCells& apollo::localization::msf::NdtMapMatrix::GetMapCell ( unsigned int  row,
unsigned int  col 
) const
inline

Get a const map cell.

◆ GetMapCell() [2/2]

NdtMapCells& apollo::localization::msf::NdtMapMatrix::GetMapCell ( unsigned int  row,
unsigned int  col 
)
inline

Get a map cell.

◆ GetRows()

unsigned int apollo::localization::msf::NdtMapMatrix::GetRows ( ) const
inline

Get the size of row.

◆ Init() [1/2]

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

Initialize the matrix with the config.

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

◆ Init() [2/2]

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

Initialize the matrix with the size of rows and columns.

◆ LoadBinary()

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

◆ Reduce()

static void apollo::localization::msf::NdtMapMatrix::Reduce ( NdtMapMatrix cells,
const NdtMapMatrix cells_new 
)
static

Combine two NdtMapMatrix instances (Reduce).

◆ Reset() [1/2]

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

Reset the matrix item to default value.

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

◆ Reset() [2/2]

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

Reset the matrix item to default value.


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