23namespace localization {
55 config->add(
"map.map_config.resolutions_z.resolution",
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())));
The options of the reflectance map.
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.
virtual void LoadXml(const boost::property_tree::ptree &config)
Load the map options from a XML structure.
virtual void LoadXml(boost::property_tree::ptree *config)
Load the map options from a XML structure.
virtual void 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.
bool map_is_compression_
Enable the compression.
void SetMultiResolutionsZ()
Set multi resolutions.
void SetSingleResolutionZ(float resolution=1.0f)
Set single resolutions.
std::vector< float > map_resolutions_z_
The resolution of z-axis.