Beacon.h 6.8 KB

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