MapInfo.h 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. // Generated by gencpp from file common_msgs/MapInfo.msg
  2. // DO NOT EDIT!
  3. #ifndef COMMON_MSGS_MESSAGE_MAPINFO_H
  4. #define COMMON_MSGS_MESSAGE_MAPINFO_H
  5. #include <string>
  6. #include <vector>
  7. #include <memory>
  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 common_msgs
  13. {
  14. template <class ContainerAllocator>
  15. struct MapInfo_
  16. {
  17. typedef MapInfo_<ContainerAllocator> Type;
  18. MapInfo_()
  19. : build_id()
  20. , buildName()
  21. , floor(0)
  22. , floorId()
  23. , mapId()
  24. , mapName() {
  25. }
  26. MapInfo_(const ContainerAllocator& _alloc)
  27. : build_id(_alloc)
  28. , buildName(_alloc)
  29. , floor(0)
  30. , floorId(_alloc)
  31. , mapId(_alloc)
  32. , mapName(_alloc) {
  33. (void)_alloc;
  34. }
  35. typedef std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>> _build_id_type;
  36. _build_id_type build_id;
  37. typedef std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>> _buildName_type;
  38. _buildName_type buildName;
  39. typedef int16_t _floor_type;
  40. _floor_type floor;
  41. typedef std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>> _floorId_type;
  42. _floorId_type floorId;
  43. typedef std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>> _mapId_type;
  44. _mapId_type mapId;
  45. typedef std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>> _mapName_type;
  46. _mapName_type mapName;
  47. typedef boost::shared_ptr< ::common_msgs::MapInfo_<ContainerAllocator> > Ptr;
  48. typedef boost::shared_ptr< ::common_msgs::MapInfo_<ContainerAllocator> const> ConstPtr;
  49. }; // struct MapInfo_
  50. typedef ::common_msgs::MapInfo_<std::allocator<void> > MapInfo;
  51. typedef boost::shared_ptr< ::common_msgs::MapInfo > MapInfoPtr;
  52. typedef boost::shared_ptr< ::common_msgs::MapInfo const> MapInfoConstPtr;
  53. // constants requiring out of line definition
  54. template<typename ContainerAllocator>
  55. std::ostream& operator<<(std::ostream& s, const ::common_msgs::MapInfo_<ContainerAllocator> & v)
  56. {
  57. ros::message_operations::Printer< ::common_msgs::MapInfo_<ContainerAllocator> >::stream(s, "", v);
  58. return s;
  59. }
  60. template<typename ContainerAllocator1, typename ContainerAllocator2>
  61. bool operator==(const ::common_msgs::MapInfo_<ContainerAllocator1> & lhs, const ::common_msgs::MapInfo_<ContainerAllocator2> & rhs)
  62. {
  63. return lhs.build_id == rhs.build_id &&
  64. lhs.buildName == rhs.buildName &&
  65. lhs.floor == rhs.floor &&
  66. lhs.floorId == rhs.floorId &&
  67. lhs.mapId == rhs.mapId &&
  68. lhs.mapName == rhs.mapName;
  69. }
  70. template<typename ContainerAllocator1, typename ContainerAllocator2>
  71. bool operator!=(const ::common_msgs::MapInfo_<ContainerAllocator1> & lhs, const ::common_msgs::MapInfo_<ContainerAllocator2> & rhs)
  72. {
  73. return !(lhs == rhs);
  74. }
  75. } // namespace common_msgs
  76. namespace ros
  77. {
  78. namespace message_traits
  79. {
  80. template <class ContainerAllocator>
  81. struct IsFixedSize< ::common_msgs::MapInfo_<ContainerAllocator> >
  82. : FalseType
  83. { };
  84. template <class ContainerAllocator>
  85. struct IsFixedSize< ::common_msgs::MapInfo_<ContainerAllocator> const>
  86. : FalseType
  87. { };
  88. template <class ContainerAllocator>
  89. struct IsMessage< ::common_msgs::MapInfo_<ContainerAllocator> >
  90. : TrueType
  91. { };
  92. template <class ContainerAllocator>
  93. struct IsMessage< ::common_msgs::MapInfo_<ContainerAllocator> const>
  94. : TrueType
  95. { };
  96. template <class ContainerAllocator>
  97. struct HasHeader< ::common_msgs::MapInfo_<ContainerAllocator> >
  98. : FalseType
  99. { };
  100. template <class ContainerAllocator>
  101. struct HasHeader< ::common_msgs::MapInfo_<ContainerAllocator> const>
  102. : FalseType
  103. { };
  104. template<class ContainerAllocator>
  105. struct MD5Sum< ::common_msgs::MapInfo_<ContainerAllocator> >
  106. {
  107. static const char* value()
  108. {
  109. return "a6be7d2e0a2fd95eb885cb90743c156c";
  110. }
  111. static const char* value(const ::common_msgs::MapInfo_<ContainerAllocator>&) { return value(); }
  112. static const uint64_t static_value1 = 0xa6be7d2e0a2fd95eULL;
  113. static const uint64_t static_value2 = 0xb885cb90743c156cULL;
  114. };
  115. template<class ContainerAllocator>
  116. struct DataType< ::common_msgs::MapInfo_<ContainerAllocator> >
  117. {
  118. static const char* value()
  119. {
  120. return "common_msgs/MapInfo";
  121. }
  122. static const char* value(const ::common_msgs::MapInfo_<ContainerAllocator>&) { return value(); }
  123. };
  124. template<class ContainerAllocator>
  125. struct Definition< ::common_msgs::MapInfo_<ContainerAllocator> >
  126. {
  127. static const char* value()
  128. {
  129. return "#建筑id\n"
  130. "string build_id\n"
  131. "#建筑名\n"
  132. "string buildName\n"
  133. "#楼层\n"
  134. "int16 floor\n"
  135. "#楼层id\n"
  136. "string floorId\n"
  137. "#地图id\n"
  138. "string mapId\n"
  139. "#地图名\n"
  140. "string mapName\n"
  141. ;
  142. }
  143. static const char* value(const ::common_msgs::MapInfo_<ContainerAllocator>&) { return value(); }
  144. };
  145. } // namespace message_traits
  146. } // namespace ros
  147. namespace ros
  148. {
  149. namespace serialization
  150. {
  151. template<class ContainerAllocator> struct Serializer< ::common_msgs::MapInfo_<ContainerAllocator> >
  152. {
  153. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  154. {
  155. stream.next(m.build_id);
  156. stream.next(m.buildName);
  157. stream.next(m.floor);
  158. stream.next(m.floorId);
  159. stream.next(m.mapId);
  160. stream.next(m.mapName);
  161. }
  162. ROS_DECLARE_ALLINONE_SERIALIZER
  163. }; // struct MapInfo_
  164. } // namespace serialization
  165. } // namespace ros
  166. namespace ros
  167. {
  168. namespace message_operations
  169. {
  170. template<class ContainerAllocator>
  171. struct Printer< ::common_msgs::MapInfo_<ContainerAllocator> >
  172. {
  173. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::common_msgs::MapInfo_<ContainerAllocator>& v)
  174. {
  175. s << indent << "build_id: ";
  176. Printer<std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>>>::stream(s, indent + " ", v.build_id);
  177. s << indent << "buildName: ";
  178. Printer<std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>>>::stream(s, indent + " ", v.buildName);
  179. s << indent << "floor: ";
  180. Printer<int16_t>::stream(s, indent + " ", v.floor);
  181. s << indent << "floorId: ";
  182. Printer<std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>>>::stream(s, indent + " ", v.floorId);
  183. s << indent << "mapId: ";
  184. Printer<std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>>>::stream(s, indent + " ", v.mapId);
  185. s << indent << "mapName: ";
  186. Printer<std::basic_string<char, std::char_traits<char>, typename std::allocator_traits<ContainerAllocator>::template rebind_alloc<char>>>::stream(s, indent + " ", v.mapName);
  187. }
  188. };
  189. } // namespace message_operations
  190. } // namespace ros
  191. #endif // COMMON_MSGS_MESSAGE_MAPINFO_H