SubmapQueryResponse.h 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. // Generated by gencpp from file cartographer_ros_msgs/SubmapQueryResponse.msg
  2. // DO NOT EDIT!
  3. #ifndef CARTOGRAPHER_ROS_MSGS_MESSAGE_SUBMAPQUERYRESPONSE_H
  4. #define CARTOGRAPHER_ROS_MSGS_MESSAGE_SUBMAPQUERYRESPONSE_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 <cartographer_ros_msgs/StatusResponse.h>
  13. #include <cartographer_ros_msgs/SubmapTexture.h>
  14. namespace cartographer_ros_msgs
  15. {
  16. template <class ContainerAllocator>
  17. struct SubmapQueryResponse_
  18. {
  19. typedef SubmapQueryResponse_<ContainerAllocator> Type;
  20. SubmapQueryResponse_()
  21. : status()
  22. , submap_version(0)
  23. , textures() {
  24. }
  25. SubmapQueryResponse_(const ContainerAllocator& _alloc)
  26. : status(_alloc)
  27. , submap_version(0)
  28. , textures(_alloc) {
  29. (void)_alloc;
  30. }
  31. typedef ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator> _status_type;
  32. _status_type status;
  33. typedef int32_t _submap_version_type;
  34. _submap_version_type submap_version;
  35. typedef std::vector< ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator> >::other > _textures_type;
  36. _textures_type textures;
  37. typedef boost::shared_ptr< ::cartographer_ros_msgs::SubmapQueryResponse_<ContainerAllocator> > Ptr;
  38. typedef boost::shared_ptr< ::cartographer_ros_msgs::SubmapQueryResponse_<ContainerAllocator> const> ConstPtr;
  39. }; // struct SubmapQueryResponse_
  40. typedef ::cartographer_ros_msgs::SubmapQueryResponse_<std::allocator<void> > SubmapQueryResponse;
  41. typedef boost::shared_ptr< ::cartographer_ros_msgs::SubmapQueryResponse > SubmapQueryResponsePtr;
  42. typedef boost::shared_ptr< ::cartographer_ros_msgs::SubmapQueryResponse const> SubmapQueryResponseConstPtr;
  43. // constants requiring out of line definition
  44. template<typename ContainerAllocator>
  45. std::ostream& operator<<(std::ostream& s, const ::cartographer_ros_msgs::SubmapQueryResponse_<ContainerAllocator> & v)
  46. {
  47. ros::message_operations::Printer< ::cartographer_ros_msgs::SubmapQueryResponse_<ContainerAllocator> >::stream(s, "", v);
  48. return s;
  49. }
  50. } // namespace cartographer_ros_msgs
  51. namespace ros
  52. {
  53. namespace message_traits
  54. {
  55. // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': False}
  56. // {'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']}
  57. // !!!!!!!!!!! ['__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']
  58. template <class ContainerAllocator>
  59. struct IsFixedSize< ::cartographer_ros_msgs::SubmapQueryResponse_<ContainerAllocator> >
  60. : FalseType
  61. { };
  62. template <class ContainerAllocator>
  63. struct IsFixedSize< ::cartographer_ros_msgs::SubmapQueryResponse_<ContainerAllocator> const>
  64. : FalseType
  65. { };
  66. template <class ContainerAllocator>
  67. struct IsMessage< ::cartographer_ros_msgs::SubmapQueryResponse_<ContainerAllocator> >
  68. : TrueType
  69. { };
  70. template <class ContainerAllocator>
  71. struct IsMessage< ::cartographer_ros_msgs::SubmapQueryResponse_<ContainerAllocator> const>
  72. : TrueType
  73. { };
  74. template <class ContainerAllocator>
  75. struct HasHeader< ::cartographer_ros_msgs::SubmapQueryResponse_<ContainerAllocator> >
  76. : FalseType
  77. { };
  78. template <class ContainerAllocator>
  79. struct HasHeader< ::cartographer_ros_msgs::SubmapQueryResponse_<ContainerAllocator> const>
  80. : FalseType
  81. { };
  82. template<class ContainerAllocator>
  83. struct MD5Sum< ::cartographer_ros_msgs::SubmapQueryResponse_<ContainerAllocator> >
  84. {
  85. static const char* value()
  86. {
  87. return "ffc82c14b81fa551bc249c31ba402b2e";
  88. }
  89. static const char* value(const ::cartographer_ros_msgs::SubmapQueryResponse_<ContainerAllocator>&) { return value(); }
  90. static const uint64_t static_value1 = 0xffc82c14b81fa551ULL;
  91. static const uint64_t static_value2 = 0xbc249c31ba402b2eULL;
  92. };
  93. template<class ContainerAllocator>
  94. struct DataType< ::cartographer_ros_msgs::SubmapQueryResponse_<ContainerAllocator> >
  95. {
  96. static const char* value()
  97. {
  98. return "cartographer_ros_msgs/SubmapQueryResponse";
  99. }
  100. static const char* value(const ::cartographer_ros_msgs::SubmapQueryResponse_<ContainerAllocator>&) { return value(); }
  101. };
  102. template<class ContainerAllocator>
  103. struct Definition< ::cartographer_ros_msgs::SubmapQueryResponse_<ContainerAllocator> >
  104. {
  105. static const char* value()
  106. {
  107. return "cartographer_ros_msgs/StatusResponse status\n\
  108. int32 submap_version\n\
  109. cartographer_ros_msgs/SubmapTexture[] textures\n\
  110. \n\
  111. \n\
  112. ================================================================================\n\
  113. MSG: cartographer_ros_msgs/StatusResponse\n\
  114. # Copyright 2018 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. # A common message type to indicate the outcome of a service call.\n\
  129. uint8 code\n\
  130. string message\n\
  131. \n\
  132. ================================================================================\n\
  133. MSG: cartographer_ros_msgs/SubmapTexture\n\
  134. # Copyright 2017 The Cartographer Authors\n\
  135. #\n\
  136. # Licensed under the Apache License, Version 2.0 (the \"License\");\n\
  137. # you may not use this file except in compliance with the License.\n\
  138. # You may obtain a copy of the License at\n\
  139. #\n\
  140. # http://www.apache.org/licenses/LICENSE-2.0\n\
  141. #\n\
  142. # Unless required by applicable law or agreed to in writing, software\n\
  143. # distributed under the License is distributed on an \"AS IS\" BASIS,\n\
  144. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
  145. # See the License for the specific language governing permissions and\n\
  146. # limitations under the License.\n\
  147. \n\
  148. uint8[] cells\n\
  149. int32 width\n\
  150. int32 height\n\
  151. float64 resolution\n\
  152. geometry_msgs/Pose slice_pose\n\
  153. \n\
  154. ================================================================================\n\
  155. MSG: geometry_msgs/Pose\n\
  156. # A representation of pose in free space, composed of position and orientation. \n\
  157. Point position\n\
  158. Quaternion orientation\n\
  159. \n\
  160. ================================================================================\n\
  161. MSG: geometry_msgs/Point\n\
  162. # This contains the position of a point in free space\n\
  163. float64 x\n\
  164. float64 y\n\
  165. float64 z\n\
  166. \n\
  167. ================================================================================\n\
  168. MSG: geometry_msgs/Quaternion\n\
  169. # This represents an orientation in free space in quaternion form.\n\
  170. \n\
  171. float64 x\n\
  172. float64 y\n\
  173. float64 z\n\
  174. float64 w\n\
  175. ";
  176. }
  177. static const char* value(const ::cartographer_ros_msgs::SubmapQueryResponse_<ContainerAllocator>&) { return value(); }
  178. };
  179. } // namespace message_traits
  180. } // namespace ros
  181. namespace ros
  182. {
  183. namespace serialization
  184. {
  185. template<class ContainerAllocator> struct Serializer< ::cartographer_ros_msgs::SubmapQueryResponse_<ContainerAllocator> >
  186. {
  187. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  188. {
  189. stream.next(m.status);
  190. stream.next(m.submap_version);
  191. stream.next(m.textures);
  192. }
  193. ROS_DECLARE_ALLINONE_SERIALIZER
  194. }; // struct SubmapQueryResponse_
  195. } // namespace serialization
  196. } // namespace ros
  197. namespace ros
  198. {
  199. namespace message_operations
  200. {
  201. template<class ContainerAllocator>
  202. struct Printer< ::cartographer_ros_msgs::SubmapQueryResponse_<ContainerAllocator> >
  203. {
  204. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cartographer_ros_msgs::SubmapQueryResponse_<ContainerAllocator>& v)
  205. {
  206. s << indent << "status: ";
  207. s << std::endl;
  208. Printer< ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator> >::stream(s, indent + " ", v.status);
  209. s << indent << "submap_version: ";
  210. Printer<int32_t>::stream(s, indent + " ", v.submap_version);
  211. s << indent << "textures[]" << std::endl;
  212. for (size_t i = 0; i < v.textures.size(); ++i)
  213. {
  214. s << indent << " textures[" << i << "]: ";
  215. s << std::endl;
  216. s << indent;
  217. Printer< ::cartographer_ros_msgs::SubmapTexture_<ContainerAllocator> >::stream(s, indent + " ", v.textures[i]);
  218. }
  219. }
  220. };
  221. } // namespace message_operations
  222. } // namespace ros
  223. #endif // CARTOGRAPHER_ROS_MSGS_MESSAGE_SUBMAPQUERYRESPONSE_H