MetricLabel.h 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. // Generated by gencpp from file cartographer_ros_msgs/MetricLabel.msg
  2. // DO NOT EDIT!
  3. #ifndef CARTOGRAPHER_ROS_MSGS_MESSAGE_METRICLABEL_H
  4. #define CARTOGRAPHER_ROS_MSGS_MESSAGE_METRICLABEL_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 MetricLabel_
  16. {
  17. typedef MetricLabel_<ContainerAllocator> Type;
  18. MetricLabel_()
  19. : key()
  20. , value() {
  21. }
  22. MetricLabel_(const ContainerAllocator& _alloc)
  23. : key(_alloc)
  24. , value(_alloc) {
  25. (void)_alloc;
  26. }
  27. typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _key_type;
  28. _key_type key;
  29. typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _value_type;
  30. _value_type value;
  31. typedef boost::shared_ptr< ::cartographer_ros_msgs::MetricLabel_<ContainerAllocator> > Ptr;
  32. typedef boost::shared_ptr< ::cartographer_ros_msgs::MetricLabel_<ContainerAllocator> const> ConstPtr;
  33. }; // struct MetricLabel_
  34. typedef ::cartographer_ros_msgs::MetricLabel_<std::allocator<void> > MetricLabel;
  35. typedef boost::shared_ptr< ::cartographer_ros_msgs::MetricLabel > MetricLabelPtr;
  36. typedef boost::shared_ptr< ::cartographer_ros_msgs::MetricLabel const> MetricLabelConstPtr;
  37. // constants requiring out of line definition
  38. template<typename ContainerAllocator>
  39. std::ostream& operator<<(std::ostream& s, const ::cartographer_ros_msgs::MetricLabel_<ContainerAllocator> & v)
  40. {
  41. ros::message_operations::Printer< ::cartographer_ros_msgs::MetricLabel_<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': False, '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::MetricLabel_<ContainerAllocator> >
  54. : FalseType
  55. { };
  56. template <class ContainerAllocator>
  57. struct IsFixedSize< ::cartographer_ros_msgs::MetricLabel_<ContainerAllocator> const>
  58. : FalseType
  59. { };
  60. template <class ContainerAllocator>
  61. struct IsMessage< ::cartographer_ros_msgs::MetricLabel_<ContainerAllocator> >
  62. : TrueType
  63. { };
  64. template <class ContainerAllocator>
  65. struct IsMessage< ::cartographer_ros_msgs::MetricLabel_<ContainerAllocator> const>
  66. : TrueType
  67. { };
  68. template <class ContainerAllocator>
  69. struct HasHeader< ::cartographer_ros_msgs::MetricLabel_<ContainerAllocator> >
  70. : FalseType
  71. { };
  72. template <class ContainerAllocator>
  73. struct HasHeader< ::cartographer_ros_msgs::MetricLabel_<ContainerAllocator> const>
  74. : FalseType
  75. { };
  76. template<class ContainerAllocator>
  77. struct MD5Sum< ::cartographer_ros_msgs::MetricLabel_<ContainerAllocator> >
  78. {
  79. static const char* value()
  80. {
  81. return "cf57fdc6617a881a88c16e768132149c";
  82. }
  83. static const char* value(const ::cartographer_ros_msgs::MetricLabel_<ContainerAllocator>&) { return value(); }
  84. static const uint64_t static_value1 = 0xcf57fdc6617a881aULL;
  85. static const uint64_t static_value2 = 0x88c16e768132149cULL;
  86. };
  87. template<class ContainerAllocator>
  88. struct DataType< ::cartographer_ros_msgs::MetricLabel_<ContainerAllocator> >
  89. {
  90. static const char* value()
  91. {
  92. return "cartographer_ros_msgs/MetricLabel";
  93. }
  94. static const char* value(const ::cartographer_ros_msgs::MetricLabel_<ContainerAllocator>&) { return value(); }
  95. };
  96. template<class ContainerAllocator>
  97. struct Definition< ::cartographer_ros_msgs::MetricLabel_<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. string key\n\
  116. string value\n\
  117. ";
  118. }
  119. static const char* value(const ::cartographer_ros_msgs::MetricLabel_<ContainerAllocator>&) { return value(); }
  120. };
  121. } // namespace message_traits
  122. } // namespace ros
  123. namespace ros
  124. {
  125. namespace serialization
  126. {
  127. template<class ContainerAllocator> struct Serializer< ::cartographer_ros_msgs::MetricLabel_<ContainerAllocator> >
  128. {
  129. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  130. {
  131. stream.next(m.key);
  132. stream.next(m.value);
  133. }
  134. ROS_DECLARE_ALLINONE_SERIALIZER
  135. }; // struct MetricLabel_
  136. } // namespace serialization
  137. } // namespace ros
  138. namespace ros
  139. {
  140. namespace message_operations
  141. {
  142. template<class ContainerAllocator>
  143. struct Printer< ::cartographer_ros_msgs::MetricLabel_<ContainerAllocator> >
  144. {
  145. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cartographer_ros_msgs::MetricLabel_<ContainerAllocator>& v)
  146. {
  147. s << indent << "key: ";
  148. Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.key);
  149. s << indent << "value: ";
  150. Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.value);
  151. }
  152. };
  153. } // namespace message_operations
  154. } // namespace ros
  155. #endif // CARTOGRAPHER_ROS_MSGS_MESSAGE_METRICLABEL_H