TaskFeedbackInfo.h 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. // Generated by gencpp from file common_msgs/TaskFeedbackInfo.msg
  2. // DO NOT EDIT!
  3. #ifndef COMMON_MSGS_MESSAGE_TASKFEEDBACKINFO_H
  4. #define COMMON_MSGS_MESSAGE_TASKFEEDBACKINFO_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. namespace common_msgs
  14. {
  15. template <class ContainerAllocator>
  16. struct TaskFeedbackInfo_
  17. {
  18. typedef TaskFeedbackInfo_<ContainerAllocator> Type;
  19. TaskFeedbackInfo_()
  20. : task_info()
  21. , task_status(0)
  22. , task_error_code(0)
  23. , message() {
  24. }
  25. TaskFeedbackInfo_(const ContainerAllocator& _alloc)
  26. : task_info(_alloc)
  27. , task_status(0)
  28. , task_error_code(0)
  29. , message(_alloc) {
  30. (void)_alloc;
  31. }
  32. typedef ::common_msgs::TaskInfo_<ContainerAllocator> _task_info_type;
  33. _task_info_type task_info;
  34. typedef int8_t _task_status_type;
  35. _task_status_type task_status;
  36. typedef int64_t _task_error_code_type;
  37. _task_error_code_type task_error_code;
  38. typedef std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>> _message_type;
  39. _message_type message;
  40. typedef boost::shared_ptr< ::common_msgs::TaskFeedbackInfo_<ContainerAllocator> > Ptr;
  41. typedef boost::shared_ptr< ::common_msgs::TaskFeedbackInfo_<ContainerAllocator> const> ConstPtr;
  42. }; // struct TaskFeedbackInfo_
  43. typedef ::common_msgs::TaskFeedbackInfo_<std::allocator<void> > TaskFeedbackInfo;
  44. typedef boost::shared_ptr< ::common_msgs::TaskFeedbackInfo > TaskFeedbackInfoPtr;
  45. typedef boost::shared_ptr< ::common_msgs::TaskFeedbackInfo const> TaskFeedbackInfoConstPtr;
  46. // constants requiring out of line definition
  47. template<typename ContainerAllocator>
  48. std::ostream& operator<<(std::ostream& s, const ::common_msgs::TaskFeedbackInfo_<ContainerAllocator> & v)
  49. {
  50. ros::message_operations::Printer< ::common_msgs::TaskFeedbackInfo_<ContainerAllocator> >::stream(s, "", v);
  51. return s;
  52. }
  53. template<typename ContainerAllocator1, typename ContainerAllocator2>
  54. bool operator==(const ::common_msgs::TaskFeedbackInfo_<ContainerAllocator1> & lhs, const ::common_msgs::TaskFeedbackInfo_<ContainerAllocator2> & rhs)
  55. {
  56. return lhs.task_info == rhs.task_info &&
  57. lhs.task_status == rhs.task_status &&
  58. lhs.task_error_code == rhs.task_error_code &&
  59. lhs.message == rhs.message;
  60. }
  61. template<typename ContainerAllocator1, typename ContainerAllocator2>
  62. bool operator!=(const ::common_msgs::TaskFeedbackInfo_<ContainerAllocator1> & lhs, const ::common_msgs::TaskFeedbackInfo_<ContainerAllocator2> & rhs)
  63. {
  64. return !(lhs == rhs);
  65. }
  66. } // namespace common_msgs
  67. namespace ros
  68. {
  69. namespace message_traits
  70. {
  71. template <class ContainerAllocator>
  72. struct IsFixedSize< ::common_msgs::TaskFeedbackInfo_<ContainerAllocator> >
  73. : FalseType
  74. { };
  75. template <class ContainerAllocator>
  76. struct IsFixedSize< ::common_msgs::TaskFeedbackInfo_<ContainerAllocator> const>
  77. : FalseType
  78. { };
  79. template <class ContainerAllocator>
  80. struct IsMessage< ::common_msgs::TaskFeedbackInfo_<ContainerAllocator> >
  81. : TrueType
  82. { };
  83. template <class ContainerAllocator>
  84. struct IsMessage< ::common_msgs::TaskFeedbackInfo_<ContainerAllocator> const>
  85. : TrueType
  86. { };
  87. template <class ContainerAllocator>
  88. struct HasHeader< ::common_msgs::TaskFeedbackInfo_<ContainerAllocator> >
  89. : FalseType
  90. { };
  91. template <class ContainerAllocator>
  92. struct HasHeader< ::common_msgs::TaskFeedbackInfo_<ContainerAllocator> const>
  93. : FalseType
  94. { };
  95. template<class ContainerAllocator>
  96. struct MD5Sum< ::common_msgs::TaskFeedbackInfo_<ContainerAllocator> >
  97. {
  98. static const char* value()
  99. {
  100. return "2f7485e379d100f03211543f38d3436b";
  101. }
  102. static const char* value(const ::common_msgs::TaskFeedbackInfo_<ContainerAllocator>&) { return value(); }
  103. static const uint64_t static_value1 = 0x2f7485e379d100f0ULL;
  104. static const uint64_t static_value2 = 0x3211543f38d3436bULL;
  105. };
  106. template<class ContainerAllocator>
  107. struct DataType< ::common_msgs::TaskFeedbackInfo_<ContainerAllocator> >
  108. {
  109. static const char* value()
  110. {
  111. return "common_msgs/TaskFeedbackInfo";
  112. }
  113. static const char* value(const ::common_msgs::TaskFeedbackInfo_<ContainerAllocator>&) { return value(); }
  114. };
  115. template<class ContainerAllocator>
  116. struct Definition< ::common_msgs::TaskFeedbackInfo_<ContainerAllocator> >
  117. {
  118. static const char* value()
  119. {
  120. return "#任务执行反馈\n"
  121. "#任务信息\n"
  122. "TaskInfo task_info\n"
  123. "#任务执行状态\n"
  124. "int8 task_status\n"
  125. "#任务执行错误码(无错时为0)\n"
  126. "int64 task_error_code\n"
  127. "#描述\n"
  128. "string message\n"
  129. "================================================================================\n"
  130. "MSG: common_msgs/TaskInfo\n"
  131. "#任务id\n"
  132. "string task_id\n"
  133. "#任务类型\n"
  134. "int32 task_type\n"
  135. "#子任务类型\n"
  136. "int32 sub_task_type\n"
  137. ;
  138. }
  139. static const char* value(const ::common_msgs::TaskFeedbackInfo_<ContainerAllocator>&) { return value(); }
  140. };
  141. } // namespace message_traits
  142. } // namespace ros
  143. namespace ros
  144. {
  145. namespace serialization
  146. {
  147. template<class ContainerAllocator> struct Serializer< ::common_msgs::TaskFeedbackInfo_<ContainerAllocator> >
  148. {
  149. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  150. {
  151. stream.next(m.task_info);
  152. stream.next(m.task_status);
  153. stream.next(m.task_error_code);
  154. stream.next(m.message);
  155. }
  156. ROS_DECLARE_ALLINONE_SERIALIZER
  157. }; // struct TaskFeedbackInfo_
  158. } // namespace serialization
  159. } // namespace ros
  160. namespace ros
  161. {
  162. namespace message_operations
  163. {
  164. template<class ContainerAllocator>
  165. struct Printer< ::common_msgs::TaskFeedbackInfo_<ContainerAllocator> >
  166. {
  167. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::common_msgs::TaskFeedbackInfo_<ContainerAllocator>& v)
  168. {
  169. s << indent << "task_info: ";
  170. s << std::endl;
  171. Printer< ::common_msgs::TaskInfo_<ContainerAllocator> >::stream(s, indent + " ", v.task_info);
  172. s << indent << "task_status: ";
  173. Printer<int8_t>::stream(s, indent + " ", v.task_status);
  174. s << indent << "task_error_code: ";
  175. Printer<int64_t>::stream(s, indent + " ", v.task_error_code);
  176. s << indent << "message: ";
  177. Printer<std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>>>::stream(s, indent + " ", v.message);
  178. }
  179. };
  180. } // namespace message_operations
  181. } // namespace ros
  182. #endif // COMMON_MSGS_MESSAGE_TASKFEEDBACKINFO_H