Apollo 10.0
自动驾驶开放平台
|
#include <ndt_map.h>
Public 成员函数 | |
NdtMap (NdtMapConfig *config) | |
~NdtMap () | |
![]() | |
BaseMap (BaseMapConfig *config) | |
The constructor. | |
virtual | ~BaseMap () |
The destructor. | |
virtual void | InitMapNodeCaches (int cacheL1_size, int cahceL2_size) |
void | AttachMapNodePool (BaseMapNodePool *p_map_node_pool) |
Attach map node pointer. | |
BaseMapNode * | GetMapNode (const MapNodeIndex &index) |
Return the map node, if it's not in the cache, return false. | |
BaseMapNode * | GetMapNodeSafe (const MapNodeIndex &index) |
Return the map node, if it's not in the cache, safely load it. | |
bool | IsMapNodeExist (const MapNodeIndex &index) |
Check if the map node in the cache. | |
bool | SetMapFolderPath (const std::string folder_path) |
Set the directory of the map. | |
void | AddDataset (const std::string dataset_path) |
Add a dataset path to the map config. | |
void | Release () |
Release resources. | |
virtual void | PreloadMapArea (const Eigen::Vector3d &location, const Eigen::Vector3d &trans_diff, unsigned int resolution_id, unsigned int zone_id) |
Preload map nodes for the next frame location calculation. | |
virtual bool | LoadMapArea (const Eigen::Vector3d &seed_pt3d, unsigned int resolution_id, unsigned int zone_id, int filter_size_x, int filter_size_y) |
Load map nodes for the location calculate of this frame. | |
void | ComputeMd5ForAllMapNodes () |
Compute md5 for all map node file in map. | |
bool | CheckMap () |
Check if map is normal. | |
bool | CheckMapStrictly () |
Check if map is normal(with map node checking). | |
const BaseMapConfig & | GetMapConfig () const |
Get the map config. | |
BaseMapConfig & | GetMapConfig () |
Get the map config. | |
const std::vector< std::string > & | GetAllMapNodePaths () const |
Get all map node paths. | |
const std::vector< std::string > & | GetAllMapNodeMd5s () const |
Get all map node md5s. | |
额外继承的成员函数 | |
![]() | |
void | GetAllMapIndexAndPath () |
MapNodeIndex | GetMapIndexFromMapPath (const std::string &map_path) |
void | LoadMapNodes (std::set< MapNodeIndex > *map_ids) |
Load map node by index. | |
void | PreloadMapNodes (std::set< MapNodeIndex > *map_ids) |
Load map node by index. | |
void | LoadMapNodeThreadSafety (const MapNodeIndex &index, bool is_reserved=false) |
Load map node by index, thread_safety. | |
void | CheckAndUpdateCache (std::set< MapNodeIndex > *map_ids) |
Check map node in L2 Cache. | |
![]() | |
BaseMapConfig * | map_config_ = nullptr |
The map settings. | |
MapNodeCache< MapNodeIndex, BaseMapNode >::DestroyFunc | destroy_func_lvl1_ |
MapNodeCache< MapNodeIndex, BaseMapNode >::DestroyFunc | destroy_func_lvl2_ |
std::unique_ptr< MapNodeCache< MapNodeIndex, BaseMapNode > > | map_node_cache_lvl1_ = nullptr |
The cache for map node preload. | |
std::unique_ptr< MapNodeCache< MapNodeIndex, BaseMapNode > > | map_node_cache_lvl2_ = nullptr |
brief The dynamic map node preloading thread pool pointer. | |
BaseMapNodePool * | map_node_pool_ = nullptr |
The map node memory pool pointer. | |
std::set< MapNodeIndex > | map_preloading_task_index_ |
@bried Keep the index of preloading nodes. | |
boost::recursive_mutex | map_load_mutex_ |
The mutex for preload map node. | |
std::vector< MapNodeIndex > | all_map_node_indices_ |
All the map nodes in the Map (in the disk). | |
std::vector< std::string > | all_map_node_paths_ |
std::vector< std::string > | all_map_node_md5s_ |
All the map nodes' md5 in the Map (in the disk). | |
|
explicit |
在文件 ndt_map.cc 第 24 行定义.
apollo::localization::msf::pyramid_map::NdtMap::~NdtMap | ( | ) |
在文件 ndt_map.cc 第 26 行定义.