22namespace localization {
40 return !(*
this == index);
44 std::ostringstream ss;
46 <<
" Zone ID: " <<
zone_id_ <<
" Easting: " <<
n_ <<
" Northing: " <<
m_
52 const Eigen::Vector3d& coordinate,
53 unsigned int resolution_id,
55 Eigen::Vector2d coord2d(coordinate[0], coordinate[1]);
60 const Eigen::Vector2d& coordinate,
61 unsigned int resolution_id,
73 if (n >= 0 && m >= 0 &&
85 unsigned int resolution_id) {
86 return static_cast<unsigned int>(
93 unsigned int resolution_id) {
94 return static_cast<unsigned int>(
The options of the reflectance map.
std::vector< float > map_resolutions_
The pixel resolutions in the map in meters.
Rect2D< double > map_range_
The minimum and maximum UTM range in the map.
unsigned int map_node_size_y_
The map node size in pixels.
unsigned int map_node_size_x_
The map node size in pixels.
bool operator!=(const MapNodeIndex &index) const
Overload the unequal operator.
unsigned int m_
The map node ID at the northing direction.
unsigned int n_
The map node ID at the easting direction.
bool operator<(const MapNodeIndex &index) const
Overload the less than operator.
static unsigned int GetMapIndexRangeNorth(const BaseMapConfig &option, unsigned int resolution_id)
Get the index range (maximum possible index + 1) in the north direction.
bool operator==(const MapNodeIndex &index) const
Overload the equal operator.
static unsigned int GetMapIndexRangeEast(const BaseMapConfig &option, unsigned int resolution_id)
Get the index range (maximum possible index + 1) in the east direction.
MapNodeIndex()
The constructor.
static MapNodeIndex GetMapNodeIndex(const BaseMapConfig &option, const Eigen::Vector3d &coordinate, unsigned int resolution_id, int zone_id)
Construct a map node index, given a global coordinate, eigen version.
unsigned int resolution_id_
The ID of the resolution.
std::string ToString() const
T GetMaxY() const
Get the max y of the rectangle.
T GetMaxX() const
Get the max x of the rectangle.
T GetMinX() const
Get the min x of the rectangle.
T GetMinY() const
Get the min y of the rectangle.
std::ostream & operator<<(std::ostream &cerr, const MapNodeIndex &index)