40 lines
862 B
C++
40 lines
862 B
C++
#ifndef MAP_META_DATA_H
|
|
#define MAP_META_DATA_H
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <vector>
|
|
#include "geometry_msgs/Pose.h"
|
|
// #include "utils.h"
|
|
|
|
namespace nav_msgs
|
|
{
|
|
|
|
struct MapMetaData
|
|
{
|
|
double map_load_time;
|
|
float resolution;
|
|
uint32_t width;
|
|
uint32_t height;
|
|
geometry_msgs::Pose origin;
|
|
|
|
MapMetaData() : map_load_time(0.0), resolution(0.0), width(0), height(0), origin() {}
|
|
};
|
|
|
|
inline bool operator==(const nav_msgs::MapMetaData & lhs, const nav_msgs::MapMetaData & rhs)
|
|
{
|
|
return isEqual(lhs.map_load_time, rhs.map_load_time) &&
|
|
isEqual(lhs.resolution, rhs.resolution) &&
|
|
lhs.width == rhs.width &&
|
|
lhs.height == rhs.height &&
|
|
lhs.origin == rhs.origin;
|
|
}
|
|
|
|
inline bool operator!=(const nav_msgs::MapMetaData & lhs, const nav_msgs::MapMetaData & rhs)
|
|
{
|
|
return !(lhs == rhs);
|
|
}
|
|
|
|
}
|
|
|
|
#endif //MAP_META_DATA_H
|