LocateInfo.h 7.5 KB

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