NavGoalResponse.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. // Generated by gencpp from file common_msgs/NavGoalResponse.msg
  2. // DO NOT EDIT!
  3. #ifndef COMMON_MSGS_MESSAGE_NAVGOALRESPONSE_H
  4. #define COMMON_MSGS_MESSAGE_NAVGOALRESPONSE_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. namespace common_msgs
  13. {
  14. template <class ContainerAllocator>
  15. struct NavGoalResponse_
  16. {
  17. typedef NavGoalResponse_<ContainerAllocator> Type;
  18. NavGoalResponse_()
  19. : success(false)
  20. , message()
  21. , task_error_code(0) {
  22. }
  23. NavGoalResponse_(const ContainerAllocator& _alloc)
  24. : success(false)
  25. , message(_alloc)
  26. , task_error_code(0) {
  27. (void)_alloc;
  28. }
  29. typedef uint8_t _success_type;
  30. _success_type success;
  31. typedef std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>> _message_type;
  32. _message_type message;
  33. typedef int64_t _task_error_code_type;
  34. _task_error_code_type task_error_code;
  35. typedef boost::shared_ptr< ::common_msgs::NavGoalResponse_<ContainerAllocator> > Ptr;
  36. typedef boost::shared_ptr< ::common_msgs::NavGoalResponse_<ContainerAllocator> const> ConstPtr;
  37. }; // struct NavGoalResponse_
  38. typedef ::common_msgs::NavGoalResponse_<std::allocator<void> > NavGoalResponse;
  39. typedef boost::shared_ptr< ::common_msgs::NavGoalResponse > NavGoalResponsePtr;
  40. typedef boost::shared_ptr< ::common_msgs::NavGoalResponse const> NavGoalResponseConstPtr;
  41. // constants requiring out of line definition
  42. template<typename ContainerAllocator>
  43. std::ostream& operator<<(std::ostream& s, const ::common_msgs::NavGoalResponse_<ContainerAllocator> & v)
  44. {
  45. ros::message_operations::Printer< ::common_msgs::NavGoalResponse_<ContainerAllocator> >::stream(s, "", v);
  46. return s;
  47. }
  48. template<typename ContainerAllocator1, typename ContainerAllocator2>
  49. bool operator==(const ::common_msgs::NavGoalResponse_<ContainerAllocator1> & lhs, const ::common_msgs::NavGoalResponse_<ContainerAllocator2> & rhs)
  50. {
  51. return lhs.success == rhs.success &&
  52. lhs.message == rhs.message &&
  53. lhs.task_error_code == rhs.task_error_code;
  54. }
  55. template<typename ContainerAllocator1, typename ContainerAllocator2>
  56. bool operator!=(const ::common_msgs::NavGoalResponse_<ContainerAllocator1> & lhs, const ::common_msgs::NavGoalResponse_<ContainerAllocator2> & rhs)
  57. {
  58. return !(lhs == rhs);
  59. }
  60. } // namespace common_msgs
  61. namespace ros
  62. {
  63. namespace message_traits
  64. {
  65. template <class ContainerAllocator>
  66. struct IsFixedSize< ::common_msgs::NavGoalResponse_<ContainerAllocator> >
  67. : FalseType
  68. { };
  69. template <class ContainerAllocator>
  70. struct IsFixedSize< ::common_msgs::NavGoalResponse_<ContainerAllocator> const>
  71. : FalseType
  72. { };
  73. template <class ContainerAllocator>
  74. struct IsMessage< ::common_msgs::NavGoalResponse_<ContainerAllocator> >
  75. : TrueType
  76. { };
  77. template <class ContainerAllocator>
  78. struct IsMessage< ::common_msgs::NavGoalResponse_<ContainerAllocator> const>
  79. : TrueType
  80. { };
  81. template <class ContainerAllocator>
  82. struct HasHeader< ::common_msgs::NavGoalResponse_<ContainerAllocator> >
  83. : FalseType
  84. { };
  85. template <class ContainerAllocator>
  86. struct HasHeader< ::common_msgs::NavGoalResponse_<ContainerAllocator> const>
  87. : FalseType
  88. { };
  89. template<class ContainerAllocator>
  90. struct MD5Sum< ::common_msgs::NavGoalResponse_<ContainerAllocator> >
  91. {
  92. static const char* value()
  93. {
  94. return "400a544fe3ba509a71b39fba4682ebc9";
  95. }
  96. static const char* value(const ::common_msgs::NavGoalResponse_<ContainerAllocator>&) { return value(); }
  97. static const uint64_t static_value1 = 0x400a544fe3ba509aULL;
  98. static const uint64_t static_value2 = 0x71b39fba4682ebc9ULL;
  99. };
  100. template<class ContainerAllocator>
  101. struct DataType< ::common_msgs::NavGoalResponse_<ContainerAllocator> >
  102. {
  103. static const char* value()
  104. {
  105. return "common_msgs/NavGoalResponse";
  106. }
  107. static const char* value(const ::common_msgs::NavGoalResponse_<ContainerAllocator>&) { return value(); }
  108. };
  109. template<class ContainerAllocator>
  110. struct Definition< ::common_msgs::NavGoalResponse_<ContainerAllocator> >
  111. {
  112. static const char* value()
  113. {
  114. return "bool success\n"
  115. "string message\n"
  116. "#任务执行错误码(无错时为0)\n"
  117. "int64 task_error_code\n"
  118. "\n"
  119. ;
  120. }
  121. static const char* value(const ::common_msgs::NavGoalResponse_<ContainerAllocator>&) { return value(); }
  122. };
  123. } // namespace message_traits
  124. } // namespace ros
  125. namespace ros
  126. {
  127. namespace serialization
  128. {
  129. template<class ContainerAllocator> struct Serializer< ::common_msgs::NavGoalResponse_<ContainerAllocator> >
  130. {
  131. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  132. {
  133. stream.next(m.success);
  134. stream.next(m.message);
  135. stream.next(m.task_error_code);
  136. }
  137. ROS_DECLARE_ALLINONE_SERIALIZER
  138. }; // struct NavGoalResponse_
  139. } // namespace serialization
  140. } // namespace ros
  141. namespace ros
  142. {
  143. namespace message_operations
  144. {
  145. template<class ContainerAllocator>
  146. struct Printer< ::common_msgs::NavGoalResponse_<ContainerAllocator> >
  147. {
  148. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::common_msgs::NavGoalResponse_<ContainerAllocator>& v)
  149. {
  150. s << indent << "success: ";
  151. Printer<uint8_t>::stream(s, indent + " ", v.success);
  152. s << indent << "message: ";
  153. Printer<std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>>>::stream(s, indent + " ", v.message);
  154. s << indent << "task_error_code: ";
  155. Printer<int64_t>::stream(s, indent + " ", v.task_error_code);
  156. }
  157. };
  158. } // namespace message_operations
  159. } // namespace ros
  160. #endif // COMMON_MSGS_MESSAGE_NAVGOALRESPONSE_H