23namespace localization {
25namespace pyramid_map {
56 config->add(
"map.map_config.resolutions_z.resolution",
66 const auto& resolutions_z = config->get_child(
"map.map_config.resolutions_z");
67 std::for_each(resolutions_z.begin(), resolutions_z.end(),
68 [
this](
const boost::property_tree::ptree::value_type& v) {
69 map_resolutions_z_.push_back(
70 static_cast<float>(atof(v.second.data().c_str())));
The options of the reflectance map.
virtual bool CreateXml(boost::property_tree::ptree *config) const
Create the XML structure.
std::vector< float > map_resolutions_
The pixel resolutions in the map in meters.
virtual bool LoadXml(const boost::property_tree::ptree &config)
Load the map options from a XML structure.
void SetMultiResolutionsZ()
Set multi resolutions.
bool map_is_compression_
Enable the compression.
virtual bool LoadXml(boost::property_tree::ptree *config)
Load the map options from a XML structure.
void SetSingleResolutionZ(float resolution=1.0f)
Set single resolutions.
std::vector< float > map_resolutions_z_
The resolution of z-axis.
virtual bool CreateXml(boost::property_tree::ptree *config) const
Create the XML structure.
NdtMapConfig(std::string map_version="0.1")
The constructor gives the default map settings.