HistogramBucket.h 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. // Generated by gencpp from file cartographer_ros_msgs/HistogramBucket.msg
  2. // DO NOT EDIT!
  3. #ifndef CARTOGRAPHER_ROS_MSGS_MESSAGE_HISTOGRAMBUCKET_H
  4. #define CARTOGRAPHER_ROS_MSGS_MESSAGE_HISTOGRAMBUCKET_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 HistogramBucket_
  16. {
  17. typedef HistogramBucket_<ContainerAllocator> Type;
  18. HistogramBucket_()
  19. : bucket_boundary(0.0)
  20. , count(0.0) {
  21. }
  22. HistogramBucket_(const ContainerAllocator& _alloc)
  23. : bucket_boundary(0.0)
  24. , count(0.0) {
  25. (void)_alloc;
  26. }
  27. typedef double _bucket_boundary_type;
  28. _bucket_boundary_type bucket_boundary;
  29. typedef double _count_type;
  30. _count_type count;
  31. typedef boost::shared_ptr< ::cartographer_ros_msgs::HistogramBucket_<ContainerAllocator> > Ptr;
  32. typedef boost::shared_ptr< ::cartographer_ros_msgs::HistogramBucket_<ContainerAllocator> const> ConstPtr;
  33. }; // struct HistogramBucket_
  34. typedef ::cartographer_ros_msgs::HistogramBucket_<std::allocator<void> > HistogramBucket;
  35. typedef boost::shared_ptr< ::cartographer_ros_msgs::HistogramBucket > HistogramBucketPtr;
  36. typedef boost::shared_ptr< ::cartographer_ros_msgs::HistogramBucket const> HistogramBucketConstPtr;
  37. // constants requiring out of line definition
  38. template<typename ContainerAllocator>
  39. std::ostream& operator<<(std::ostream& s, const ::cartographer_ros_msgs::HistogramBucket_<ContainerAllocator> & v)
  40. {
  41. ros::message_operations::Printer< ::cartographer_ros_msgs::HistogramBucket_<ContainerAllocator> >::stream(s, "", v);
  42. return s;
  43. }
  44. } // namespace cartographer_ros_msgs
  45. namespace ros
  46. {
  47. namespace message_traits
  48. {
  49. // BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
  50. // {'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']}
  51. // !!!!!!!!!!! ['__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']
  52. template <class ContainerAllocator>
  53. struct IsFixedSize< ::cartographer_ros_msgs::HistogramBucket_<ContainerAllocator> >
  54. : TrueType
  55. { };
  56. template <class ContainerAllocator>
  57. struct IsFixedSize< ::cartographer_ros_msgs::HistogramBucket_<ContainerAllocator> const>
  58. : TrueType
  59. { };
  60. template <class ContainerAllocator>
  61. struct IsMessage< ::cartographer_ros_msgs::HistogramBucket_<ContainerAllocator> >
  62. : TrueType
  63. { };
  64. template <class ContainerAllocator>
  65. struct IsMessage< ::cartographer_ros_msgs::HistogramBucket_<ContainerAllocator> const>
  66. : TrueType
  67. { };
  68. template <class ContainerAllocator>
  69. struct HasHeader< ::cartographer_ros_msgs::HistogramBucket_<ContainerAllocator> >
  70. : FalseType
  71. { };
  72. template <class ContainerAllocator>
  73. struct HasHeader< ::cartographer_ros_msgs::HistogramBucket_<ContainerAllocator> const>
  74. : FalseType
  75. { };
  76. template<class ContainerAllocator>
  77. struct MD5Sum< ::cartographer_ros_msgs::HistogramBucket_<ContainerAllocator> >
  78. {
  79. static const char* value()
  80. {
  81. return "b579df35b32758cf09f65ae223aea0ad";
  82. }
  83. static const char* value(const ::cartographer_ros_msgs::HistogramBucket_<ContainerAllocator>&) { return value(); }
  84. static const uint64_t static_value1 = 0xb579df35b32758cfULL;
  85. static const uint64_t static_value2 = 0x09f65ae223aea0adULL;
  86. };
  87. template<class ContainerAllocator>
  88. struct DataType< ::cartographer_ros_msgs::HistogramBucket_<ContainerAllocator> >
  89. {
  90. static const char* value()
  91. {
  92. return "cartographer_ros_msgs/HistogramBucket";
  93. }
  94. static const char* value(const ::cartographer_ros_msgs::HistogramBucket_<ContainerAllocator>&) { return value(); }
  95. };
  96. template<class ContainerAllocator>
  97. struct Definition< ::cartographer_ros_msgs::HistogramBucket_<ContainerAllocator> >
  98. {
  99. static const char* value()
  100. {
  101. return "# 2018 The Cartographer Authors\n\
  102. #\n\
  103. # Licensed under the Apache License, Version 2.0 (the \"License\");\n\
  104. # you may not use this file except in compliance with the License.\n\
  105. # You may obtain a copy of the License at\n\
  106. #\n\
  107. # http://www.apache.org/licenses/LICENSE-2.0\n\
  108. #\n\
  109. # Unless required by applicable law or agreed to in writing, software\n\
  110. # distributed under the License is distributed on an \"AS IS\" BASIS,\n\
  111. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
  112. # See the License for the specific language governing permissions and\n\
  113. # limitations under the License.\n\
  114. \n\
  115. # A histogram bucket counts values x for which:\n\
  116. # previous_boundary < x <= bucket_boundary\n\
  117. # holds.\n\
  118. float64 bucket_boundary\n\
  119. float64 count\n\
  120. ";
  121. }
  122. static const char* value(const ::cartographer_ros_msgs::HistogramBucket_<ContainerAllocator>&) { return value(); }
  123. };
  124. } // namespace message_traits
  125. } // namespace ros
  126. namespace ros
  127. {
  128. namespace serialization
  129. {
  130. template<class ContainerAllocator> struct Serializer< ::cartographer_ros_msgs::HistogramBucket_<ContainerAllocator> >
  131. {
  132. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  133. {
  134. stream.next(m.bucket_boundary);
  135. stream.next(m.count);
  136. }
  137. ROS_DECLARE_ALLINONE_SERIALIZER
  138. }; // struct HistogramBucket_
  139. } // namespace serialization
  140. } // namespace ros
  141. namespace ros
  142. {
  143. namespace message_operations
  144. {
  145. template<class ContainerAllocator>
  146. struct Printer< ::cartographer_ros_msgs::HistogramBucket_<ContainerAllocator> >
  147. {
  148. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cartographer_ros_msgs::HistogramBucket_<ContainerAllocator>& v)
  149. {
  150. s << indent << "bucket_boundary: ";
  151. Printer<double>::stream(s, indent + " ", v.bucket_boundary);
  152. s << indent << "count: ";
  153. Printer<double>::stream(s, indent + " ", v.count);
  154. }
  155. };
  156. } // namespace message_operations
  157. } // namespace ros
  158. #endif // CARTOGRAPHER_ROS_MSGS_MESSAGE_HISTOGRAMBUCKET_H