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

The options of the reflectance map. 更多...

#include <ndt_map_config.h>

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

Public 成员函数

 NdtMapConfig (std::string map_version="0.1")
 The constructor gives the default map settings.
 
 ~NdtMapConfig ()
 
void SetSingleResolutionZ (float resolution=1.0f)
 Set single resolutions.
 
void SetMultiResolutionsZ ()
 Set multi resolutions.
 
- Public 成员函数 继承自 apollo::localization::msf::BaseMapConfig
 BaseMapConfig (std::string map_version="0.1")
 The constructor gives the default map settings.
 
bool Save (const std::string file_path)
 Save the map option to a XML file.
 
bool Load (const std::string file_path)
 Load the map option from a XML file.
 
void ResizeMapRange ()
 Resize map range by range and resolutions.
 
void SetSingleResolutions (float resolution=0.125)
 Set single resolutions.
 
void SetMultiResolutions ()
 Set multi resolutions.
 

Public 属性

std::vector< float > map_resolutions_z_
 The resolution of z-axis.
 
bool map_is_compression_
 Enable the compression.
 
- Public 属性 继承自 apollo::localization::msf::BaseMapConfig
std::string map_version_
 The version of map.
 
std::vector< float > map_resolutions_
 The pixel resolutions in the map in meters.
 
unsigned int map_node_size_x_
 The map node size in pixels.
 
unsigned int map_node_size_y_
 The map node size in pixels.
 
Rect2D< double > map_range_
 The minimum and maximum UTM range in the map.
 
float map_ground_height_offset_
 Velodyne's height to the ground.
 
bool map_is_compression_
 Enable the compression.
 
std::string map_folder_path_
 The map folder path.
 
std::vector< std::string > map_datasets_
 The datasets that contributed to the map.
 

Protected 成员函数

virtual void CreateXml (boost::property_tree::ptree *config) const
 Create the XML structure.
 
virtual void LoadXml (boost::property_tree::ptree *config)
 Load the map options from a XML structure.
 
- Protected 成员函数 继承自 apollo::localization::msf::BaseMapConfig
virtual void LoadXml (const boost::property_tree::ptree &config)
 Load the map options from a XML structure.
 

详细描述

The options of the reflectance map.

在文件 ndt_map_config.h28 行定义.

构造及析构函数说明

◆ NdtMapConfig()

apollo::localization::msf::NdtMapConfig::NdtMapConfig ( std::string  map_version = "0.1")
explicit

The constructor gives the default map settings.

在文件 ndt_map_config.cc26 行定义.

27 : BaseMapConfig(map_version) {
29 map_resolutions_z_.push_back(1.0f);
30}
BaseMapConfig(std::string map_version="0.1")
The constructor gives the default map settings.
bool map_is_compression_
Enable the compression.
std::vector< float > map_resolutions_z_
The resolution of z-axis.

◆ ~NdtMapConfig()

apollo::localization::msf::NdtMapConfig::~NdtMapConfig ( )
inline

在文件 ndt_map_config.h32 行定义.

32{}

成员函数说明

◆ CreateXml()

void apollo::localization::msf::NdtMapConfig::CreateXml ( boost::property_tree::ptree *  config) const
protectedvirtual

Create the XML structure.

重载 apollo::localization::msf::BaseMapConfig .

在文件 ndt_map_config.cc51 行定义.

51 {
53 config->put("map.map_config.compression", map_is_compression_);
54 for (size_t i = 0; i < map_resolutions_.size(); ++i) {
55 config->add("map.map_config.resolutions_z.resolution",
57 }
58}
std::vector< float > map_resolutions_
The pixel resolutions in the map in meters.
virtual void CreateXml(boost::property_tree::ptree *config) const
Create the XML structure.

◆ LoadXml()

void apollo::localization::msf::NdtMapConfig::LoadXml ( boost::property_tree::ptree *  config)
protectedvirtual

Load the map options from a XML structure.

在文件 ndt_map_config.cc60 行定义.

60 {
62 map_is_compression_ = config->get<bool>("map.map_config.compression");
63 map_resolutions_z_.clear();
64 const auto& resolutions_z = config->get_child("map.map_config.resolutions_z");
65 std::for_each(resolutions_z.begin(), resolutions_z.end(),
66 [this](const boost::property_tree::ptree::value_type& v) {
67 map_resolutions_z_.push_back(
68 static_cast<float>(atof(v.second.data().c_str())));
69 });
70}
virtual void LoadXml(const boost::property_tree::ptree &config)
Load the map options from a XML structure.

◆ SetMultiResolutionsZ()

void apollo::localization::msf::NdtMapConfig::SetMultiResolutionsZ ( )

Set multi resolutions.

在文件 ndt_map_config.cc37 行定义.

37 {
38 map_resolutions_z_.clear();
39 map_resolutions_z_.push_back(0.03125);
40 map_resolutions_z_.push_back(0.0625);
41 map_resolutions_z_.push_back(0.125);
42 map_resolutions_z_.push_back(0.25);
43 map_resolutions_z_.push_back(0.5);
44 map_resolutions_z_.push_back(1);
45 map_resolutions_z_.push_back(2);
46 map_resolutions_z_.push_back(4);
47 map_resolutions_z_.push_back(8);
48 map_resolutions_z_.push_back(16);
49}

◆ SetSingleResolutionZ()

void apollo::localization::msf::NdtMapConfig::SetSingleResolutionZ ( float  resolution = 1.0f)

Set single resolutions.

在文件 ndt_map_config.cc32 行定义.

32 {
33 map_resolutions_z_.clear();
34 map_resolutions_z_.push_back(resolution);
35}

类成员变量说明

◆ map_is_compression_

bool apollo::localization::msf::NdtMapConfig::map_is_compression_

Enable the compression.

在文件 ndt_map_config.h43 行定义.

◆ map_resolutions_z_

std::vector<float> apollo::localization::msf::NdtMapConfig::map_resolutions_z_

The resolution of z-axis.

在文件 ndt_map_config.h40 行定义.


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