Apollo 10.0
自动驾驶开放平台
|
The data structure of a Node in the map. 更多...
#include <base_map_node.h>
Public 成员函数 | |
BaseMapNode () | |
Construct a map node. | |
BaseMapNode (BaseMapMatrix *matrix, CompressionStrategy *strategy) | |
Construct a map node. | |
virtual | ~BaseMapNode () |
Destruct a map node. | |
virtual void | Init (const BaseMapConfig *map_config)=0 |
Initialize the map node. | |
virtual void | Init (const BaseMapConfig *map_config, const MapNodeIndex &index, bool create_map_cells=true)=0 |
virtual void | InitMapMatrix (const BaseMapConfig *map_config) |
Initialize the map matrix. | |
virtual void | Finalize () |
call before deconstruction or reset. | |
virtual void | ResetMapNode () |
Reset map cells data. | |
bool | Save () |
Save the map node to the disk. | |
bool | SaveIntensityImage () const |
Save intensity image of node. | |
bool | SaveAltitudeImage () const |
Save altitude image of node. | |
bool | Load () |
Load the map node from the disk. | |
bool | Load (const char *filename) |
virtual bool | GetCoordinate (const Eigen::Vector2d &coordinate, unsigned int *x, unsigned int *y) const |
Given the global coordinate, get the local 2D coordinate of the map cell matrix. | |
virtual bool | GetCoordinate (const Eigen::Vector3d &coordinate, unsigned int *x, unsigned int *y) const |
virtual Eigen::Vector2d | GetCoordinate (unsigned int x, unsigned int y) const |
Given the local 2D coordinate, return the global coordinate. | |
void | SetMapNodeIndex (const MapNodeIndex &index) |
Set the map node index. | |
bool | SaveIntensityImage (const std::string &path) const |
Save intensity image of node. | |
bool | SaveAltitudeImage (const std::string &path) const |
Save altitude image of node. | |
const BaseMapMatrix & | GetMapCellMatrix () const |
Get map cell matrix. | |
BaseMapMatrix & | GetMapCellMatrix () |
const BaseMapConfig & | GetMapConfig () const |
Get the map settings. | |
const BaseMapNodeConfig & | GetMapNodeConfig () const |
Get the map node config. | |
const MapNodeIndex & | GetMapNodeIndex () const |
Get the map node index. | |
void | SetIsReserved (bool is_reserved) |
Set if the map node is reserved. | |
bool | GetIsReserved () const |
Get if the map node is reserved. | |
bool | GetIsChanged () const |
Get if the map data has changed. | |
void | SetIsChanged (bool is) |
Set if the map node data has changed. | |
bool | GetIsReady () const |
Get if the map node data is ready | |
const Eigen::Vector2d & | GetLeftTopCorner () const |
void | SetLeftTopCorner (double x, double y) |
Set the left top corner of the map node. | |
float | GetMapResolution () const |
Get the resolution of this map nodex. | |
静态 Public 成员函数 | |
static Eigen::Vector2d | ComputeLeftTopCorner (const BaseMapConfig &config, const MapNodeIndex &index) |
static Eigen::Vector2d | GetLeftTopCorner (const BaseMapConfig &option, const MapNodeIndex &index) |
Protected 成员函数 | |
bool | CreateMapDirectory (const std::string &path) const |
Try to create the map directory. | |
bool | CreateMapDirectoryRecursively (const std::vector< std::string > &paths) const |
Try to create the map directory recursively. | |
bool | CheckMapDirectoryRecursively (const std::vector< std::string > &paths) const |
Try to check the map directory recursively. | |
virtual bool | LoadBinary (FILE *file) |
Load the map cell from a binary chunk. | |
virtual bool | CreateBinary (FILE *file) const |
Create the binary. | |
virtual size_t | GetBinarySize () const |
Get the binary size of the object. | |
virtual size_t | LoadHeaderBinary (const unsigned char *buf) |
Load the map node header from a binary chunk. | |
virtual size_t | CreateHeaderBinary (unsigned char *buf, size_t buf_size) const |
Create the binary header. | |
virtual size_t | GetHeaderBinarySize () const |
Get the size of the header in bytes. | |
virtual size_t | LoadBodyBinary (std::vector< unsigned char > *buf) |
Load the map node body from a binary chunk. | |
virtual size_t | CreateBodyBinary (std::vector< unsigned char > *buf) const |
Create the binary body. | |
virtual size_t | GetBodyBinarySize () const |
Get the size of the body in bytes. | |
Protected 属性 | |
const BaseMapConfig * | map_config_ = nullptr |
The map settings. | |
MapNodeIndex | index_ |
The index of this node | |
Eigen::Vector2d | left_top_corner_ |
The left top corner of the map node in the global coordinate system. | |
std::shared_ptr< BaseMapNodeConfig > | map_node_config_ = nullptr |
The map node config. | |
std::shared_ptr< BaseMapMatrix > | map_matrix_ = nullptr |
The data structure of the map datas, which is a matrix. | |
std::shared_ptr< BaseMapMatrixHandler > | map_matrix_handler_ = nullptr |
The class to load and create map matrix binary. | |
bool | is_reserved_ = false |
If the node is reserved in map. | |
bool | is_changed_ = false |
Has the map node been changed. | |
bool | data_is_ready_ = false |
size_t | file_body_binary_size_ = 0 |
The body binary size in file. | |
size_t | uncompressed_file_body_size_ = 0 |
std::shared_ptr< CompressionStrategy > | compression_strategy_ = nullptr |
@bried The compression strategy. | |
The data structure of a Node in the map.
在文件 base_map_node.h 第 37 行定义.
apollo::localization::msf::pyramid_map::BaseMapNode::BaseMapNode | ( | ) |
Construct a map node.
在文件 base_map_node.cc 第 33 行定义.
apollo::localization::msf::pyramid_map::BaseMapNode::BaseMapNode | ( | BaseMapMatrix * | matrix, |
CompressionStrategy * | strategy | ||
) |
Construct a map node.
在文件 base_map_node.cc 第 45 行定义.
|
virtual |
|
protected |
Try to check the map directory recursively.
在文件 base_map_node.cc 第 414 行定义.
|
static |
在文件 base_map_node.cc 第 356 行定义.
|
protectedvirtual |
Create the binary.
Serialization of the object.
在文件 base_map_node.cc 第 202 行定义.
|
protectedvirtual |
Create the binary body.
<buf,buf_size> | The buffer and its size. |
<return> | The required or the used size of is returned. |
在文件 base_map_node.cc 第 291 行定义.
|
protectedvirtual |
Create the binary header.
<buf,buf_size> | The buffer and its size. |
<return> | The required or the used size of is returned. |
在文件 base_map_node.cc 第 263 行定义.
|
protected |
Try to create the map directory.
在文件 base_map_node.cc 第 394 行定义.
|
protected |
Try to create the map directory recursively.
在文件 base_map_node.cc 第 401 行定义.
|
virtual |
call before deconstruction or reset.
在文件 base_map_node.cc 第 63 行定义.
|
protectedvirtual |
Get the binary size of the object.
在文件 base_map_node.cc 第 241 行定义.
|
protectedvirtual |
Get the size of the body in bytes.
在文件 base_map_node.cc 第 315 行定义.
|
virtual |
Given the global coordinate, get the local 2D coordinate of the map cell matrix.
<return> If global coordinate (x, y) belongs to this map node.
被 apollo::localization::msf::pyramid_map::PyramidMapNode 重载.
在文件 base_map_node.cc 第 319 行定义.
|
virtual |
被 apollo::localization::msf::pyramid_map::PyramidMapNode 重载.
在文件 base_map_node.cc 第 335 行定义.
|
virtual |
Given the local 2D coordinate, return the global coordinate.
被 apollo::localization::msf::pyramid_map::PyramidMapNode 重载.
在文件 base_map_node.cc 第 341 行定义.
|
protectedvirtual |
Get the size of the header in bytes.
在文件 base_map_node.cc 第 269 行定义.
|
inline |
|
inline |
|
inline |
|
inline |
在文件 base_map_node.h 第 121 行定义.
|
static |
在文件 base_map_node.cc 第 378 行定义.
|
inline |
在文件 base_map_node.h 第 91 行定义.
|
inline |
|
inline |
|
inline |
|
inline |
Get the map node index.
在文件 base_map_node.h 第 102 行定义.
|
inline |
Get the resolution of this map nodex.
在文件 base_map_node.h 第 132 行定义.
|
pure virtual |
Initialize the map node.
Call this function first before use it!
在 apollo::localization::msf::pyramid_map::NdtMapNode , 以及 apollo::localization::msf::pyramid_map::PyramidMapNode 内被实现.
|
pure virtual |
|
virtual |
Initialize the map matrix.
在文件 base_map_node.cc 第 58 行定义.
bool apollo::localization::msf::pyramid_map::BaseMapNode::Load | ( | ) |
Load the map node from the disk.
在文件 base_map_node.cc 第 131 行定义.
bool apollo::localization::msf::pyramid_map::BaseMapNode::Load | ( | const char * | filename | ) |
在文件 base_map_node.cc 第 161 行定义.
|
protectedvirtual |
Load the map cell from a binary chunk.
在文件 base_map_node.cc 第 177 行定义.
|
protectedvirtual |
Load the map node body from a binary chunk.
<return> | The size read (the real size of body). |
在文件 base_map_node.cc 第 273 行定义.
|
protectedvirtual |
Load the map node header from a binary chunk.
<return> | The size read (the real size of header). |
在文件 base_map_node.cc 第 246 行定义.
|
virtual |
Reset map cells data.
在文件 base_map_node.cc 第 70 行定义.
bool apollo::localization::msf::pyramid_map::BaseMapNode::Save | ( | ) |
Save the map node to the disk.
在文件 base_map_node.cc 第 79 行定义.
bool apollo::localization::msf::pyramid_map::BaseMapNode::SaveAltitudeImage | ( | ) | const |
Save altitude image of node.
在文件 base_map_node.cc 第 476 行定义.
bool apollo::localization::msf::pyramid_map::BaseMapNode::SaveAltitudeImage | ( | const std::string & | path | ) | const |
Save altitude image of node.
在文件 base_map_node.cc 第 517 行定义.
bool apollo::localization::msf::pyramid_map::BaseMapNode::SaveIntensityImage | ( | ) | const |
Save intensity image of node.
在文件 base_map_node.cc 第 428 行定义.
bool apollo::localization::msf::pyramid_map::BaseMapNode::SaveIntensityImage | ( | const std::string & | path | ) | const |
Save intensity image of node.
在文件 base_map_node.cc 第 469 行定义.
|
inline |
|
inline |
|
inline |
Set the left top corner of the map node.
在文件 base_map_node.h 第 126 行定义.
void apollo::localization::msf::pyramid_map::BaseMapNode::SetMapNodeIndex | ( | const MapNodeIndex & | index | ) |
Set the map node index.
在文件 base_map_node.cc 第 350 行定义.
|
protected |
@bried The compression strategy.
在文件 base_map_node.h 第 212 行定义.
|
protected |
在文件 base_map_node.h 第 206 行定义.
|
mutableprotected |
The body binary size in file.
在文件 base_map_node.h 第 208 行定义.
|
protected |
The index of this node
在文件 base_map_node.h 第 189 行定义.
|
protected |
Has the map node been changed.
在文件 base_map_node.h 第 204 行定义.
|
protected |
If the node is reserved in map.
在文件 base_map_node.h 第 202 行定义.
|
protected |
The left top corner of the map node in the global coordinate system.
在文件 base_map_node.h 第 193 行定义.
|
protected |
The map settings.
在文件 base_map_node.h 第 186 行定义.
|
protected |
The data structure of the map datas, which is a matrix.
在文件 base_map_node.h 第 198 行定义.
|
protected |
The class to load and create map matrix binary.
在文件 base_map_node.h 第 200 行定义.
|
protected |
The map node config.
在文件 base_map_node.h 第 196 行定义.
|
mutableprotected |
在文件 base_map_node.h 第 210 行定义.