22 #include <boost/property_tree/xml_parser.hpp> 28 namespace localization {
37 bool Save(
const std::string file_path);
39 bool Load(
const std::string file_path);
75 virtual void CreateXml(boost::property_tree::ptree* config)
const;
77 virtual void LoadXml(
const boost::property_tree::ptree& config);
bool map_is_compression_
Enable the compression.
Definition: base_map_config.h:66
The options of the reflectance map.
Definition: base_map_config.h:32
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
float map_ground_height_offset_
Velodyne's height to the ground. Estimate the Velodyne's height based on the ground height...
Definition: base_map_config.h:64
unsigned int map_node_size_y_
The map node size in pixels.
Definition: base_map_config.h:54
virtual void LoadXml(const boost::property_tree::ptree &config)
Load the map options from a XML structure.
std::string map_version_
The version of map.
Definition: base_map_config.h:48
std::string map_folder_path_
The map folder path.
Definition: base_map_config.h:69
std::vector< float > map_resolutions_
The pixel resolutions in the map in meters.
Definition: base_map_config.h:50
void ResizeMapRange()
Resize map range by range and resolutions.
virtual void CreateXml(boost::property_tree::ptree *config) const
Create the XML structure.
void SetMultiResolutions()
Set multi resolutions.
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.
Rect2D< double > map_range_
The minimum and maximum UTM range in the map.
Definition: base_map_config.h:60
void SetSingleResolutions(float resolution=0.125)
Set single resolutions.
unsigned int map_node_size_x_
The map node size in pixels.
Definition: base_map_config.h:52
std::vector< std::string > map_datasets_
The datasets that contributed to the map.
Definition: base_map_config.h:71
bool Load(const std::string file_path)
Load the map option from a XML file.