SubmapList.h 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. // Generated by gencpp from file cartographer_ros_msgs/SubmapList.msg
  2. // DO NOT EDIT!
  3. #ifndef CARTOGRAPHER_ROS_MSGS_MESSAGE_SUBMAPLIST_H
  4. #define CARTOGRAPHER_ROS_MSGS_MESSAGE_SUBMAPLIST_H
  5. #include <string>
  6. #include <vector>
  7. #include <map>
  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 <std_msgs/Header.h>
  13. #include <cartographer_ros_msgs/SubmapEntry.h>
  14. namespace cartographer_ros_msgs
  15. {
  16. template <class ContainerAllocator>
  17. struct SubmapList_
  18. {
  19. typedef SubmapList_<ContainerAllocator> Type;
  20. SubmapList_()
  21. : header()
  22. , submap() {
  23. }
  24. SubmapList_(const ContainerAllocator& _alloc)
  25. : header(_alloc)
  26. , submap(_alloc) {
  27. (void)_alloc;
  28. }
  29. typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
  30. _header_type header;
  31. typedef std::vector< ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator> >::other > _submap_type;
  32. _submap_type submap;
  33. typedef boost::shared_ptr< ::cartographer_ros_msgs::SubmapList_<ContainerAllocator> > Ptr;
  34. typedef boost::shared_ptr< ::cartographer_ros_msgs::SubmapList_<ContainerAllocator> const> ConstPtr;
  35. }; // struct SubmapList_
  36. typedef ::cartographer_ros_msgs::SubmapList_<std::allocator<void> > SubmapList;
  37. typedef boost::shared_ptr< ::cartographer_ros_msgs::SubmapList > SubmapListPtr;
  38. typedef boost::shared_ptr< ::cartographer_ros_msgs::SubmapList const> SubmapListConstPtr;
  39. // constants requiring out of line definition
  40. template<typename ContainerAllocator>
  41. std::ostream& operator<<(std::ostream& s, const ::cartographer_ros_msgs::SubmapList_<ContainerAllocator> & v)
  42. {
  43. ros::message_operations::Printer< ::cartographer_ros_msgs::SubmapList_<ContainerAllocator> >::stream(s, "", v);
  44. return s;
  45. }
  46. } // namespace cartographer_ros_msgs
  47. namespace ros
  48. {
  49. namespace message_traits
  50. {
  51. // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True}
  52. // {'std_msgs': ['/opt/ros/melodic/share/std_msgs/cmake/../msg'], 'cartographer_ros_msgs': ['/home/youchen/Documents/catkin_ws/src/cartographer_ros/cartographer_ros_msgs/msg'], 'geometry_msgs': ['/opt/ros/melodic/share/geometry_msgs/cmake/../msg']}
  53. // !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types']
  54. template <class ContainerAllocator>
  55. struct IsFixedSize< ::cartographer_ros_msgs::SubmapList_<ContainerAllocator> >
  56. : FalseType
  57. { };
  58. template <class ContainerAllocator>
  59. struct IsFixedSize< ::cartographer_ros_msgs::SubmapList_<ContainerAllocator> const>
  60. : FalseType
  61. { };
  62. template <class ContainerAllocator>
  63. struct IsMessage< ::cartographer_ros_msgs::SubmapList_<ContainerAllocator> >
  64. : TrueType
  65. { };
  66. template <class ContainerAllocator>
  67. struct IsMessage< ::cartographer_ros_msgs::SubmapList_<ContainerAllocator> const>
  68. : TrueType
  69. { };
  70. template <class ContainerAllocator>
  71. struct HasHeader< ::cartographer_ros_msgs::SubmapList_<ContainerAllocator> >
  72. : TrueType
  73. { };
  74. template <class ContainerAllocator>
  75. struct HasHeader< ::cartographer_ros_msgs::SubmapList_<ContainerAllocator> const>
  76. : TrueType
  77. { };
  78. template<class ContainerAllocator>
  79. struct MD5Sum< ::cartographer_ros_msgs::SubmapList_<ContainerAllocator> >
  80. {
  81. static const char* value()
  82. {
  83. return "73b1e412208f0787050395996f6143db";
  84. }
  85. static const char* value(const ::cartographer_ros_msgs::SubmapList_<ContainerAllocator>&) { return value(); }
  86. static const uint64_t static_value1 = 0x73b1e412208f0787ULL;
  87. static const uint64_t static_value2 = 0x050395996f6143dbULL;
  88. };
  89. template<class ContainerAllocator>
  90. struct DataType< ::cartographer_ros_msgs::SubmapList_<ContainerAllocator> >
  91. {
  92. static const char* value()
  93. {
  94. return "cartographer_ros_msgs/SubmapList";
  95. }
  96. static const char* value(const ::cartographer_ros_msgs::SubmapList_<ContainerAllocator>&) { return value(); }
  97. };
  98. template<class ContainerAllocator>
  99. struct Definition< ::cartographer_ros_msgs::SubmapList_<ContainerAllocator> >
  100. {
  101. static const char* value()
  102. {
  103. return "# Copyright 2016 The Cartographer Authors\n\
  104. #\n\
  105. # Licensed under the Apache License, Version 2.0 (the \"License\");\n\
  106. # you may not use this file except in compliance with the License.\n\
  107. # You may obtain a copy of the License at\n\
  108. #\n\
  109. # http://www.apache.org/licenses/LICENSE-2.0\n\
  110. #\n\
  111. # Unless required by applicable law or agreed to in writing, software\n\
  112. # distributed under the License is distributed on an \"AS IS\" BASIS,\n\
  113. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
  114. # See the License for the specific language governing permissions and\n\
  115. # limitations under the License.\n\
  116. \n\
  117. std_msgs/Header header\n\
  118. cartographer_ros_msgs/SubmapEntry[] submap\n\
  119. \n\
  120. ================================================================================\n\
  121. MSG: std_msgs/Header\n\
  122. # Standard metadata for higher-level stamped data types.\n\
  123. # This is generally used to communicate timestamped data \n\
  124. # in a particular coordinate frame.\n\
  125. # \n\
  126. # sequence ID: consecutively increasing ID \n\
  127. uint32 seq\n\
  128. #Two-integer timestamp that is expressed as:\n\
  129. # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
  130. # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
  131. # time-handling sugar is provided by the client library\n\
  132. time stamp\n\
  133. #Frame this data is associated with\n\
  134. # 0: no frame\n\
  135. # 1: global frame\n\
  136. string frame_id\n\
  137. \n\
  138. ================================================================================\n\
  139. MSG: cartographer_ros_msgs/SubmapEntry\n\
  140. # Copyright 2016 The Cartographer Authors\n\
  141. #\n\
  142. # Licensed under the Apache License, Version 2.0 (the \"License\");\n\
  143. # you may not use this file except in compliance with the License.\n\
  144. # You may obtain a copy of the License at\n\
  145. #\n\
  146. # http://www.apache.org/licenses/LICENSE-2.0\n\
  147. #\n\
  148. # Unless required by applicable law or agreed to in writing, software\n\
  149. # distributed under the License is distributed on an \"AS IS\" BASIS,\n\
  150. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
  151. # See the License for the specific language governing permissions and\n\
  152. # limitations under the License.\n\
  153. \n\
  154. int32 trajectory_id\n\
  155. int32 submap_index\n\
  156. int32 submap_version\n\
  157. geometry_msgs/Pose pose\n\
  158. bool is_frozen\n\
  159. \n\
  160. ================================================================================\n\
  161. MSG: geometry_msgs/Pose\n\
  162. # A representation of pose in free space, composed of position and orientation. \n\
  163. Point position\n\
  164. Quaternion orientation\n\
  165. \n\
  166. ================================================================================\n\
  167. MSG: geometry_msgs/Point\n\
  168. # This contains the position of a point in free space\n\
  169. float64 x\n\
  170. float64 y\n\
  171. float64 z\n\
  172. \n\
  173. ================================================================================\n\
  174. MSG: geometry_msgs/Quaternion\n\
  175. # This represents an orientation in free space in quaternion form.\n\
  176. \n\
  177. float64 x\n\
  178. float64 y\n\
  179. float64 z\n\
  180. float64 w\n\
  181. ";
  182. }
  183. static const char* value(const ::cartographer_ros_msgs::SubmapList_<ContainerAllocator>&) { return value(); }
  184. };
  185. } // namespace message_traits
  186. } // namespace ros
  187. namespace ros
  188. {
  189. namespace serialization
  190. {
  191. template<class ContainerAllocator> struct Serializer< ::cartographer_ros_msgs::SubmapList_<ContainerAllocator> >
  192. {
  193. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  194. {
  195. stream.next(m.header);
  196. stream.next(m.submap);
  197. }
  198. ROS_DECLARE_ALLINONE_SERIALIZER
  199. }; // struct SubmapList_
  200. } // namespace serialization
  201. } // namespace ros
  202. namespace ros
  203. {
  204. namespace message_operations
  205. {
  206. template<class ContainerAllocator>
  207. struct Printer< ::cartographer_ros_msgs::SubmapList_<ContainerAllocator> >
  208. {
  209. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cartographer_ros_msgs::SubmapList_<ContainerAllocator>& v)
  210. {
  211. s << indent << "header: ";
  212. s << std::endl;
  213. Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
  214. s << indent << "submap[]" << std::endl;
  215. for (size_t i = 0; i < v.submap.size(); ++i)
  216. {
  217. s << indent << " submap[" << i << "]: ";
  218. s << std::endl;
  219. s << indent;
  220. Printer< ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator> >::stream(s, indent + " ", v.submap[i]);
  221. }
  222. }
  223. };
  224. } // namespace message_operations
  225. } // namespace ros
  226. #endif // CARTOGRAPHER_ROS_MSGS_MESSAGE_SUBMAPLIST_H