add more files msgs

This commit is contained in:
2025-12-04 15:11:15 +07:00
parent a78034191c
commit 2c40e67e32
91 changed files with 3548 additions and 42 deletions

View File

@@ -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