ReadMetricsResponse.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. // Generated by gencpp from file cartographer_ros_msgs/ReadMetricsResponse.msg
  2. // DO NOT EDIT!
  3. #ifndef CARTOGRAPHER_ROS_MSGS_MESSAGE_READMETRICSRESPONSE_H
  4. #define CARTOGRAPHER_ROS_MSGS_MESSAGE_READMETRICSRESPONSE_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/MetricFamily.h>
  14. namespace cartographer_ros_msgs
  15. {
  16. template <class ContainerAllocator>
  17. struct ReadMetricsResponse_
  18. {
  19. typedef ReadMetricsResponse_<ContainerAllocator> Type;
  20. ReadMetricsResponse_()
  21. : status()
  22. , metric_families()
  23. , timestamp() {
  24. }
  25. ReadMetricsResponse_(const ContainerAllocator& _alloc)
  26. : status(_alloc)
  27. , metric_families(_alloc)
  28. , timestamp() {
  29. (void)_alloc;
  30. }
  31. typedef ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator> _status_type;
  32. _status_type status;
  33. typedef std::vector< ::cartographer_ros_msgs::MetricFamily_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cartographer_ros_msgs::MetricFamily_<ContainerAllocator> >::other > _metric_families_type;
  34. _metric_families_type metric_families;
  35. typedef ros::Time _timestamp_type;
  36. _timestamp_type timestamp;
  37. typedef boost::shared_ptr< ::cartographer_ros_msgs::ReadMetricsResponse_<ContainerAllocator> > Ptr;
  38. typedef boost::shared_ptr< ::cartographer_ros_msgs::ReadMetricsResponse_<ContainerAllocator> const> ConstPtr;
  39. }; // struct ReadMetricsResponse_
  40. typedef ::cartographer_ros_msgs::ReadMetricsResponse_<std::allocator<void> > ReadMetricsResponse;
  41. typedef boost::shared_ptr< ::cartographer_ros_msgs::ReadMetricsResponse > ReadMetricsResponsePtr;
  42. typedef boost::shared_ptr< ::cartographer_ros_msgs::ReadMetricsResponse const> ReadMetricsResponseConstPtr;
  43. // constants requiring out of line definition
  44. template<typename ContainerAllocator>
  45. std::ostream& operator<<(std::ostream& s, const ::cartographer_ros_msgs::ReadMetricsResponse_<ContainerAllocator> & v)
  46. {
  47. ros::message_operations::Printer< ::cartographer_ros_msgs::ReadMetricsResponse_<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::ReadMetricsResponse_<ContainerAllocator> >
  60. : FalseType
  61. { };
  62. template <class ContainerAllocator>
  63. struct IsFixedSize< ::cartographer_ros_msgs::ReadMetricsResponse_<ContainerAllocator> const>
  64. : FalseType
  65. { };
  66. template <class ContainerAllocator>
  67. struct IsMessage< ::cartographer_ros_msgs::ReadMetricsResponse_<ContainerAllocator> >
  68. : TrueType
  69. { };
  70. template <class ContainerAllocator>
  71. struct IsMessage< ::cartographer_ros_msgs::ReadMetricsResponse_<ContainerAllocator> const>
  72. : TrueType
  73. { };
  74. template <class ContainerAllocator>
  75. struct HasHeader< ::cartographer_ros_msgs::ReadMetricsResponse_<ContainerAllocator> >
  76. : FalseType
  77. { };
  78. template <class ContainerAllocator>
  79. struct HasHeader< ::cartographer_ros_msgs::ReadMetricsResponse_<ContainerAllocator> const>
  80. : FalseType
  81. { };
  82. template<class ContainerAllocator>
  83. struct MD5Sum< ::cartographer_ros_msgs::ReadMetricsResponse_<ContainerAllocator> >
  84. {
  85. static const char* value()
  86. {
  87. return "a1fe8d7dcf3708e96e015774b1df470e";
  88. }
  89. static const char* value(const ::cartographer_ros_msgs::ReadMetricsResponse_<ContainerAllocator>&) { return value(); }
  90. static const uint64_t static_value1 = 0xa1fe8d7dcf3708e9ULL;
  91. static const uint64_t static_value2 = 0x6e015774b1df470eULL;
  92. };
  93. template<class ContainerAllocator>
  94. struct DataType< ::cartographer_ros_msgs::ReadMetricsResponse_<ContainerAllocator> >
  95. {
  96. static const char* value()
  97. {
  98. return "cartographer_ros_msgs/ReadMetricsResponse";
  99. }
  100. static const char* value(const ::cartographer_ros_msgs::ReadMetricsResponse_<ContainerAllocator>&) { return value(); }
  101. };
  102. template<class ContainerAllocator>
  103. struct Definition< ::cartographer_ros_msgs::ReadMetricsResponse_<ContainerAllocator> >
  104. {
  105. static const char* value()
  106. {
  107. return "cartographer_ros_msgs/StatusResponse status\n\
  108. cartographer_ros_msgs/MetricFamily[] metric_families\n\
  109. time timestamp\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/MetricFamily\n\
  134. # 2018 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. string name\n\
  149. string description\n\
  150. cartographer_ros_msgs/Metric[] metrics\n\
  151. \n\
  152. ================================================================================\n\
  153. MSG: cartographer_ros_msgs/Metric\n\
  154. # 2018 The Cartographer Authors\n\
  155. #\n\
  156. # Licensed under the Apache License, Version 2.0 (the \"License\");\n\
  157. # you may not use this file except in compliance with the License.\n\
  158. # You may obtain a copy of the License at\n\
  159. #\n\
  160. # http://www.apache.org/licenses/LICENSE-2.0\n\
  161. #\n\
  162. # Unless required by applicable law or agreed to in writing, software\n\
  163. # distributed under the License is distributed on an \"AS IS\" BASIS,\n\
  164. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
  165. # See the License for the specific language governing permissions and\n\
  166. # limitations under the License.\n\
  167. \n\
  168. uint8 TYPE_COUNTER=0\n\
  169. uint8 TYPE_GAUGE=1\n\
  170. uint8 TYPE_HISTOGRAM=2\n\
  171. \n\
  172. uint8 type\n\
  173. cartographer_ros_msgs/MetricLabel[] labels\n\
  174. \n\
  175. # TYPE_COUNTER or TYPE_GAUGE\n\
  176. float64 value\n\
  177. \n\
  178. # TYPE_HISTOGRAM\n\
  179. cartographer_ros_msgs/HistogramBucket[] counts_by_bucket\n\
  180. \n\
  181. ================================================================================\n\
  182. MSG: cartographer_ros_msgs/MetricLabel\n\
  183. # 2018 The Cartographer Authors\n\
  184. #\n\
  185. # Licensed under the Apache License, Version 2.0 (the \"License\");\n\
  186. # you may not use this file except in compliance with the License.\n\
  187. # You may obtain a copy of the License at\n\
  188. #\n\
  189. # http://www.apache.org/licenses/LICENSE-2.0\n\
  190. #\n\
  191. # Unless required by applicable law or agreed to in writing, software\n\
  192. # distributed under the License is distributed on an \"AS IS\" BASIS,\n\
  193. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
  194. # See the License for the specific language governing permissions and\n\
  195. # limitations under the License.\n\
  196. \n\
  197. string key\n\
  198. string value\n\
  199. \n\
  200. ================================================================================\n\
  201. MSG: cartographer_ros_msgs/HistogramBucket\n\
  202. # 2018 The Cartographer Authors\n\
  203. #\n\
  204. # Licensed under the Apache License, Version 2.0 (the \"License\");\n\
  205. # you may not use this file except in compliance with the License.\n\
  206. # You may obtain a copy of the License at\n\
  207. #\n\
  208. # http://www.apache.org/licenses/LICENSE-2.0\n\
  209. #\n\
  210. # Unless required by applicable law or agreed to in writing, software\n\
  211. # distributed under the License is distributed on an \"AS IS\" BASIS,\n\
  212. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
  213. # See the License for the specific language governing permissions and\n\
  214. # limitations under the License.\n\
  215. \n\
  216. # A histogram bucket counts values x for which:\n\
  217. # previous_boundary < x <= bucket_boundary\n\
  218. # holds.\n\
  219. float64 bucket_boundary\n\
  220. float64 count\n\
  221. ";
  222. }
  223. static const char* value(const ::cartographer_ros_msgs::ReadMetricsResponse_<ContainerAllocator>&) { return value(); }
  224. };
  225. } // namespace message_traits
  226. } // namespace ros
  227. namespace ros
  228. {
  229. namespace serialization
  230. {
  231. template<class ContainerAllocator> struct Serializer< ::cartographer_ros_msgs::ReadMetricsResponse_<ContainerAllocator> >
  232. {
  233. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  234. {
  235. stream.next(m.status);
  236. stream.next(m.metric_families);
  237. stream.next(m.timestamp);
  238. }
  239. ROS_DECLARE_ALLINONE_SERIALIZER
  240. }; // struct ReadMetricsResponse_
  241. } // namespace serialization
  242. } // namespace ros
  243. namespace ros
  244. {
  245. namespace message_operations
  246. {
  247. template<class ContainerAllocator>
  248. struct Printer< ::cartographer_ros_msgs::ReadMetricsResponse_<ContainerAllocator> >
  249. {
  250. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cartographer_ros_msgs::ReadMetricsResponse_<ContainerAllocator>& v)
  251. {
  252. s << indent << "status: ";
  253. s << std::endl;
  254. Printer< ::cartographer_ros_msgs::StatusResponse_<ContainerAllocator> >::stream(s, indent + " ", v.status);
  255. s << indent << "metric_families[]" << std::endl;
  256. for (size_t i = 0; i < v.metric_families.size(); ++i)
  257. {
  258. s << indent << " metric_families[" << i << "]: ";
  259. s << std::endl;
  260. s << indent;
  261. Printer< ::cartographer_ros_msgs::MetricFamily_<ContainerAllocator> >::stream(s, indent + " ", v.metric_families[i]);
  262. }
  263. s << indent << "timestamp: ";
  264. Printer<ros::Time>::stream(s, indent + " ", v.timestamp);
  265. }
  266. };
  267. } // namespace message_operations
  268. } // namespace ros
  269. #endif // CARTOGRAPHER_ROS_MSGS_MESSAGE_READMETRICSRESPONSE_H