22#include <boost/property_tree/ptree.hpp>
23#include <boost/property_tree/xml_parser.hpp>
29namespace localization {
31namespace pyramid_map {
45 explicit BaseMapConfig(
const std::string &map_version =
"0.1");
49 bool Save(
const std::string &file_path);
51 bool Load(
const std::string &file_path);
67 void SetNodeMd5Map(
const std::map<std::string, std::string> &node_md5_map);
69 void AddNodeMd5(
const std::string &node_path,
const std::string &md5);
105 virtual bool CreateXml(boost::property_tree::ptree *config)
const;
107 virtual bool LoadXml(
const boost::property_tree::ptree &config);
The options of the reflectance map.
std::vector< std::string > map_datasets_
The datasets that contributed to the map.
bool Save(const std::string &file_path)
Save the map option to a XML file.
std::string map_folder_path_
The map folder path.
unsigned int map_node_size_y_
The map node size in pixels.
void SetMapNodeSize(unsigned int size_x, unsigned int size_y)
Set map_node_size.
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.
std::string coordinate_type_
Rect2D< double > map_range_
The minimum and maximum UTM range in the map.
virtual bool LoadXml(const boost::property_tree::ptree &config)
Load the map options from a XML structure.
void AddNodeMd5(const std::string &node_path, const std::string &md5)
Add a node md5 pair.
bool Load(const std::string &file_path)
Load the map option from a XML file.
void SetMultiResolutions()
Set multi resolutions.
MapVersion GetMapVersion() const
Get map version.
virtual ~BaseMapConfig()
The deconstructor.
float map_ground_height_offset_
Velodyne's height to the ground.
bool map_is_compression_
Enable the compression.
void SetNodeMd5Map(const std::map< std::string, std::string > &node_md5_map)
Set node_md5_map.
void SetGroundHeightOffset(float map_ground_height_offset)
Set map_ground_height_offset.
unsigned int map_node_size_x_
The map node size in pixels.
std::map< std::string, std::string > node_md5_map_
The map structure to store map node file name and its md5.
void ResizeMapRange()
Resize map range by range and resolutions.
std::string map_version_
The version of map.
void SetSingleResolutions(float resolution=0.125)
Set single resolutions.
void SetMapVersion(const std::string &map_version)
Set map_version.
void SetIsCompression(bool map_is_compression)
Set map_is_compression.