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

#include <lossless_map_matrix.h>

Collaboration diagram for apollo::localization::msf::LosslessMapSingleCell:
Collaboration graph

Public Member Functions

 LosslessMapSingleCell ()
 The default constructor. More...
 
void Reset ()
 Reset to default value. More...
 
void AddSample (const float new_altitude, const float new_intensity)
 Add a sample. More...
 
LosslessMapSingleCelloperator= (const LosslessMapSingleCell &ref)
 Overloading the assign operator. More...
 
unsigned int LoadBinary (unsigned char *buf)
 Load the map cell from a binary chunk. More...
 
unsigned int CreateBinary (unsigned char *buf, unsigned int buf_size) const
 Create the binary. Serialization of the object. More...
 
unsigned int GetBinarySize () const
 Get the binary size of the object. More...
 

Public Attributes

float intensity
 The average intensity value. More...
 
float intensity_var
 The variance intensity value. More...
 
float altitude
 The average altitude of the cell. More...
 
float altitude_var
 The variance altitude value of the cell. More...
 
unsigned int count
 The number of samples in the cell. More...
 

Constructor & Destructor Documentation

◆ LosslessMapSingleCell()

apollo::localization::msf::LosslessMapSingleCell::LosslessMapSingleCell ( )

The default constructor.

Member Function Documentation

◆ AddSample()

void apollo::localization::msf::LosslessMapSingleCell::AddSample ( const float  new_altitude,
const float  new_intensity 
)

Add a sample.

◆ CreateBinary()

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

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()

unsigned int apollo::localization::msf::LosslessMapSingleCell::GetBinarySize ( ) const

Get the binary size of the object.

◆ LoadBinary()

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

Load the map cell from a binary chunk.

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

◆ operator=()

LosslessMapSingleCell& apollo::localization::msf::LosslessMapSingleCell::operator= ( const LosslessMapSingleCell ref)

Overloading the assign operator.

◆ Reset()

void apollo::localization::msf::LosslessMapSingleCell::Reset ( )
inline

Reset to default value.

Member Data Documentation

◆ altitude

float apollo::localization::msf::LosslessMapSingleCell::altitude

The average altitude of the cell.

◆ altitude_var

float apollo::localization::msf::LosslessMapSingleCell::altitude_var

The variance altitude value of the cell.

◆ count

unsigned int apollo::localization::msf::LosslessMapSingleCell::count

The number of samples in the cell.

◆ intensity

float apollo::localization::msf::LosslessMapSingleCell::intensity

The average intensity value.

◆ intensity_var

float apollo::localization::msf::LosslessMapSingleCell::intensity_var

The variance intensity value.


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