EvaluateMapResponse.h 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. // Generated by gencpp from file common_msgs/EvaluateMapResponse.msg
  2. // DO NOT EDIT!
  3. #ifndef COMMON_MSGS_MESSAGE_EVALUATEMAPRESPONSE_H
  4. #define COMMON_MSGS_MESSAGE_EVALUATEMAPRESPONSE_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. #include <geometry_msgs/Pose.h>
  13. namespace common_msgs
  14. {
  15. template <class ContainerAllocator>
  16. struct EvaluateMapResponse_
  17. {
  18. typedef EvaluateMapResponse_<ContainerAllocator> Type;
  19. EvaluateMapResponse_()
  20. : result(0)
  21. , map_quality(0)
  22. , map_range(0.0)
  23. , drift_odom(0)
  24. , drift_imu(0)
  25. , pose() {
  26. }
  27. EvaluateMapResponse_(const ContainerAllocator& _alloc)
  28. : result(0)
  29. , map_quality(0)
  30. , map_range(0.0)
  31. , drift_odom(0)
  32. , drift_imu(0)
  33. , pose(_alloc) {
  34. (void)_alloc;
  35. }
  36. typedef int32_t _result_type;
  37. _result_type result;
  38. typedef int16_t _map_quality_type;
  39. _map_quality_type map_quality;
  40. typedef float _map_range_type;
  41. _map_range_type map_range;
  42. typedef int16_t _drift_odom_type;
  43. _drift_odom_type drift_odom;
  44. typedef int16_t _drift_imu_type;
  45. _drift_imu_type drift_imu;
  46. typedef std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename std::allocator_traits<ContainerAllocator>::template rebind_alloc< ::geometry_msgs::Pose_<ContainerAllocator> >> _pose_type;
  47. _pose_type pose;
  48. typedef boost::shared_ptr< ::common_msgs::EvaluateMapResponse_<ContainerAllocator> > Ptr;
  49. typedef boost::shared_ptr< ::common_msgs::EvaluateMapResponse_<ContainerAllocator> const> ConstPtr;
  50. }; // struct EvaluateMapResponse_
  51. typedef ::common_msgs::EvaluateMapResponse_<std::allocator<void> > EvaluateMapResponse;
  52. typedef boost::shared_ptr< ::common_msgs::EvaluateMapResponse > EvaluateMapResponsePtr;
  53. typedef boost::shared_ptr< ::common_msgs::EvaluateMapResponse const> EvaluateMapResponseConstPtr;
  54. // constants requiring out of line definition
  55. template<typename ContainerAllocator>
  56. std::ostream& operator<<(std::ostream& s, const ::common_msgs::EvaluateMapResponse_<ContainerAllocator> & v)
  57. {
  58. ros::message_operations::Printer< ::common_msgs::EvaluateMapResponse_<ContainerAllocator> >::stream(s, "", v);
  59. return s;
  60. }
  61. template<typename ContainerAllocator1, typename ContainerAllocator2>
  62. bool operator==(const ::common_msgs::EvaluateMapResponse_<ContainerAllocator1> & lhs, const ::common_msgs::EvaluateMapResponse_<ContainerAllocator2> & rhs)
  63. {
  64. return lhs.result == rhs.result &&
  65. lhs.map_quality == rhs.map_quality &&
  66. lhs.map_range == rhs.map_range &&
  67. lhs.drift_odom == rhs.drift_odom &&
  68. lhs.drift_imu == rhs.drift_imu &&
  69. lhs.pose == rhs.pose;
  70. }
  71. template<typename ContainerAllocator1, typename ContainerAllocator2>
  72. bool operator!=(const ::common_msgs::EvaluateMapResponse_<ContainerAllocator1> & lhs, const ::common_msgs::EvaluateMapResponse_<ContainerAllocator2> & rhs)
  73. {
  74. return !(lhs == rhs);
  75. }
  76. } // namespace common_msgs
  77. namespace ros
  78. {
  79. namespace message_traits
  80. {
  81. template <class ContainerAllocator>
  82. struct IsFixedSize< ::common_msgs::EvaluateMapResponse_<ContainerAllocator> >
  83. : FalseType
  84. { };
  85. template <class ContainerAllocator>
  86. struct IsFixedSize< ::common_msgs::EvaluateMapResponse_<ContainerAllocator> const>
  87. : FalseType
  88. { };
  89. template <class ContainerAllocator>
  90. struct IsMessage< ::common_msgs::EvaluateMapResponse_<ContainerAllocator> >
  91. : TrueType
  92. { };
  93. template <class ContainerAllocator>
  94. struct IsMessage< ::common_msgs::EvaluateMapResponse_<ContainerAllocator> const>
  95. : TrueType
  96. { };
  97. template <class ContainerAllocator>
  98. struct HasHeader< ::common_msgs::EvaluateMapResponse_<ContainerAllocator> >
  99. : FalseType
  100. { };
  101. template <class ContainerAllocator>
  102. struct HasHeader< ::common_msgs::EvaluateMapResponse_<ContainerAllocator> const>
  103. : FalseType
  104. { };
  105. template<class ContainerAllocator>
  106. struct MD5Sum< ::common_msgs::EvaluateMapResponse_<ContainerAllocator> >
  107. {
  108. static const char* value()
  109. {
  110. return "0545fc3eb74d78ba62782d66a1d2f7c9";
  111. }
  112. static const char* value(const ::common_msgs::EvaluateMapResponse_<ContainerAllocator>&) { return value(); }
  113. static const uint64_t static_value1 = 0x0545fc3eb74d78baULL;
  114. static const uint64_t static_value2 = 0x62782d66a1d2f7c9ULL;
  115. };
  116. template<class ContainerAllocator>
  117. struct DataType< ::common_msgs::EvaluateMapResponse_<ContainerAllocator> >
  118. {
  119. static const char* value()
  120. {
  121. return "common_msgs/EvaluateMapResponse";
  122. }
  123. static const char* value(const ::common_msgs::EvaluateMapResponse_<ContainerAllocator>&) { return value(); }
  124. };
  125. template<class ContainerAllocator>
  126. struct Definition< ::common_msgs::EvaluateMapResponse_<ContainerAllocator> >
  127. {
  128. static const char* value()
  129. {
  130. return "int32 result\n"
  131. "int16 map_quality\n"
  132. "float32 map_range\n"
  133. "int16 drift_odom\n"
  134. "int16 drift_imu\n"
  135. "#x,y为位置,z为该点的建图质量\n"
  136. "geometry_msgs/Pose[] pose #z=0表示正常,z=-1表示劣质点, z=-2表示不可用点\n"
  137. "\n"
  138. "================================================================================\n"
  139. "MSG: geometry_msgs/Pose\n"
  140. "# A representation of pose in free space, composed of position and orientation. \n"
  141. "Point position\n"
  142. "Quaternion orientation\n"
  143. "\n"
  144. "================================================================================\n"
  145. "MSG: geometry_msgs/Point\n"
  146. "# This contains the position of a point in free space\n"
  147. "float64 x\n"
  148. "float64 y\n"
  149. "float64 z\n"
  150. "\n"
  151. "================================================================================\n"
  152. "MSG: geometry_msgs/Quaternion\n"
  153. "# This represents an orientation in free space in quaternion form.\n"
  154. "\n"
  155. "float64 x\n"
  156. "float64 y\n"
  157. "float64 z\n"
  158. "float64 w\n"
  159. ;
  160. }
  161. static const char* value(const ::common_msgs::EvaluateMapResponse_<ContainerAllocator>&) { return value(); }
  162. };
  163. } // namespace message_traits
  164. } // namespace ros
  165. namespace ros
  166. {
  167. namespace serialization
  168. {
  169. template<class ContainerAllocator> struct Serializer< ::common_msgs::EvaluateMapResponse_<ContainerAllocator> >
  170. {
  171. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  172. {
  173. stream.next(m.result);
  174. stream.next(m.map_quality);
  175. stream.next(m.map_range);
  176. stream.next(m.drift_odom);
  177. stream.next(m.drift_imu);
  178. stream.next(m.pose);
  179. }
  180. ROS_DECLARE_ALLINONE_SERIALIZER
  181. }; // struct EvaluateMapResponse_
  182. } // namespace serialization
  183. } // namespace ros
  184. namespace ros
  185. {
  186. namespace message_operations
  187. {
  188. template<class ContainerAllocator>
  189. struct Printer< ::common_msgs::EvaluateMapResponse_<ContainerAllocator> >
  190. {
  191. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::common_msgs::EvaluateMapResponse_<ContainerAllocator>& v)
  192. {
  193. s << indent << "result: ";
  194. Printer<int32_t>::stream(s, indent + " ", v.result);
  195. s << indent << "map_quality: ";
  196. Printer<int16_t>::stream(s, indent + " ", v.map_quality);
  197. s << indent << "map_range: ";
  198. Printer<float>::stream(s, indent + " ", v.map_range);
  199. s << indent << "drift_odom: ";
  200. Printer<int16_t>::stream(s, indent + " ", v.drift_odom);
  201. s << indent << "drift_imu: ";
  202. Printer<int16_t>::stream(s, indent + " ", v.drift_imu);
  203. s << indent << "pose[]" << std::endl;
  204. for (size_t i = 0; i < v.pose.size(); ++i)
  205. {
  206. s << indent << " pose[" << i << "]: ";
  207. s << std::endl;
  208. s << indent;
  209. Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose[i]);
  210. }
  211. }
  212. };
  213. } // namespace message_operations
  214. } // namespace ros
  215. #endif // COMMON_MSGS_MESSAGE_EVALUATEMAPRESPONSE_H