EvaluateMapRequest.h 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. // Generated by gencpp from file common_msgs/EvaluateMapRequest.msg
  2. // DO NOT EDIT!
  3. #ifndef COMMON_MSGS_MESSAGE_EVALUATEMAPREQUEST_H
  4. #define COMMON_MSGS_MESSAGE_EVALUATEMAPREQUEST_H
  5. #include <string>
  6. #include <vector>
  7. #include <memory>
  8. #include <ros/types.h>
  9. #include <ros/serialization.h>
  10. #include <ros/builtin_message_traits.h>
  11. #include <ros/message_operations.h>
  12. #include <geometry_msgs/Pose.h>
  13. namespace common_msgs
  14. {
  15. template <class ContainerAllocator>
  16. struct EvaluateMapRequest_
  17. {
  18. typedef EvaluateMapRequest_<ContainerAllocator> Type;
  19. EvaluateMapRequest_()
  20. : start(false)
  21. , mode(0)
  22. , pose() {
  23. }
  24. EvaluateMapRequest_(const ContainerAllocator& _alloc)
  25. : start(false)
  26. , mode(0)
  27. , pose(_alloc) {
  28. (void)_alloc;
  29. }
  30. typedef uint8_t _start_type;
  31. _start_type start;
  32. typedef uint8_t _mode_type;
  33. _mode_type mode;
  34. typedef std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename std::allocator_traits<ContainerAllocator>::template rebind_alloc< ::geometry_msgs::Pose_<ContainerAllocator> >> _pose_type;
  35. _pose_type pose;
  36. typedef boost::shared_ptr< ::common_msgs::EvaluateMapRequest_<ContainerAllocator> > Ptr;
  37. typedef boost::shared_ptr< ::common_msgs::EvaluateMapRequest_<ContainerAllocator> const> ConstPtr;
  38. }; // struct EvaluateMapRequest_
  39. typedef ::common_msgs::EvaluateMapRequest_<std::allocator<void> > EvaluateMapRequest;
  40. typedef boost::shared_ptr< ::common_msgs::EvaluateMapRequest > EvaluateMapRequestPtr;
  41. typedef boost::shared_ptr< ::common_msgs::EvaluateMapRequest const> EvaluateMapRequestConstPtr;
  42. // constants requiring out of line definition
  43. template<typename ContainerAllocator>
  44. std::ostream& operator<<(std::ostream& s, const ::common_msgs::EvaluateMapRequest_<ContainerAllocator> & v)
  45. {
  46. ros::message_operations::Printer< ::common_msgs::EvaluateMapRequest_<ContainerAllocator> >::stream(s, "", v);
  47. return s;
  48. }
  49. template<typename ContainerAllocator1, typename ContainerAllocator2>
  50. bool operator==(const ::common_msgs::EvaluateMapRequest_<ContainerAllocator1> & lhs, const ::common_msgs::EvaluateMapRequest_<ContainerAllocator2> & rhs)
  51. {
  52. return lhs.start == rhs.start &&
  53. lhs.mode == rhs.mode &&
  54. lhs.pose == rhs.pose;
  55. }
  56. template<typename ContainerAllocator1, typename ContainerAllocator2>
  57. bool operator!=(const ::common_msgs::EvaluateMapRequest_<ContainerAllocator1> & lhs, const ::common_msgs::EvaluateMapRequest_<ContainerAllocator2> & rhs)
  58. {
  59. return !(lhs == rhs);
  60. }
  61. } // namespace common_msgs
  62. namespace ros
  63. {
  64. namespace message_traits
  65. {
  66. template <class ContainerAllocator>
  67. struct IsFixedSize< ::common_msgs::EvaluateMapRequest_<ContainerAllocator> >
  68. : FalseType
  69. { };
  70. template <class ContainerAllocator>
  71. struct IsFixedSize< ::common_msgs::EvaluateMapRequest_<ContainerAllocator> const>
  72. : FalseType
  73. { };
  74. template <class ContainerAllocator>
  75. struct IsMessage< ::common_msgs::EvaluateMapRequest_<ContainerAllocator> >
  76. : TrueType
  77. { };
  78. template <class ContainerAllocator>
  79. struct IsMessage< ::common_msgs::EvaluateMapRequest_<ContainerAllocator> const>
  80. : TrueType
  81. { };
  82. template <class ContainerAllocator>
  83. struct HasHeader< ::common_msgs::EvaluateMapRequest_<ContainerAllocator> >
  84. : FalseType
  85. { };
  86. template <class ContainerAllocator>
  87. struct HasHeader< ::common_msgs::EvaluateMapRequest_<ContainerAllocator> const>
  88. : FalseType
  89. { };
  90. template<class ContainerAllocator>
  91. struct MD5Sum< ::common_msgs::EvaluateMapRequest_<ContainerAllocator> >
  92. {
  93. static const char* value()
  94. {
  95. return "c74c6a74df79353f406de0c433b540e1";
  96. }
  97. static const char* value(const ::common_msgs::EvaluateMapRequest_<ContainerAllocator>&) { return value(); }
  98. static const uint64_t static_value1 = 0xc74c6a74df79353fULL;
  99. static const uint64_t static_value2 = 0x406de0c433b540e1ULL;
  100. };
  101. template<class ContainerAllocator>
  102. struct DataType< ::common_msgs::EvaluateMapRequest_<ContainerAllocator> >
  103. {
  104. static const char* value()
  105. {
  106. return "common_msgs/EvaluateMapRequest";
  107. }
  108. static const char* value(const ::common_msgs::EvaluateMapRequest_<ContainerAllocator>&) { return value(); }
  109. };
  110. template<class ContainerAllocator>
  111. struct Definition< ::common_msgs::EvaluateMapRequest_<ContainerAllocator> >
  112. {
  113. static const char* value()
  114. {
  115. return "bool start\n"
  116. "#0-手动模式,1-自动模式\n"
  117. "uint8 mode\n"
  118. "#机器人评估地图范围\n"
  119. "geometry_msgs/Pose[] pose\n"
  120. "\n"
  121. "================================================================================\n"
  122. "MSG: geometry_msgs/Pose\n"
  123. "# A representation of pose in free space, composed of position and orientation. \n"
  124. "Point position\n"
  125. "Quaternion orientation\n"
  126. "\n"
  127. "================================================================================\n"
  128. "MSG: geometry_msgs/Point\n"
  129. "# This contains the position of a point in free space\n"
  130. "float64 x\n"
  131. "float64 y\n"
  132. "float64 z\n"
  133. "\n"
  134. "================================================================================\n"
  135. "MSG: geometry_msgs/Quaternion\n"
  136. "# This represents an orientation in free space in quaternion form.\n"
  137. "\n"
  138. "float64 x\n"
  139. "float64 y\n"
  140. "float64 z\n"
  141. "float64 w\n"
  142. ;
  143. }
  144. static const char* value(const ::common_msgs::EvaluateMapRequest_<ContainerAllocator>&) { return value(); }
  145. };
  146. } // namespace message_traits
  147. } // namespace ros
  148. namespace ros
  149. {
  150. namespace serialization
  151. {
  152. template<class ContainerAllocator> struct Serializer< ::common_msgs::EvaluateMapRequest_<ContainerAllocator> >
  153. {
  154. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  155. {
  156. stream.next(m.start);
  157. stream.next(m.mode);
  158. stream.next(m.pose);
  159. }
  160. ROS_DECLARE_ALLINONE_SERIALIZER
  161. }; // struct EvaluateMapRequest_
  162. } // namespace serialization
  163. } // namespace ros
  164. namespace ros
  165. {
  166. namespace message_operations
  167. {
  168. template<class ContainerAllocator>
  169. struct Printer< ::common_msgs::EvaluateMapRequest_<ContainerAllocator> >
  170. {
  171. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::common_msgs::EvaluateMapRequest_<ContainerAllocator>& v)
  172. {
  173. s << indent << "start: ";
  174. Printer<uint8_t>::stream(s, indent + " ", v.start);
  175. s << indent << "mode: ";
  176. Printer<uint8_t>::stream(s, indent + " ", v.mode);
  177. s << indent << "pose[]" << std::endl;
  178. for (size_t i = 0; i < v.pose.size(); ++i)
  179. {
  180. s << indent << " pose[" << i << "]: ";
  181. s << std::endl;
  182. s << indent;
  183. Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose[i]);
  184. }
  185. }
  186. };
  187. } // namespace message_operations
  188. } // namespace ros
  189. #endif // COMMON_MSGS_MESSAGE_EVALUATEMAPREQUEST_H