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

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

#include <ndt_map_matrix.h>

Inheritance diagram for apollo::localization::msf::pyramid_map::NdtMapMatrix:
Inheritance graph
Collaboration diagram for apollo::localization::msf::pyramid_map::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 ()
 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 size_t LoadBinary (const unsigned char *buf)
 Load the map cell from a binary chunk. More...
 
virtual size_t CreateBinary (unsigned char *buf, size_t buf_size) const
 Create the binary. Serialization of the object. More...
 
virtual size_t GetBinarySize () const
 Get the binary size of the object. More...
 
virtual bool 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::pyramid_map::BaseMapMatrix
 BaseMapMatrix ()
 The default constructor. More...
 
virtual ~BaseMapMatrix ()
 The deconstructor. More...
 
 BaseMapMatrix (const BaseMapMatrix &map_matrix)
 The copy constructor. More...
 
virtual bool GetAltitudeImg (cv::Mat *altitude_img) const
 get altitude image of node. 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::pyramid_map::NdtMapMatrix::NdtMapMatrix ( )

The default constructor.

◆ ~NdtMapMatrix()

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

The default destructor.

◆ NdtMapMatrix() [2/2]

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

The copy constructor.

Member Function Documentation

◆ CreateBinary()

virtual size_t apollo::localization::msf::pyramid_map::NdtMapMatrix::CreateBinary ( unsigned char *  buf,
size_t  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.

◆ GetBinarySize()

virtual size_t apollo::localization::msf::pyramid_map::NdtMapMatrix::GetBinarySize ( ) const
virtual

Get the binary size of the object.

◆ GetCols()

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

Get the size of cols.

◆ GetIntensityImg()

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

get intensity image of node.

Reimplemented from apollo::localization::msf::pyramid_map::BaseMapMatrix.

◆ GetMapCell() [1/2]

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

Get a const map cell.

◆ GetMapCell() [2/2]

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

Get a map cell.

◆ GetRows()

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

Get the size of row.

◆ Init() [1/2]

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

Initialize the matrix with the config.

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

◆ Init() [2/2]

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

Initialize the matrix with the size of rows and columns.

◆ LoadBinary()

virtual size_t apollo::localization::msf::pyramid_map::NdtMapMatrix::LoadBinary ( const unsigned char *  buf)
virtual

Load the map cell from a binary chunk.

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

◆ Reduce()

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

Combine two NdtMapMatrix instances (Reduce).

◆ Reset() [1/2]

virtual void apollo::localization::msf::pyramid_map::NdtMapMatrix::Reset ( )
virtual

Reset the matrix item to default value.

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

◆ Reset() [2/2]

void apollo::localization::msf::pyramid_map::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: