23namespace localization {
25namespace pyramid_map {
70 if (create_map_cells) {
76 int altitude_index)
const {
78 Eigen::Vector2d coord_2d;
86 Eigen::Vector3d coord_3d;
87 coord_3d[0] = coord_2d[0];
88 coord_3d[1] = coord_2d[1];
89 coord_3d[2] = altitude;
96 int altitude_index)
const {
98 Eigen::Vector2d coord_2d;
106 Eigen::Vector3d coord_3d;
107 coord_3d[0] = coord_2d[0];
108 coord_3d[1] = coord_2d[1];
109 coord_3d[2] = altitude;
The options of the reflectance map.
MapVersion GetMapVersion() const
Get map version.
std::string map_version_
The version of map.
std::shared_ptr< CompressionStrategy > compression_strategy_
@bried The compression strategy.
const BaseMapConfig * map_config_
The map settings.
bool is_changed_
Has the map node been changed.
bool is_reserved_
If the node is reserved in map.
MapNodeIndex index_
The index of this node
const Eigen::Vector2d & GetLeftTopCorner() const
static Eigen::Vector2d ComputeLeftTopCorner(const BaseMapConfig &config, const MapNodeIndex &index)
std::shared_ptr< BaseMapMatrixHandler > map_matrix_handler_
The class to load and create map matrix binary.
std::shared_ptr< BaseMapMatrix > map_matrix_
The data structure of the map datas, which is a matrix.
Eigen::Vector2d left_top_corner_
The left top corner of the map node in the global coordinate system.
std::shared_ptr< BaseMapNodeConfig > map_node_config_
The map node config.
float GetMapResolution() const
Get the resolution of this map nodex.
virtual void InitMapMatrix(const BaseMapConfig *map_config)
Initialize the map matrix.
unsigned int m_
The map node ID at the northing direction.
unsigned int resolution_id_
The ID of the resolution.
unsigned int n_
The map node ID at the easting direction.
static float CalAltitude(const float resolution, const int altitude_index)
Calculate altitude from altitude index.
static BaseMapMatrixHandler * AllocNdtMapMatrixHandler()
The data structure of ndt Map matrix.
static void Reduce(NdtMapMatrix *cells, const NdtMapMatrix &cells_new)
Combine two NdtMapMatrix instances (Reduce).
void Init(const BaseMapConfig *map_config)
Initialize the map node.
unsigned int num_valid_single_cells_
The number of single cells with elements.
unsigned int num_valid_cells_
The number of cells with elements.
Eigen::Vector3d GetCoordinateCenter3D(unsigned int x, unsigned int y, int altitude_index) const
Given the local x, y, altitude index, return the global coordinate.
static void Reduce(NdtMapNode *map_node, const NdtMapNode &map_node_new)
Combine two map nodes (Reduce operation in mapreduce).
float GetMapResolutionZ() const
Get the resolution of this map nodex.
Eigen::Vector3d GetCoordinate3D(unsigned int x, unsigned int y, int altitude_index) const
Given the local x, y, altitude index, return the global coordinate.