SwitchLocateModeResponse.h 5.9 KB

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