21namespace localization {
23namespace pyramid_map {
38 config->put(
"map.map_config.has_count",
has_count_);
44 config->put(
"map.map_runtime.max_intensity_var_value",
56 config.get_optional<
bool>(
"map.map_config.has_intensity");
57 auto has_intensity_var =
58 config.get_optional<
bool>(
"map.map_config.has_intensity_var");
60 config.get_optional<
bool>(
"map.map_config.has_altitude");
61 auto has_altitude_var =
62 config.get_optional<
bool>(
"map.map_config.has_altitude_var");
63 auto has_ground_altitude =
64 config.get_optional<
bool>(
"map.map_config.has_ground_altitude");
65 auto has_count = config.get_optional<
bool>(
"map.map_config.has_count");
66 auto has_ground_count =
67 config.get_optional<
bool>(
"map.map_config.has_ground_count");
69 config.get_optional<
unsigned int>(
"map.map_config.resolution_num");
70 auto resolution_ratio =
71 config.get_optional<
unsigned int>(
"map.map_config.resolution_ratio");
72 auto coordinate_type =
73 config.get_optional<std::string>(
"map.map_config.coordinate_type");
74 auto max_intensity_value =
75 config.get_optional<
float>(
"map.map_runtime.max_intensity_value");
76 auto max_intensity_var_value =
77 config.get_optional<
float>(
"map.map_runtime.max_intensity_var_value");
83 if (has_intensity_var) {
91 if (has_altitude_var) {
95 if (has_ground_altitude) {
103 if (has_ground_count) {
107 if (resolution_num) {
111 if (resolution_ratio) {
115 if (coordinate_type) {
119 if (max_intensity_value) {
123 if (max_intensity_var_value) {
The options of the reflectance map.
virtual bool CreateXml(boost::property_tree::ptree *config) const
Create the XML structure.
virtual bool LoadXml(const boost::property_tree::ptree &config)
Load the map options from a XML structure.
std::string coordinate_type_
coordinate type.
float max_intensity_value_
During the visualization (for example, Call the function get_image() of map node layer),...
float max_intensity_var_value_
During the visualization (for example, Call the function get_image() of map node layer),...
bool has_ground_altitude_
virtual bool LoadXml(const boost::property_tree::ptree &config)
Load the map options from a XML structure.
PyramidMapConfig(const std::string &map_version)
unsigned int resolution_num_
virtual bool CreateXml(boost::property_tree::ptree *config) const
Create the XML structure.
unsigned int resolution_ratio_