StartChargeRequest.h 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. // Generated by gencpp from file common_msgs/StartChargeRequest.msg
  2. // DO NOT EDIT!
  3. #ifndef COMMON_MSGS_MESSAGE_STARTCHARGEREQUEST_H
  4. #define COMMON_MSGS_MESSAGE_STARTCHARGEREQUEST_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 <common_msgs/TaskInfo.h>
  13. #include <geometry_msgs/PoseStamped.h>
  14. namespace common_msgs
  15. {
  16. template <class ContainerAllocator>
  17. struct StartChargeRequest_
  18. {
  19. typedef StartChargeRequest_<ContainerAllocator> Type;
  20. StartChargeRequest_()
  21. : task_info()
  22. , point() {
  23. }
  24. StartChargeRequest_(const ContainerAllocator& _alloc)
  25. : task_info(_alloc)
  26. , point(_alloc) {
  27. (void)_alloc;
  28. }
  29. typedef ::common_msgs::TaskInfo_<ContainerAllocator> _task_info_type;
  30. _task_info_type task_info;
  31. typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _point_type;
  32. _point_type point;
  33. typedef boost::shared_ptr< ::common_msgs::StartChargeRequest_<ContainerAllocator> > Ptr;
  34. typedef boost::shared_ptr< ::common_msgs::StartChargeRequest_<ContainerAllocator> const> ConstPtr;
  35. }; // struct StartChargeRequest_
  36. typedef ::common_msgs::StartChargeRequest_<std::allocator<void> > StartChargeRequest;
  37. typedef boost::shared_ptr< ::common_msgs::StartChargeRequest > StartChargeRequestPtr;
  38. typedef boost::shared_ptr< ::common_msgs::StartChargeRequest const> StartChargeRequestConstPtr;
  39. // constants requiring out of line definition
  40. template<typename ContainerAllocator>
  41. std::ostream& operator<<(std::ostream& s, const ::common_msgs::StartChargeRequest_<ContainerAllocator> & v)
  42. {
  43. ros::message_operations::Printer< ::common_msgs::StartChargeRequest_<ContainerAllocator> >::stream(s, "", v);
  44. return s;
  45. }
  46. template<typename ContainerAllocator1, typename ContainerAllocator2>
  47. bool operator==(const ::common_msgs::StartChargeRequest_<ContainerAllocator1> & lhs, const ::common_msgs::StartChargeRequest_<ContainerAllocator2> & rhs)
  48. {
  49. return lhs.task_info == rhs.task_info &&
  50. lhs.point == rhs.point;
  51. }
  52. template<typename ContainerAllocator1, typename ContainerAllocator2>
  53. bool operator!=(const ::common_msgs::StartChargeRequest_<ContainerAllocator1> & lhs, const ::common_msgs::StartChargeRequest_<ContainerAllocator2> & rhs)
  54. {
  55. return !(lhs == rhs);
  56. }
  57. } // namespace common_msgs
  58. namespace ros
  59. {
  60. namespace message_traits
  61. {
  62. template <class ContainerAllocator>
  63. struct IsFixedSize< ::common_msgs::StartChargeRequest_<ContainerAllocator> >
  64. : FalseType
  65. { };
  66. template <class ContainerAllocator>
  67. struct IsFixedSize< ::common_msgs::StartChargeRequest_<ContainerAllocator> const>
  68. : FalseType
  69. { };
  70. template <class ContainerAllocator>
  71. struct IsMessage< ::common_msgs::StartChargeRequest_<ContainerAllocator> >
  72. : TrueType
  73. { };
  74. template <class ContainerAllocator>
  75. struct IsMessage< ::common_msgs::StartChargeRequest_<ContainerAllocator> const>
  76. : TrueType
  77. { };
  78. template <class ContainerAllocator>
  79. struct HasHeader< ::common_msgs::StartChargeRequest_<ContainerAllocator> >
  80. : FalseType
  81. { };
  82. template <class ContainerAllocator>
  83. struct HasHeader< ::common_msgs::StartChargeRequest_<ContainerAllocator> const>
  84. : FalseType
  85. { };
  86. template<class ContainerAllocator>
  87. struct MD5Sum< ::common_msgs::StartChargeRequest_<ContainerAllocator> >
  88. {
  89. static const char* value()
  90. {
  91. return "b610470afc16409fe270131f00e709eb";
  92. }
  93. static const char* value(const ::common_msgs::StartChargeRequest_<ContainerAllocator>&) { return value(); }
  94. static const uint64_t static_value1 = 0xb610470afc16409fULL;
  95. static const uint64_t static_value2 = 0xe270131f00e709ebULL;
  96. };
  97. template<class ContainerAllocator>
  98. struct DataType< ::common_msgs::StartChargeRequest_<ContainerAllocator> >
  99. {
  100. static const char* value()
  101. {
  102. return "common_msgs/StartChargeRequest";
  103. }
  104. static const char* value(const ::common_msgs::StartChargeRequest_<ContainerAllocator>&) { return value(); }
  105. };
  106. template<class ContainerAllocator>
  107. struct Definition< ::common_msgs::StartChargeRequest_<ContainerAllocator> >
  108. {
  109. static const char* value()
  110. {
  111. return "#任务信息\n"
  112. "TaskInfo task_info\n"
  113. "#充电桩位置\n"
  114. "geometry_msgs/PoseStamped point\n"
  115. "\n"
  116. "================================================================================\n"
  117. "MSG: common_msgs/TaskInfo\n"
  118. "#任务id\n"
  119. "string task_id\n"
  120. "#任务类型\n"
  121. "int32 task_type\n"
  122. "#子任务类型\n"
  123. "int32 sub_task_type\n"
  124. "\n"
  125. "================================================================================\n"
  126. "MSG: geometry_msgs/PoseStamped\n"
  127. "# A Pose with reference coordinate frame and timestamp\n"
  128. "Header header\n"
  129. "Pose pose\n"
  130. "\n"
  131. "================================================================================\n"
  132. "MSG: std_msgs/Header\n"
  133. "# Standard metadata for higher-level stamped data types.\n"
  134. "# This is generally used to communicate timestamped data \n"
  135. "# in a particular coordinate frame.\n"
  136. "# \n"
  137. "# sequence ID: consecutively increasing ID \n"
  138. "uint32 seq\n"
  139. "#Two-integer timestamp that is expressed as:\n"
  140. "# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n"
  141. "# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n"
  142. "# time-handling sugar is provided by the client library\n"
  143. "time stamp\n"
  144. "#Frame this data is associated with\n"
  145. "string frame_id\n"
  146. "\n"
  147. "================================================================================\n"
  148. "MSG: geometry_msgs/Pose\n"
  149. "# A representation of pose in free space, composed of position and orientation. \n"
  150. "Point position\n"
  151. "Quaternion orientation\n"
  152. "\n"
  153. "================================================================================\n"
  154. "MSG: geometry_msgs/Point\n"
  155. "# This contains the position of a point in free space\n"
  156. "float64 x\n"
  157. "float64 y\n"
  158. "float64 z\n"
  159. "\n"
  160. "================================================================================\n"
  161. "MSG: geometry_msgs/Quaternion\n"
  162. "# This represents an orientation in free space in quaternion form.\n"
  163. "\n"
  164. "float64 x\n"
  165. "float64 y\n"
  166. "float64 z\n"
  167. "float64 w\n"
  168. ;
  169. }
  170. static const char* value(const ::common_msgs::StartChargeRequest_<ContainerAllocator>&) { return value(); }
  171. };
  172. } // namespace message_traits
  173. } // namespace ros
  174. namespace ros
  175. {
  176. namespace serialization
  177. {
  178. template<class ContainerAllocator> struct Serializer< ::common_msgs::StartChargeRequest_<ContainerAllocator> >
  179. {
  180. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  181. {
  182. stream.next(m.task_info);
  183. stream.next(m.point);
  184. }
  185. ROS_DECLARE_ALLINONE_SERIALIZER
  186. }; // struct StartChargeRequest_
  187. } // namespace serialization
  188. } // namespace ros
  189. namespace ros
  190. {
  191. namespace message_operations
  192. {
  193. template<class ContainerAllocator>
  194. struct Printer< ::common_msgs::StartChargeRequest_<ContainerAllocator> >
  195. {
  196. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::common_msgs::StartChargeRequest_<ContainerAllocator>& v)
  197. {
  198. s << indent << "task_info: ";
  199. s << std::endl;
  200. Printer< ::common_msgs::TaskInfo_<ContainerAllocator> >::stream(s, indent + " ", v.task_info);
  201. s << indent << "point: ";
  202. s << std::endl;
  203. Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.point);
  204. }
  205. };
  206. } // namespace message_operations
  207. } // namespace ros
  208. #endif // COMMON_MSGS_MESSAGE_STARTCHARGEREQUEST_H