Apollo
6.0
Open source self driving car software
|
#include <pyramid_map_config.h>
Public Member Functions | |
PyramidMapConfig (const std::string &map_version) | |
~PyramidMapConfig () | |
![]() | |
BaseMapConfig (const std::string &map_version="0.1") | |
The constructor gives the default map settings. More... | |
virtual | ~BaseMapConfig () |
The deconstructor. More... | |
bool | Save (const std::string &file_path) |
Save the map option to a XML file. More... | |
bool | Load (const std::string &file_path) |
Load the map option from a XML file. More... | |
void | SetMapVersion (const std::string &map_version) |
Set map_version. More... | |
void | SetMapNodeSize (unsigned int size_x, unsigned int size_y) |
Set map_node_size. More... | |
void | SetGroundHeightOffset (float map_ground_height_offset) |
Set map_ground_height_offset. More... | |
void | SetIsCompression (bool map_is_compression) |
Set map_is_compression. More... | |
void | ResizeMapRange () |
Resize map range by range and resolutions. More... | |
void | SetSingleResolutions (float resolution=0.125) |
Set single resolutions. More... | |
void | SetMultiResolutions () |
Set multi resolutions. More... | |
void | SetNodeMd5Map (const std::map< std::string, std::string > &node_md5_map) |
Set node_md5_map. More... | |
void | AddNodeMd5 (const std::string &node_path, const std::string &md5) |
Add a node md5 pair. More... | |
MapVersion | GetMapVersion () const |
Get map version. More... | |
Public Attributes | |
bool | has_intensity_ = true |
bool | has_intensity_var_ = true |
bool | has_altitude_ = true |
bool | has_altitude_var_ = true |
bool | has_ground_altitude_ = true |
bool | has_count_ = true |
bool | has_ground_count_ = true |
unsigned int | resolution_num_ = 1 |
unsigned int | resolution_ratio_ = 2 |
std::string | coordinate_type_ = "" |
coordinate type. More... | |
float | max_intensity_value_ = 0.0 |
During the visualization (for example, Call the function get_image() of map node layer), the maximum intensity value in the image. More... | |
float | max_intensity_var_value_ = 0.0 |
During the visualization (for example, Call the function get_image() of map node layer), the maximum intensity value in the image. More... | |
![]() | |
std::string | map_version_ = "" |
The version of map. More... | |
std::vector< float > | map_resolutions_ |
The pixel resolutions in the map in meters. More... | |
unsigned int | map_node_size_x_ = 0 |
The map node size in pixels. More... | |
unsigned int | map_node_size_y_ = 0 |
The map node size in pixels. More... | |
Rect2D< double > | map_range_ |
The minimum and maximum UTM range in the map. The x direction is the easting in UTM coordinate. The y direction is the northing in UTM coordinate. More... | |
float | map_ground_height_offset_ = 0.0f |
Velodyne's height to the ground. Estimate the Velodyne's height based on the ground height. More... | |
bool | map_is_compression_ = false |
Enable the compression. More... | |
std::string | map_folder_path_ = "" |
The map folder path. More... | |
std::vector< std::string > | map_datasets_ |
The datasets that contributed to the map. More... | |
std::map< std::string, std::string > | node_md5_map_ |
The map structure to store map node file name and its md5. key:map node file name; value: md5 of map node file. More... | |
std::string | coordinate_type_ = "" |
Protected Member Functions | |
virtual bool | CreateXml (boost::property_tree::ptree *config) const |
Create the XML structure. More... | |
virtual bool | LoadXml (const boost::property_tree::ptree &config) |
Load the map options from a XML structure. More... | |
|
explicit |
apollo::localization::msf::pyramid_map::PyramidMapConfig::~PyramidMapConfig | ( | ) |
|
protectedvirtual |
Create the XML structure.
Reimplemented from apollo::localization::msf::pyramid_map::BaseMapConfig.
|
protectedvirtual |
Load the map options from a XML structure.
Reimplemented from apollo::localization::msf::pyramid_map::BaseMapConfig.
std::string apollo::localization::msf::pyramid_map::PyramidMapConfig::coordinate_type_ = "" |
coordinate type.
bool apollo::localization::msf::pyramid_map::PyramidMapConfig::has_altitude_ = true |
bool apollo::localization::msf::pyramid_map::PyramidMapConfig::has_altitude_var_ = true |
bool apollo::localization::msf::pyramid_map::PyramidMapConfig::has_count_ = true |
bool apollo::localization::msf::pyramid_map::PyramidMapConfig::has_ground_altitude_ = true |
bool apollo::localization::msf::pyramid_map::PyramidMapConfig::has_ground_count_ = true |
bool apollo::localization::msf::pyramid_map::PyramidMapConfig::has_intensity_ = true |
bool apollo::localization::msf::pyramid_map::PyramidMapConfig::has_intensity_var_ = true |
float apollo::localization::msf::pyramid_map::PyramidMapConfig::max_intensity_value_ = 0.0 |
During the visualization (for example, Call the function get_image() of map node layer), the maximum intensity value in the image.
float apollo::localization::msf::pyramid_map::PyramidMapConfig::max_intensity_var_value_ = 0.0 |
During the visualization (for example, Call the function get_image() of map node layer), the maximum intensity value in the image.
unsigned int apollo::localization::msf::pyramid_map::PyramidMapConfig::resolution_num_ = 1 |
unsigned int apollo::localization::msf::pyramid_map::PyramidMapConfig::resolution_ratio_ = 2 |