add more files msgs
This commit is contained in:
@@ -21,8 +21,27 @@ struct GridCells
|
||||
float cell_width;
|
||||
float cell_height;
|
||||
std::vector<geometry_msgs::Point> cells;
|
||||
|
||||
GridCells() = default;
|
||||
};
|
||||
|
||||
inline bool operator==(const nav_msgs::GridCells & lhs, const nav_msgs::GridCells & rhs)
|
||||
{
|
||||
if(lhs.cells.size() != rhs.cells.size()) return false;
|
||||
for(int i = 0; i < lhs.cells.size(); i++)
|
||||
{
|
||||
if(lhs.cells[i] != rhs.cells[i]) return false;
|
||||
}
|
||||
return lhs.header == rhs.header &&
|
||||
isEqual(lhs.cell_width, rhs.cell_width) &&
|
||||
isEqual(lhs.cell_height, rhs.cell_height);
|
||||
}
|
||||
|
||||
inline bool operator!=(const nav_msgs::GridCells & lhs, const nav_msgs::GridCells & rhs)
|
||||
{
|
||||
return !(lhs == rhs);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif //GRID_CELLS_H
|
||||
Reference in New Issue
Block a user