|
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 centroid, bool is_road=false) |
| Add an sample. | |
| 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. | |
静态 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::NdtMapCells::NdtMapCells | ( | ) |
The default constructor.
在文件 ndt_map_matrix.cc 第 148 行定义.
| int apollo::localization::msf::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 第 160 行定义.
|
static |
Calculate altitude from altitude index.
在文件 ndt_map_matrix.cc 第 281 行定义.
|
static |
Calculate altitude index from altitude.
在文件 ndt_map_matrix.cc 第 276 行定义.
| unsigned int apollo::localization::msf::NdtMapCells::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. |
在文件 ndt_map_matrix.cc 第 219 行定义.
| unsigned int apollo::localization::msf::NdtMapCells::GetBinarySize | ( | ) | const |
Get the binary size of the object.
在文件 ndt_map_matrix.cc 第 260 行定义.
| unsigned int apollo::localization::msf::NdtMapCells::LoadBinary | ( | unsigned char * | buf | ) |
Load the map cell from a binary chunk.
| <return> | The size read (the real size of object). |
在文件 ndt_map_matrix.cc 第 183 行定义.
|
static |
Combine two MapCell instances (Reduce).
在文件 ndt_map_matrix.cc 第 287 行定义.
| void apollo::localization::msf::NdtMapCells::Reset | ( | ) |
Reset to default value.
在文件 ndt_map_matrix.cc 第 153 行定义.
| std::unordered_map<int, NdtMapSingleCell> apollo::localization::msf::NdtMapCells::cells_ |
The multiple altitudes of the cell.
在文件 ndt_map_matrix.h 第 131 行定义.
| int apollo::localization::msf::NdtMapCells::max_altitude_index_ |
The index of biggest altitude.
在文件 ndt_map_matrix.h 第 133 行定义.
| int apollo::localization::msf::NdtMapCells::min_altitude_index_ |
The index of smallest altitude.
在文件 ndt_map_matrix.h 第 135 行定义.
| std::vector<int> apollo::localization::msf::NdtMapCells::road_cell_indices_ |
The indices of road surface.
在文件 ndt_map_matrix.h 第 137 行定义.