Hiep update nav_msgs

This commit is contained in:
2025-12-05 11:36:41 +07:00
parent e941fec3f8
commit bf1fc3df34
5 changed files with 303 additions and 123 deletions

View File

@@ -1,47 +1,82 @@
// #an array of cells in a 2D grid
// Header header
// float32 cell_width
// float32 cell_height
// geometry_msgs/Point[] cells
#ifndef GRID_CELLS_H
#define GRID_CELLS_H
// Generated by gencpp from file nav_msgs/GridCells.msg
// DO NOT EDIT!
#ifndef NAV_MSGS_MESSAGE_GRIDCELLS_H
#define NAV_MSGS_MESSAGE_GRIDCELLS_H
#include <cstdint>
#include <string>
#include <vector>
#include "std_msgs/Header.h"
#include "geometry_msgs/Point.h"
#include <memory>
#include <boost/shared_ptr.hpp>
#include <std_msgs/Header.h>
#include <geometry_msgs/Point.h>
namespace nav_msgs
{
struct GridCells
template <class ContainerAllocator>
struct GridCells_
{
std_msgs::Header header;
float cell_width;
float cell_height;
std::vector<geometry_msgs::Point> cells;
GridCells() = default;
};
typedef GridCells_<ContainerAllocator> Type;
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;
GridCells_()
: header()
, cell_width(0.0)
, cell_height(0.0)
, cells() {
}
GridCells_(const ContainerAllocator& _alloc)
: header(_alloc)
, cell_width(0.0)
, cell_height(0.0)
, cells(_alloc) {
(void)_alloc;
}
typedef ::std_msgs::Header _header_type;
_header_type header;
typedef float _cell_width_type;
_cell_width_type cell_width;
typedef float _cell_height_type;
_cell_height_type cell_height;
typedef std::vector< ::geometry_msgs::Point , typename std::allocator_traits<ContainerAllocator>::template rebind_alloc< ::geometry_msgs::Point >> _cells_type;
_cells_type cells;
typedef boost::shared_ptr< ::nav_msgs::GridCells_<ContainerAllocator> > Ptr;
typedef boost::shared_ptr< ::nav_msgs::GridCells_<ContainerAllocator> const> ConstPtr;
}; // struct GridCells_
typedef ::nav_msgs::GridCells_<std::allocator<void> > GridCells;
typedef boost::shared_ptr< ::nav_msgs::GridCells > GridCellsPtr;
typedef boost::shared_ptr< ::nav_msgs::GridCells const> GridCellsConstPtr;
template<typename ContainerAllocator1, typename ContainerAllocator2>
bool operator==(const ::nav_msgs::GridCells_<ContainerAllocator1> & lhs, const ::nav_msgs::GridCells_<ContainerAllocator2> & rhs)
{
return lhs.header == rhs.header &&
isEqual(lhs.cell_width, rhs.cell_width) &&
isEqual(lhs.cell_height, rhs.cell_height);
lhs.cell_width == rhs.cell_width &&
lhs.cell_height == rhs.cell_height &&
lhs.cells == rhs.cells;
}
inline bool operator!=(const nav_msgs::GridCells & lhs, const nav_msgs::GridCells & rhs)
template<typename ContainerAllocator1, typename ContainerAllocator2>
bool operator!=(const ::nav_msgs::GridCells_<ContainerAllocator1> & lhs, const ::nav_msgs::GridCells_<ContainerAllocator2> & rhs)
{
return !(lhs == rhs);
}
}
} // namespace nav_msgs
#endif //GRID_CELLS_H
#endif // NAV_MSGS_MESSAGE_GRIDCELLS_H