|
Apollo
6.0
Open source self driving car software
|
The multiple layers of the cell. More...
#include <lossless_map_matrix.h>

Public Member Functions | |
| LosslessMapCell () | |
| The default constructor. More... | |
| void | Reset () |
| Reset to default value. More... | |
| void | SetValueLayer (double altitude, unsigned char intensity, double altitude_thres=10.0) |
| Set the value of a layer that layer_id > 0. The target layer is found according to the altitude. More... | |
| void | SetValue (double altitude, unsigned char intensity) |
| Set the value. 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... | |
| unsigned int | GetLayerId (double altitude) const |
| Match a layer in the map cell given an altitude. More... | |
| void | GetValue (std::vector< unsigned char > *values) const |
| Load the map cell from a binary chunk. More... | |
| void | GetVar (std::vector< float > *vars) const |
| Get the variance of the intensity of all layers in the map cell. More... | |
| void | GetAlt (std::vector< float > *alts) const |
| Get the average altitude of all layers in the map cell. More... | |
| void | GetAltVar (std::vector< float > *alt_vars) const |
| Get the variance of the altitude of all layers in the map cell. More... | |
| void | GetCount (std::vector< unsigned int > *counts) const |
| Get the count of the samples of all layers in the map cell. More... | |
| unsigned char | GetValue () const |
| Get the average intensity of the map cell. More... | |
| float | GetVar () const |
| Get the variance of the intensity of the map cell. More... | |
| float | GetAlt () const |
| Get the average altitude of the map cell. More... | |
| float | GetAltVar () const |
| Get the variance of the altitude of the map cell. More... | |
| unsigned int | GetCount () const |
| Get the count of the samples in the map cell. More... | |
| LosslessMapSingleCell & | GetLayer (unsigned int layer_id) |
| Get a particular layer in the map cell. The layer 0 is the layer includes all the samples. More... | |
| const LosslessMapSingleCell & | GetLayer (unsigned int layer_id) const |
| Get a perticular layer in the map cell. The layer 0 is the layer includes all the samples. More... | |
Public Attributes | |
| unsigned int | layer_num |
| The layers of the cell. More... | |
| LosslessMapSingleCell | map_cells [IDL_CAR_NUM_RESERVED_MAP_LAYER] |
| The multiple layers of the cell. The first layer (layer 0) includes all the intensities from any layers. Other layers only include the samples from a layer. More... | |
The multiple layers of the cell.
| apollo::localization::msf::LosslessMapCell::LosslessMapCell | ( | ) |
The default constructor.
| unsigned int apollo::localization::msf::LosslessMapCell::CreateBinary | ( | unsigned char * | buf, |
| unsigned int | buf_size | ||
| ) | const |
Create the binary. Serialization of the object.
| <buf,buf_size> | The buffer and its size. |
| <return> | The required or the used size of is returned. |
| void apollo::localization::msf::LosslessMapCell::GetAlt | ( | std::vector< float > * | alts | ) | const |
Get the average altitude of all layers in the map cell.
|
inline |
Get the average altitude of the map cell.
| void apollo::localization::msf::LosslessMapCell::GetAltVar | ( | std::vector< float > * | alt_vars | ) | const |
Get the variance of the altitude of all layers in the map cell.
|
inline |
Get the variance of the altitude of the map cell.
| unsigned int apollo::localization::msf::LosslessMapCell::GetBinarySize | ( | ) | const |
Get the binary size of the object.
| void apollo::localization::msf::LosslessMapCell::GetCount | ( | std::vector< unsigned int > * | counts | ) | const |
Get the count of the samples of all layers in the map cell.
|
inline |
Get the count of the samples in the map cell.
|
inline |
Get a particular layer in the map cell. The layer 0 is the layer includes all the samples.
|
inline |
Get a perticular layer in the map cell. The layer 0 is the layer includes all the samples.
| unsigned int apollo::localization::msf::LosslessMapCell::GetLayerId | ( | double | altitude | ) | const |
Match a layer in the map cell given an altitude.
| void apollo::localization::msf::LosslessMapCell::GetValue | ( | std::vector< unsigned char > * | values | ) | const |
Load the map cell from a binary chunk.
| <return> | The size read (the real size of object).Get the average intensity of all layers in the map cell. |
|
inline |
Get the average intensity of the map cell.
| void apollo::localization::msf::LosslessMapCell::GetVar | ( | std::vector< float > * | vars | ) | const |
Get the variance of the intensity of all layers in the map cell.
|
inline |
Get the variance of the intensity of the map cell.
| unsigned int apollo::localization::msf::LosslessMapCell::LoadBinary | ( | unsigned char * | buf | ) |
Load the map cell from a binary chunk.
| <return> | The size read (the real size of object). |
| void apollo::localization::msf::LosslessMapCell::Reset | ( | ) |
Reset to default value.
| void apollo::localization::msf::LosslessMapCell::SetValue | ( | double | altitude, |
| unsigned char | intensity | ||
| ) |
Set the value.
| <altitude> | The altitude of the cell. |
| <intensity> | The reflectance intensity. |
| void apollo::localization::msf::LosslessMapCell::SetValueLayer | ( | double | altitude, |
| unsigned char | intensity, | ||
| double | altitude_thres = 10.0 |
||
| ) |
Set the value of a layer that layer_id > 0. The target layer is found according to the altitude.
| unsigned int apollo::localization::msf::LosslessMapCell::layer_num |
The layers of the cell.
| LosslessMapSingleCell apollo::localization::msf::LosslessMapCell::map_cells[IDL_CAR_NUM_RESERVED_MAP_LAYER] |
The multiple layers of the cell. The first layer (layer 0) includes all the intensities from any layers. Other layers only include the samples from a layer.
1.8.13