Apollo 10.0
自动驾驶开放平台
|
The multiple layers of the cell. 更多...
#include <lossless_map_matrix.h>
Public 成员函数 | |
LosslessMapCell () | |
The default constructor. | |
void | Reset () |
Reset to default value. | |
void | SetValueLayer (double altitude, unsigned char intensity, double altitude_thres=10.0) |
Set the value of a layer that layer_id > 0. | |
void | SetValue (double altitude, unsigned char intensity) |
Set the value. | |
unsigned int | LoadBinary (unsigned char *buf) |
Load the map cell from a binary chunk. | |
unsigned int | CreateBinary (unsigned char *buf, unsigned int buf_size) const |
Create the binary. | |
unsigned int | GetBinarySize () const |
Get the binary size of the object. | |
unsigned int | GetLayerId (double altitude) const |
Match a layer in the map cell given an altitude. | |
void | GetValue (std::vector< unsigned char > *values) const |
Load the map cell from a binary chunk. | |
void | GetVar (std::vector< float > *vars) const |
Get the variance of the intensity of all layers in the map cell. | |
void | GetAlt (std::vector< float > *alts) const |
Get the average altitude of all layers in the map cell. | |
void | GetAltVar (std::vector< float > *alt_vars) const |
Get the variance of the altitude of all layers in the map cell. | |
void | GetCount (std::vector< unsigned int > *counts) const |
Get the count of the samples of all layers in the map cell. | |
unsigned char | GetValue () const |
Get the average intensity of the map cell. | |
float | GetVar () const |
Get the variance of the intensity of the map cell. | |
float | GetAlt () const |
Get the average altitude of the map cell. | |
float | GetAltVar () const |
Get the variance of the altitude of the map cell. | |
unsigned int | GetCount () const |
Get the count of the samples in the map cell. | |
LosslessMapSingleCell & | GetLayer (unsigned int layer_id) |
Get a particular layer in the map cell. | |
const LosslessMapSingleCell & | GetLayer (unsigned int layer_id) const |
Get a perticular layer in the map cell. | |
Public 属性 | |
unsigned int | layer_num |
The layers of the cell. | |
LosslessMapSingleCell | map_cells [IDL_CAR_NUM_RESERVED_MAP_LAYER] |
The multiple layers of the cell. | |
The multiple layers of the cell.
在文件 lossless_map_matrix.h 第 67 行定义.
apollo::localization::msf::LosslessMapCell::LosslessMapCell | ( | ) |
The default constructor.
在文件 lossless_map_matrix.cc 第 105 行定义.
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. |
在文件 lossless_map_matrix.cc 第 176 行定义.
|
inline |
Get the average altitude of the map cell.
在文件 lossless_map_matrix.h 第 117 行定义.
void apollo::localization::msf::LosslessMapCell::GetAlt | ( | std::vector< float > * | alts | ) | const |
Get the average altitude of all layers in the map cell.
在文件 lossless_map_matrix.cc 第 236 行定义.
|
inline |
Get the variance of the altitude of the map cell.
在文件 lossless_map_matrix.h 第 119 行定义.
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.
在文件 lossless_map_matrix.cc 第 244 行定义.
unsigned int apollo::localization::msf::LosslessMapCell::GetBinarySize | ( | ) | const |
Get the binary size of the object.
在文件 lossless_map_matrix.cc 第 196 行定义.
|
inline |
Get the count of the samples in the map cell.
在文件 lossless_map_matrix.h 第 121 行定义.
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.
在文件 lossless_map_matrix.cc 第 252 行定义.
|
inline |
Get a particular layer in the map cell.
The layer 0 is the layer includes all the samples.
在文件 lossless_map_matrix.h 第 124 行定义.
|
inline |
Get a perticular layer in the map cell.
The layer 0 is the layer includes all the samples.
在文件 lossless_map_matrix.h 第 130 行定义.
unsigned int apollo::localization::msf::LosslessMapCell::GetLayerId | ( | double | altitude | ) | const |
Match a layer in the map cell given an altitude.
在文件 lossless_map_matrix.cc 第 206 行定义.
|
inline |
Get the average intensity of the map cell.
在文件 lossless_map_matrix.h 第 111 行定义.
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.
在文件 lossless_map_matrix.cc 第 220 行定义.
|
inline |
Get the variance of the intensity of the map cell.
在文件 lossless_map_matrix.h 第 115 行定义.
void apollo::localization::msf::LosslessMapCell::GetVar | ( | std::vector< float > * | vars | ) | const |
Get the variance of the intensity of all layers in the map cell.
在文件 lossless_map_matrix.cc 第 228 行定义.
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). |
在文件 lossless_map_matrix.cc 第 162 行定义.
void apollo::localization::msf::LosslessMapCell::Reset | ( | ) |
Reset to default value.
在文件 lossless_map_matrix.cc 第 107 行定义.
void apollo::localization::msf::LosslessMapCell::SetValue | ( | double | altitude, |
unsigned char | intensity | ||
) |
Set the value.
<altitude> | The altitude of the cell. |
<intensity> | The reflectance intensity. |
在文件 lossless_map_matrix.cc 第 156 行定义.
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.
在文件 lossless_map_matrix.cc 第 114 行定义.
unsigned int apollo::localization::msf::LosslessMapCell::layer_num |
The layers of the cell.
在文件 lossless_map_matrix.h 第 136 行定义.
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.
在文件 lossless_map_matrix.h 第 140 行定义.