Apollo 10.0
自动驾驶开放平台
apollo::localization::msf::pyramid_map::NdtMap类 参考

#include <ndt_map.h>

类 apollo::localization::msf::pyramid_map::NdtMap 继承关系图:
apollo::localization::msf::pyramid_map::NdtMap 的协作图:

Public 成员函数

 NdtMap (NdtMapConfig *config)
 
 ~NdtMap ()
 
- Public 成员函数 继承自 apollo::localization::msf::pyramid_map::BaseMap
 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.
 
BaseMapNodeGetMapNode (const MapNodeIndex &index)
 Return the map node, if it's not in the cache, return false.
 
BaseMapNodeGetMapNodeSafe (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 BaseMapConfigGetMapConfig () const
 Get the map config.
 
BaseMapConfigGetMapConfig ()
 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.
 

额外继承的成员函数

- Protected 成员函数 继承自 apollo::localization::msf::pyramid_map::BaseMap
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.
 
- Protected 属性 继承自 apollo::localization::msf::pyramid_map::BaseMap
BaseMapConfigmap_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.
 
BaseMapNodePoolmap_node_pool_ = nullptr
 The map node memory pool pointer.
 
std::set< MapNodeIndexmap_preloading_task_index_
 @bried Keep the index of preloading nodes.
 
boost::recursive_mutex map_load_mutex_
 The mutex for preload map node.
 
std::vector< MapNodeIndexall_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).
 

详细描述

在文件 ndt_map.h29 行定义.

构造及析构函数说明

◆ NdtMap()

apollo::localization::msf::pyramid_map::NdtMap::NdtMap ( NdtMapConfig config)
explicit

在文件 ndt_map.cc24 行定义.

24: BaseMap(config) {}
BaseMap(BaseMapConfig *config)
The constructor.
Definition base_map.cc:32

◆ ~NdtMap()

apollo::localization::msf::pyramid_map::NdtMap::~NdtMap ( )

在文件 ndt_map.cc26 行定义.

26{}

该类的文档由以下文件生成: