CreateMapInfo.h 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. // Generated by gencpp from file common_msgs/CreateMapInfo.msg
  2. // DO NOT EDIT!
  3. #ifndef COMMON_MSGS_MESSAGE_CREATEMAPINFO_H
  4. #define COMMON_MSGS_MESSAGE_CREATEMAPINFO_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/Trajectory.h>
  13. #include <common_msgs/Beacon.h>
  14. namespace common_msgs
  15. {
  16. template <class ContainerAllocator>
  17. struct CreateMapInfo_
  18. {
  19. typedef CreateMapInfo_<ContainerAllocator> Type;
  20. CreateMapInfo_()
  21. : trajectory_list()
  22. , points() {
  23. }
  24. CreateMapInfo_(const ContainerAllocator& _alloc)
  25. : trajectory_list(_alloc)
  26. , points(_alloc) {
  27. (void)_alloc;
  28. }
  29. typedef std::vector< ::common_msgs::Trajectory_<ContainerAllocator> , typename std::allocator_traits<ContainerAllocator>::template rebind_alloc< ::common_msgs::Trajectory_<ContainerAllocator> >> _trajectory_list_type;
  30. _trajectory_list_type trajectory_list;
  31. typedef std::vector< ::common_msgs::Beacon_<ContainerAllocator> , typename std::allocator_traits<ContainerAllocator>::template rebind_alloc< ::common_msgs::Beacon_<ContainerAllocator> >> _points_type;
  32. _points_type points;
  33. typedef boost::shared_ptr< ::common_msgs::CreateMapInfo_<ContainerAllocator> > Ptr;
  34. typedef boost::shared_ptr< ::common_msgs::CreateMapInfo_<ContainerAllocator> const> ConstPtr;
  35. }; // struct CreateMapInfo_
  36. typedef ::common_msgs::CreateMapInfo_<std::allocator<void> > CreateMapInfo;
  37. typedef boost::shared_ptr< ::common_msgs::CreateMapInfo > CreateMapInfoPtr;
  38. typedef boost::shared_ptr< ::common_msgs::CreateMapInfo const> CreateMapInfoConstPtr;
  39. // constants requiring out of line definition
  40. template<typename ContainerAllocator>
  41. std::ostream& operator<<(std::ostream& s, const ::common_msgs::CreateMapInfo_<ContainerAllocator> & v)
  42. {
  43. ros::message_operations::Printer< ::common_msgs::CreateMapInfo_<ContainerAllocator> >::stream(s, "", v);
  44. return s;
  45. }
  46. template<typename ContainerAllocator1, typename ContainerAllocator2>
  47. bool operator==(const ::common_msgs::CreateMapInfo_<ContainerAllocator1> & lhs, const ::common_msgs::CreateMapInfo_<ContainerAllocator2> & rhs)
  48. {
  49. return lhs.trajectory_list == rhs.trajectory_list &&
  50. lhs.points == rhs.points;
  51. }
  52. template<typename ContainerAllocator1, typename ContainerAllocator2>
  53. bool operator!=(const ::common_msgs::CreateMapInfo_<ContainerAllocator1> & lhs, const ::common_msgs::CreateMapInfo_<ContainerAllocator2> & rhs)
  54. {
  55. return !(lhs == rhs);
  56. }
  57. } // namespace common_msgs
  58. namespace ros
  59. {
  60. namespace message_traits
  61. {
  62. template <class ContainerAllocator>
  63. struct IsFixedSize< ::common_msgs::CreateMapInfo_<ContainerAllocator> >
  64. : FalseType
  65. { };
  66. template <class ContainerAllocator>
  67. struct IsFixedSize< ::common_msgs::CreateMapInfo_<ContainerAllocator> const>
  68. : FalseType
  69. { };
  70. template <class ContainerAllocator>
  71. struct IsMessage< ::common_msgs::CreateMapInfo_<ContainerAllocator> >
  72. : TrueType
  73. { };
  74. template <class ContainerAllocator>
  75. struct IsMessage< ::common_msgs::CreateMapInfo_<ContainerAllocator> const>
  76. : TrueType
  77. { };
  78. template <class ContainerAllocator>
  79. struct HasHeader< ::common_msgs::CreateMapInfo_<ContainerAllocator> >
  80. : FalseType
  81. { };
  82. template <class ContainerAllocator>
  83. struct HasHeader< ::common_msgs::CreateMapInfo_<ContainerAllocator> const>
  84. : FalseType
  85. { };
  86. template<class ContainerAllocator>
  87. struct MD5Sum< ::common_msgs::CreateMapInfo_<ContainerAllocator> >
  88. {
  89. static const char* value()
  90. {
  91. return "ed8281449c9197545708fe13ac5a6094";
  92. }
  93. static const char* value(const ::common_msgs::CreateMapInfo_<ContainerAllocator>&) { return value(); }
  94. static const uint64_t static_value1 = 0xed8281449c919754ULL;
  95. static const uint64_t static_value2 = 0x5708fe13ac5a6094ULL;
  96. };
  97. template<class ContainerAllocator>
  98. struct DataType< ::common_msgs::CreateMapInfo_<ContainerAllocator> >
  99. {
  100. static const char* value()
  101. {
  102. return "common_msgs/CreateMapInfo";
  103. }
  104. static const char* value(const ::common_msgs::CreateMapInfo_<ContainerAllocator>&) { return value(); }
  105. };
  106. template<class ContainerAllocator>
  107. struct Definition< ::common_msgs::CreateMapInfo_<ContainerAllocator> >
  108. {
  109. static const char* value()
  110. {
  111. return "Trajectory[] trajectory_list\n"
  112. "Beacon[] points\n"
  113. "================================================================================\n"
  114. "MSG: common_msgs/Trajectory\n"
  115. "string id\n"
  116. "geometry_msgs/Vector3[] trajectory\n"
  117. "================================================================================\n"
  118. "MSG: geometry_msgs/Vector3\n"
  119. "# This represents a vector in free space. \n"
  120. "# It is only meant to represent a direction. Therefore, it does not\n"
  121. "# make sense to apply a translation to it (e.g., when applying a \n"
  122. "# generic rigid transformation to a Vector3, tf2 will only apply the\n"
  123. "# rotation). If you want your data to be translatable too, use the\n"
  124. "# geometry_msgs/Point message instead.\n"
  125. "\n"
  126. "float64 x\n"
  127. "float64 y\n"
  128. "float64 z\n"
  129. "================================================================================\n"
  130. "MSG: common_msgs/Beacon\n"
  131. "string id\n"
  132. "int32 type\n"
  133. "geometry_msgs/PoseStamped point\n"
  134. "================================================================================\n"
  135. "MSG: geometry_msgs/PoseStamped\n"
  136. "# A Pose with reference coordinate frame and timestamp\n"
  137. "Header header\n"
  138. "Pose pose\n"
  139. "\n"
  140. "================================================================================\n"
  141. "MSG: std_msgs/Header\n"
  142. "# Standard metadata for higher-level stamped data types.\n"
  143. "# This is generally used to communicate timestamped data \n"
  144. "# in a particular coordinate frame.\n"
  145. "# \n"
  146. "# sequence ID: consecutively increasing ID \n"
  147. "uint32 seq\n"
  148. "#Two-integer timestamp that is expressed as:\n"
  149. "# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n"
  150. "# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n"
  151. "# time-handling sugar is provided by the client library\n"
  152. "time stamp\n"
  153. "#Frame this data is associated with\n"
  154. "string frame_id\n"
  155. "\n"
  156. "================================================================================\n"
  157. "MSG: geometry_msgs/Pose\n"
  158. "# A representation of pose in free space, composed of position and orientation. \n"
  159. "Point position\n"
  160. "Quaternion orientation\n"
  161. "\n"
  162. "================================================================================\n"
  163. "MSG: geometry_msgs/Point\n"
  164. "# This contains the position of a point in free space\n"
  165. "float64 x\n"
  166. "float64 y\n"
  167. "float64 z\n"
  168. "\n"
  169. "================================================================================\n"
  170. "MSG: geometry_msgs/Quaternion\n"
  171. "# This represents an orientation in free space in quaternion form.\n"
  172. "\n"
  173. "float64 x\n"
  174. "float64 y\n"
  175. "float64 z\n"
  176. "float64 w\n"
  177. ;
  178. }
  179. static const char* value(const ::common_msgs::CreateMapInfo_<ContainerAllocator>&) { return value(); }
  180. };
  181. } // namespace message_traits
  182. } // namespace ros
  183. namespace ros
  184. {
  185. namespace serialization
  186. {
  187. template<class ContainerAllocator> struct Serializer< ::common_msgs::CreateMapInfo_<ContainerAllocator> >
  188. {
  189. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  190. {
  191. stream.next(m.trajectory_list);
  192. stream.next(m.points);
  193. }
  194. ROS_DECLARE_ALLINONE_SERIALIZER
  195. }; // struct CreateMapInfo_
  196. } // namespace serialization
  197. } // namespace ros
  198. namespace ros
  199. {
  200. namespace message_operations
  201. {
  202. template<class ContainerAllocator>
  203. struct Printer< ::common_msgs::CreateMapInfo_<ContainerAllocator> >
  204. {
  205. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::common_msgs::CreateMapInfo_<ContainerAllocator>& v)
  206. {
  207. s << indent << "trajectory_list[]" << std::endl;
  208. for (size_t i = 0; i < v.trajectory_list.size(); ++i)
  209. {
  210. s << indent << " trajectory_list[" << i << "]: ";
  211. s << std::endl;
  212. s << indent;
  213. Printer< ::common_msgs::Trajectory_<ContainerAllocator> >::stream(s, indent + " ", v.trajectory_list[i]);
  214. }
  215. s << indent << "points[]" << std::endl;
  216. for (size_t i = 0; i < v.points.size(); ++i)
  217. {
  218. s << indent << " points[" << i << "]: ";
  219. s << std::endl;
  220. s << indent;
  221. Printer< ::common_msgs::Beacon_<ContainerAllocator> >::stream(s, indent + " ", v.points[i]);
  222. }
  223. }
  224. };
  225. } // namespace message_operations
  226. } // namespace ros
  227. #endif // COMMON_MSGS_MESSAGE_CREATEMAPINFO_H