BagfileProgress.h 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. // Generated by gencpp from file cartographer_ros_msgs/BagfileProgress.msg
  2. // DO NOT EDIT!
  3. #ifndef CARTOGRAPHER_ROS_MSGS_MESSAGE_BAGFILEPROGRESS_H
  4. #define CARTOGRAPHER_ROS_MSGS_MESSAGE_BAGFILEPROGRESS_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. namespace cartographer_ros_msgs
  13. {
  14. template <class ContainerAllocator>
  15. struct BagfileProgress_
  16. {
  17. typedef BagfileProgress_<ContainerAllocator> Type;
  18. BagfileProgress_()
  19. : current_bagfile_name()
  20. , current_bagfile_id(0)
  21. , total_bagfiles(0)
  22. , total_messages(0)
  23. , processed_messages(0)
  24. , total_seconds(0.0)
  25. , processed_seconds(0.0) {
  26. }
  27. BagfileProgress_(const ContainerAllocator& _alloc)
  28. : current_bagfile_name(_alloc)
  29. , current_bagfile_id(0)
  30. , total_bagfiles(0)
  31. , total_messages(0)
  32. , processed_messages(0)
  33. , total_seconds(0.0)
  34. , processed_seconds(0.0) {
  35. (void)_alloc;
  36. }
  37. typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _current_bagfile_name_type;
  38. _current_bagfile_name_type current_bagfile_name;
  39. typedef uint32_t _current_bagfile_id_type;
  40. _current_bagfile_id_type current_bagfile_id;
  41. typedef uint32_t _total_bagfiles_type;
  42. _total_bagfiles_type total_bagfiles;
  43. typedef uint32_t _total_messages_type;
  44. _total_messages_type total_messages;
  45. typedef uint32_t _processed_messages_type;
  46. _processed_messages_type processed_messages;
  47. typedef float _total_seconds_type;
  48. _total_seconds_type total_seconds;
  49. typedef float _processed_seconds_type;
  50. _processed_seconds_type processed_seconds;
  51. typedef boost::shared_ptr< ::cartographer_ros_msgs::BagfileProgress_<ContainerAllocator> > Ptr;
  52. typedef boost::shared_ptr< ::cartographer_ros_msgs::BagfileProgress_<ContainerAllocator> const> ConstPtr;
  53. }; // struct BagfileProgress_
  54. typedef ::cartographer_ros_msgs::BagfileProgress_<std::allocator<void> > BagfileProgress;
  55. typedef boost::shared_ptr< ::cartographer_ros_msgs::BagfileProgress > BagfileProgressPtr;
  56. typedef boost::shared_ptr< ::cartographer_ros_msgs::BagfileProgress const> BagfileProgressConstPtr;
  57. // constants requiring out of line definition
  58. template<typename ContainerAllocator>
  59. std::ostream& operator<<(std::ostream& s, const ::cartographer_ros_msgs::BagfileProgress_<ContainerAllocator> & v)
  60. {
  61. ros::message_operations::Printer< ::cartographer_ros_msgs::BagfileProgress_<ContainerAllocator> >::stream(s, "", v);
  62. return s;
  63. }
  64. } // namespace cartographer_ros_msgs
  65. namespace ros
  66. {
  67. namespace message_traits
  68. {
  69. // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': False}
  70. // {'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']}
  71. // !!!!!!!!!!! ['__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']
  72. template <class ContainerAllocator>
  73. struct IsFixedSize< ::cartographer_ros_msgs::BagfileProgress_<ContainerAllocator> >
  74. : FalseType
  75. { };
  76. template <class ContainerAllocator>
  77. struct IsFixedSize< ::cartographer_ros_msgs::BagfileProgress_<ContainerAllocator> const>
  78. : FalseType
  79. { };
  80. template <class ContainerAllocator>
  81. struct IsMessage< ::cartographer_ros_msgs::BagfileProgress_<ContainerAllocator> >
  82. : TrueType
  83. { };
  84. template <class ContainerAllocator>
  85. struct IsMessage< ::cartographer_ros_msgs::BagfileProgress_<ContainerAllocator> const>
  86. : TrueType
  87. { };
  88. template <class ContainerAllocator>
  89. struct HasHeader< ::cartographer_ros_msgs::BagfileProgress_<ContainerAllocator> >
  90. : FalseType
  91. { };
  92. template <class ContainerAllocator>
  93. struct HasHeader< ::cartographer_ros_msgs::BagfileProgress_<ContainerAllocator> const>
  94. : FalseType
  95. { };
  96. template<class ContainerAllocator>
  97. struct MD5Sum< ::cartographer_ros_msgs::BagfileProgress_<ContainerAllocator> >
  98. {
  99. static const char* value()
  100. {
  101. return "2a36f93b13e2b297d45098a38cb00510";
  102. }
  103. static const char* value(const ::cartographer_ros_msgs::BagfileProgress_<ContainerAllocator>&) { return value(); }
  104. static const uint64_t static_value1 = 0x2a36f93b13e2b297ULL;
  105. static const uint64_t static_value2 = 0xd45098a38cb00510ULL;
  106. };
  107. template<class ContainerAllocator>
  108. struct DataType< ::cartographer_ros_msgs::BagfileProgress_<ContainerAllocator> >
  109. {
  110. static const char* value()
  111. {
  112. return "cartographer_ros_msgs/BagfileProgress";
  113. }
  114. static const char* value(const ::cartographer_ros_msgs::BagfileProgress_<ContainerAllocator>&) { return value(); }
  115. };
  116. template<class ContainerAllocator>
  117. struct Definition< ::cartographer_ros_msgs::BagfileProgress_<ContainerAllocator> >
  118. {
  119. static const char* value()
  120. {
  121. return "#\n\
  122. # Licensed under the Apache License, Version 2.0 (the 'License');\n\
  123. # you may not use this file except in compliance with the License.\n\
  124. # You may obtain a copy of the License at\n\
  125. #\n\
  126. # http://www.apache.org/licenses/LICENSE-2.0\n\
  127. #\n\
  128. # Unless required by applicable law or agreed to in writing, software\n\
  129. # distributed under the License is distributed on an 'AS IS' BASIS,\n\
  130. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
  131. # See the License for the specific language governing permissions and\n\
  132. # limitations under the License.\n\
  133. \n\
  134. \n\
  135. # Contains general information about the bagfiles processing progress\n\
  136. \n\
  137. string current_bagfile_name\n\
  138. uint32 current_bagfile_id\n\
  139. uint32 total_bagfiles\n\
  140. uint32 total_messages\n\
  141. uint32 processed_messages\n\
  142. float32 total_seconds\n\
  143. float32 processed_seconds\n\
  144. ";
  145. }
  146. static const char* value(const ::cartographer_ros_msgs::BagfileProgress_<ContainerAllocator>&) { return value(); }
  147. };
  148. } // namespace message_traits
  149. } // namespace ros
  150. namespace ros
  151. {
  152. namespace serialization
  153. {
  154. template<class ContainerAllocator> struct Serializer< ::cartographer_ros_msgs::BagfileProgress_<ContainerAllocator> >
  155. {
  156. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  157. {
  158. stream.next(m.current_bagfile_name);
  159. stream.next(m.current_bagfile_id);
  160. stream.next(m.total_bagfiles);
  161. stream.next(m.total_messages);
  162. stream.next(m.processed_messages);
  163. stream.next(m.total_seconds);
  164. stream.next(m.processed_seconds);
  165. }
  166. ROS_DECLARE_ALLINONE_SERIALIZER
  167. }; // struct BagfileProgress_
  168. } // namespace serialization
  169. } // namespace ros
  170. namespace ros
  171. {
  172. namespace message_operations
  173. {
  174. template<class ContainerAllocator>
  175. struct Printer< ::cartographer_ros_msgs::BagfileProgress_<ContainerAllocator> >
  176. {
  177. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cartographer_ros_msgs::BagfileProgress_<ContainerAllocator>& v)
  178. {
  179. s << indent << "current_bagfile_name: ";
  180. Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.current_bagfile_name);
  181. s << indent << "current_bagfile_id: ";
  182. Printer<uint32_t>::stream(s, indent + " ", v.current_bagfile_id);
  183. s << indent << "total_bagfiles: ";
  184. Printer<uint32_t>::stream(s, indent + " ", v.total_bagfiles);
  185. s << indent << "total_messages: ";
  186. Printer<uint32_t>::stream(s, indent + " ", v.total_messages);
  187. s << indent << "processed_messages: ";
  188. Printer<uint32_t>::stream(s, indent + " ", v.processed_messages);
  189. s << indent << "total_seconds: ";
  190. Printer<float>::stream(s, indent + " ", v.total_seconds);
  191. s << indent << "processed_seconds: ";
  192. Printer<float>::stream(s, indent + " ", v.processed_seconds);
  193. }
  194. };
  195. } // namespace message_operations
  196. } // namespace ros
  197. #endif // CARTOGRAPHER_ROS_MSGS_MESSAGE_BAGFILEPROGRESS_H