Apollo 10.0
自动驾驶开放平台
|
The data structure of ndt Map cell. 更多...
#include <ndt_map_matrix.h>
Public 成员函数 | |
NdtMapCells () | |
The default constructor. | |
void | Reset () |
Reset to default value. | |
int | AddSample (const float intensity, const float altitude, const float resolution, const Eigen::Vector3f ¢roid, bool is_road=false) |
Add an sample. | |
size_t | LoadBinary (const unsigned char *buf) |
Load the map cell from a binary chunk. | |
size_t | CreateBinary (unsigned char *buf, size_t buf_size) const |
Create the binary. | |
size_t | GetBinarySize () const |
Get the binary size of the object. | |
静态 Public 成员函数 | |
static int | CalAltitudeIndex (const float resolution, const float altitude) |
Calculate altitude index from altitude. | |
static float | CalAltitude (const float resolution, const int altitude_index) |
Calculate altitude from altitude index. | |
static void | Reduce (NdtMapCells *cell, const NdtMapCells &cell_new) |
Combine two MapCell instances (Reduce). | |
Public 属性 | |
std::unordered_map< int, NdtMapSingleCell > | cells_ |
The multiple altitudes of the cell. | |
int | max_altitude_index_ |
The index of biggest altitude. | |
int | min_altitude_index_ |
The index of smallest altitude. | |
std::vector< int > | road_cell_indices_ |
The indices of road surface. | |
The data structure of ndt Map cell.
在文件 ndt_map_matrix.h 第 97 行定义.
apollo::localization::msf::pyramid_map::NdtMapCells::NdtMapCells | ( | ) |
The default constructor.
在文件 ndt_map_matrix.cc 第 245 行定义.
int apollo::localization::msf::pyramid_map::NdtMapCells::AddSample | ( | const float | intensity, |
const float | altitude, | ||
const float | resolution, | ||
const Eigen::Vector3f & | centroid, | ||
bool | is_road = false |
||
) |
Add an sample.
在文件 ndt_map_matrix.cc 第 257 行定义.
|
static |
Calculate altitude from altitude index.
在文件 ndt_map_matrix.cc 第 374 行定义.
|
static |
Calculate altitude index from altitude.
在文件 ndt_map_matrix.cc 第 369 行定义.
size_t apollo::localization::msf::pyramid_map::NdtMapCells::CreateBinary | ( | unsigned char * | buf, |
size_t | 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. |
在文件 ndt_map_matrix.cc 第 316 行定义.
size_t apollo::localization::msf::pyramid_map::NdtMapCells::GetBinarySize | ( | ) | const |
Get the binary size of the object.
在文件 ndt_map_matrix.cc 第 356 行定义.
size_t apollo::localization::msf::pyramid_map::NdtMapCells::LoadBinary | ( | const unsigned char * | buf | ) |
Load the map cell from a binary chunk.
<return> | The size read (the real size of object). |
在文件 ndt_map_matrix.cc 第 280 行定义.
|
static |
Combine two MapCell instances (Reduce).
在文件 ndt_map_matrix.cc 第 380 行定义.
void apollo::localization::msf::pyramid_map::NdtMapCells::Reset | ( | ) |
Reset to default value.
在文件 ndt_map_matrix.cc 第 250 行定义.
std::unordered_map<int, NdtMapSingleCell> apollo::localization::msf::pyramid_map::NdtMapCells::cells_ |
The multiple altitudes of the cell.
在文件 ndt_map_matrix.h 第 131 行定义.
int apollo::localization::msf::pyramid_map::NdtMapCells::max_altitude_index_ |
The index of biggest altitude.
在文件 ndt_map_matrix.h 第 133 行定义.
int apollo::localization::msf::pyramid_map::NdtMapCells::min_altitude_index_ |
The index of smallest altitude.
在文件 ndt_map_matrix.h 第 135 行定义.
std::vector<int> apollo::localization::msf::pyramid_map::NdtMapCells::road_cell_indices_ |
The indices of road surface.
在文件 ndt_map_matrix.h 第 137 行定义.