SubmapEntry.h 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. // Generated by gencpp from file cartographer_ros_msgs/SubmapEntry.msg
  2. // DO NOT EDIT!
  3. #ifndef CARTOGRAPHER_ROS_MSGS_MESSAGE_SUBMAPENTRY_H
  4. #define CARTOGRAPHER_ROS_MSGS_MESSAGE_SUBMAPENTRY_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 <geometry_msgs/Pose.h>
  13. namespace cartographer_ros_msgs
  14. {
  15. template <class ContainerAllocator>
  16. struct SubmapEntry_
  17. {
  18. typedef SubmapEntry_<ContainerAllocator> Type;
  19. SubmapEntry_()
  20. : trajectory_id(0)
  21. , submap_index(0)
  22. , submap_version(0)
  23. , pose()
  24. , is_frozen(false) {
  25. }
  26. SubmapEntry_(const ContainerAllocator& _alloc)
  27. : trajectory_id(0)
  28. , submap_index(0)
  29. , submap_version(0)
  30. , pose(_alloc)
  31. , is_frozen(false) {
  32. (void)_alloc;
  33. }
  34. typedef int32_t _trajectory_id_type;
  35. _trajectory_id_type trajectory_id;
  36. typedef int32_t _submap_index_type;
  37. _submap_index_type submap_index;
  38. typedef int32_t _submap_version_type;
  39. _submap_version_type submap_version;
  40. typedef ::geometry_msgs::Pose_<ContainerAllocator> _pose_type;
  41. _pose_type pose;
  42. typedef uint8_t _is_frozen_type;
  43. _is_frozen_type is_frozen;
  44. typedef boost::shared_ptr< ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator> > Ptr;
  45. typedef boost::shared_ptr< ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator> const> ConstPtr;
  46. }; // struct SubmapEntry_
  47. typedef ::cartographer_ros_msgs::SubmapEntry_<std::allocator<void> > SubmapEntry;
  48. typedef boost::shared_ptr< ::cartographer_ros_msgs::SubmapEntry > SubmapEntryPtr;
  49. typedef boost::shared_ptr< ::cartographer_ros_msgs::SubmapEntry const> SubmapEntryConstPtr;
  50. // constants requiring out of line definition
  51. template<typename ContainerAllocator>
  52. std::ostream& operator<<(std::ostream& s, const ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator> & v)
  53. {
  54. ros::message_operations::Printer< ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator> >::stream(s, "", v);
  55. return s;
  56. }
  57. } // namespace cartographer_ros_msgs
  58. namespace ros
  59. {
  60. namespace message_traits
  61. {
  62. // BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
  63. // {'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']}
  64. // !!!!!!!!!!! ['__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']
  65. template <class ContainerAllocator>
  66. struct IsFixedSize< ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator> >
  67. : TrueType
  68. { };
  69. template <class ContainerAllocator>
  70. struct IsFixedSize< ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator> const>
  71. : TrueType
  72. { };
  73. template <class ContainerAllocator>
  74. struct IsMessage< ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator> >
  75. : TrueType
  76. { };
  77. template <class ContainerAllocator>
  78. struct IsMessage< ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator> const>
  79. : TrueType
  80. { };
  81. template <class ContainerAllocator>
  82. struct HasHeader< ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator> >
  83. : FalseType
  84. { };
  85. template <class ContainerAllocator>
  86. struct HasHeader< ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator> const>
  87. : FalseType
  88. { };
  89. template<class ContainerAllocator>
  90. struct MD5Sum< ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator> >
  91. {
  92. static const char* value()
  93. {
  94. return "0b064ac06b4af2be11388441508c9572";
  95. }
  96. static const char* value(const ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator>&) { return value(); }
  97. static const uint64_t static_value1 = 0x0b064ac06b4af2beULL;
  98. static const uint64_t static_value2 = 0x11388441508c9572ULL;
  99. };
  100. template<class ContainerAllocator>
  101. struct DataType< ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator> >
  102. {
  103. static const char* value()
  104. {
  105. return "cartographer_ros_msgs/SubmapEntry";
  106. }
  107. static const char* value(const ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator>&) { return value(); }
  108. };
  109. template<class ContainerAllocator>
  110. struct Definition< ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator> >
  111. {
  112. static const char* value()
  113. {
  114. return "# Copyright 2016 The Cartographer Authors\n\
  115. #\n\
  116. # Licensed under the Apache License, Version 2.0 (the \"License\");\n\
  117. # you may not use this file except in compliance with the License.\n\
  118. # You may obtain a copy of the License at\n\
  119. #\n\
  120. # http://www.apache.org/licenses/LICENSE-2.0\n\
  121. #\n\
  122. # Unless required by applicable law or agreed to in writing, software\n\
  123. # distributed under the License is distributed on an \"AS IS\" BASIS,\n\
  124. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
  125. # See the License for the specific language governing permissions and\n\
  126. # limitations under the License.\n\
  127. \n\
  128. int32 trajectory_id\n\
  129. int32 submap_index\n\
  130. int32 submap_version\n\
  131. geometry_msgs/Pose pose\n\
  132. bool is_frozen\n\
  133. \n\
  134. ================================================================================\n\
  135. MSG: geometry_msgs/Pose\n\
  136. # A representation of pose in free space, composed of position and orientation. \n\
  137. Point position\n\
  138. Quaternion orientation\n\
  139. \n\
  140. ================================================================================\n\
  141. MSG: geometry_msgs/Point\n\
  142. # This contains the position of a point in free space\n\
  143. float64 x\n\
  144. float64 y\n\
  145. float64 z\n\
  146. \n\
  147. ================================================================================\n\
  148. MSG: geometry_msgs/Quaternion\n\
  149. # This represents an orientation in free space in quaternion form.\n\
  150. \n\
  151. float64 x\n\
  152. float64 y\n\
  153. float64 z\n\
  154. float64 w\n\
  155. ";
  156. }
  157. static const char* value(const ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator>&) { return value(); }
  158. };
  159. } // namespace message_traits
  160. } // namespace ros
  161. namespace ros
  162. {
  163. namespace serialization
  164. {
  165. template<class ContainerAllocator> struct Serializer< ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator> >
  166. {
  167. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  168. {
  169. stream.next(m.trajectory_id);
  170. stream.next(m.submap_index);
  171. stream.next(m.submap_version);
  172. stream.next(m.pose);
  173. stream.next(m.is_frozen);
  174. }
  175. ROS_DECLARE_ALLINONE_SERIALIZER
  176. }; // struct SubmapEntry_
  177. } // namespace serialization
  178. } // namespace ros
  179. namespace ros
  180. {
  181. namespace message_operations
  182. {
  183. template<class ContainerAllocator>
  184. struct Printer< ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator> >
  185. {
  186. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cartographer_ros_msgs::SubmapEntry_<ContainerAllocator>& v)
  187. {
  188. s << indent << "trajectory_id: ";
  189. Printer<int32_t>::stream(s, indent + " ", v.trajectory_id);
  190. s << indent << "submap_index: ";
  191. Printer<int32_t>::stream(s, indent + " ", v.submap_index);
  192. s << indent << "submap_version: ";
  193. Printer<int32_t>::stream(s, indent + " ", v.submap_version);
  194. s << indent << "pose: ";
  195. s << std::endl;
  196. Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose);
  197. s << indent << "is_frozen: ";
  198. Printer<uint8_t>::stream(s, indent + " ", v.is_frozen);
  199. }
  200. };
  201. } // namespace message_operations
  202. } // namespace ros
  203. #endif // CARTOGRAPHER_ROS_MSGS_MESSAGE_SUBMAPENTRY_H