21namespace localization {
30 int altitude_index)
const {
32 Eigen::Vector2d coord_2d;
40 Eigen::Vector3d coord_3d;
41 coord_3d[0] = coord_2d[0];
42 coord_3d[1] = coord_2d[1];
43 coord_3d[2] = altitude;
50 int altitude_index)
const {
52 Eigen::Vector2d coord_2d;
60 Eigen::Vector3d coord_3d;
61 coord_3d[0] = coord_2d[0];
62 coord_3d[1] = coord_2d[1];
63 coord_3d[2] = altitude;
The data structure of a Node in the map.
const Eigen::Vector2d & GetLeftTopCorner() const
Get the left top corner of the map node.
BaseMapMatrix * map_matrix_
The data structure of the map datas, which is a matrix.
MapNodeIndex index_
The index of this node.
float GetMapResolution() const
Get the resolution of this map nodex.
unsigned int m_
The map node ID at the northing direction.
unsigned int n_
The map node ID at the easting direction.
unsigned int resolution_id_
The ID of the resolution.
static float CalAltitude(const float resolution, const int altitude_index)
Calculate altitude from altitude index.
The data structure of ndt Map matrix.
static void Reduce(NdtMapMatrix *cells, const NdtMapMatrix &cells_new)
Combine two NdtMapMatrix instances (Reduce).
unsigned int num_valid_cells_
The number of cells with elements.
static void Reduce(NdtMapNode *map_node, const NdtMapNode &map_node_new)
Combine two map nodes (Reduce operation in mapreduce).
unsigned int num_valid_single_cells_
The number of single cells with elements.
float GetMapResolutionZ() const
Get the resolution of this map nodex.
Eigen::Vector3d GetCoordinateCenter3D(unsigned int x, unsigned int y, int altitude_index) const
Given the local x, y, altitude index, return the global coordinate.
Eigen::Vector3d GetCoordinate3D(unsigned int x, unsigned int y, int altitude_index) const
Given the local x, y, altitude index, return the global coordinate.