LslidarPoint.h 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. // Generated by gencpp from file lslidar_msgs/LslidarPoint.msg
  2. // DO NOT EDIT!
  3. #ifndef LSLIDAR_MSGS_MESSAGE_LSLIDARPOINT_H
  4. #define LSLIDAR_MSGS_MESSAGE_LSLIDARPOINT_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 lslidar_msgs
  13. {
  14. template <class ContainerAllocator>
  15. struct LslidarPoint_
  16. {
  17. typedef LslidarPoint_<ContainerAllocator> Type;
  18. LslidarPoint_()
  19. : time(0.0)
  20. , x(0.0)
  21. , y(0.0)
  22. , z(0.0)
  23. , azimuth(0.0)
  24. , distance(0.0)
  25. , intensity(0.0)
  26. , ring(0) {
  27. }
  28. LslidarPoint_(const ContainerAllocator& _alloc)
  29. : time(0.0)
  30. , x(0.0)
  31. , y(0.0)
  32. , z(0.0)
  33. , azimuth(0.0)
  34. , distance(0.0)
  35. , intensity(0.0)
  36. , ring(0) {
  37. (void)_alloc;
  38. }
  39. typedef double _time_type;
  40. _time_type time;
  41. typedef double _x_type;
  42. _x_type x;
  43. typedef double _y_type;
  44. _y_type y;
  45. typedef double _z_type;
  46. _z_type z;
  47. typedef double _azimuth_type;
  48. _azimuth_type azimuth;
  49. typedef double _distance_type;
  50. _distance_type distance;
  51. typedef double _intensity_type;
  52. _intensity_type intensity;
  53. typedef uint16_t _ring_type;
  54. _ring_type ring;
  55. typedef boost::shared_ptr< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> > Ptr;
  56. typedef boost::shared_ptr< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> const> ConstPtr;
  57. }; // struct LslidarPoint_
  58. typedef ::lslidar_msgs::LslidarPoint_<std::allocator<void> > LslidarPoint;
  59. typedef boost::shared_ptr< ::lslidar_msgs::LslidarPoint > LslidarPointPtr;
  60. typedef boost::shared_ptr< ::lslidar_msgs::LslidarPoint const> LslidarPointConstPtr;
  61. // constants requiring out of line definition
  62. template<typename ContainerAllocator>
  63. std::ostream& operator<<(std::ostream& s, const ::lslidar_msgs::LslidarPoint_<ContainerAllocator> & v)
  64. {
  65. ros::message_operations::Printer< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> >::stream(s, "", v);
  66. return s;
  67. }
  68. template<typename ContainerAllocator1, typename ContainerAllocator2>
  69. bool operator==(const ::lslidar_msgs::LslidarPoint_<ContainerAllocator1> & lhs, const ::lslidar_msgs::LslidarPoint_<ContainerAllocator2> & rhs)
  70. {
  71. return lhs.time == rhs.time &&
  72. lhs.x == rhs.x &&
  73. lhs.y == rhs.y &&
  74. lhs.z == rhs.z &&
  75. lhs.azimuth == rhs.azimuth &&
  76. lhs.distance == rhs.distance &&
  77. lhs.intensity == rhs.intensity &&
  78. lhs.ring == rhs.ring;
  79. }
  80. template<typename ContainerAllocator1, typename ContainerAllocator2>
  81. bool operator!=(const ::lslidar_msgs::LslidarPoint_<ContainerAllocator1> & lhs, const ::lslidar_msgs::LslidarPoint_<ContainerAllocator2> & rhs)
  82. {
  83. return !(lhs == rhs);
  84. }
  85. } // namespace lslidar_msgs
  86. namespace ros
  87. {
  88. namespace message_traits
  89. {
  90. template <class ContainerAllocator>
  91. struct IsMessage< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> >
  92. : TrueType
  93. { };
  94. template <class ContainerAllocator>
  95. struct IsMessage< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> const>
  96. : TrueType
  97. { };
  98. template <class ContainerAllocator>
  99. struct IsFixedSize< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> >
  100. : TrueType
  101. { };
  102. template <class ContainerAllocator>
  103. struct IsFixedSize< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> const>
  104. : TrueType
  105. { };
  106. template <class ContainerAllocator>
  107. struct HasHeader< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> >
  108. : FalseType
  109. { };
  110. template <class ContainerAllocator>
  111. struct HasHeader< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> const>
  112. : FalseType
  113. { };
  114. template<class ContainerAllocator>
  115. struct MD5Sum< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> >
  116. {
  117. static const char* value()
  118. {
  119. return "f50d5d0146efa869e6a9c7f522f5b8b8";
  120. }
  121. static const char* value(const ::lslidar_msgs::LslidarPoint_<ContainerAllocator>&) { return value(); }
  122. static const uint64_t static_value1 = 0xf50d5d0146efa869ULL;
  123. static const uint64_t static_value2 = 0xe6a9c7f522f5b8b8ULL;
  124. };
  125. template<class ContainerAllocator>
  126. struct DataType< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> >
  127. {
  128. static const char* value()
  129. {
  130. return "lslidar_msgs/LslidarPoint";
  131. }
  132. static const char* value(const ::lslidar_msgs::LslidarPoint_<ContainerAllocator>&) { return value(); }
  133. };
  134. template<class ContainerAllocator>
  135. struct Definition< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> >
  136. {
  137. static const char* value()
  138. {
  139. return "# Time when the point is captured\n"
  140. "float64 time\n"
  141. "\n"
  142. "# Converted distance in the sensor frame\n"
  143. "float64 x\n"
  144. "float64 y\n"
  145. "float64 z\n"
  146. "\n"
  147. "# Raw measurement from Leishen C16\n"
  148. "float64 azimuth\n"
  149. "float64 distance\n"
  150. "float64 intensity\n"
  151. "uint16 ring\n"
  152. "\n"
  153. ;
  154. }
  155. static const char* value(const ::lslidar_msgs::LslidarPoint_<ContainerAllocator>&) { return value(); }
  156. };
  157. } // namespace message_traits
  158. } // namespace ros
  159. namespace ros
  160. {
  161. namespace serialization
  162. {
  163. template<class ContainerAllocator> struct Serializer< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> >
  164. {
  165. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  166. {
  167. stream.next(m.time);
  168. stream.next(m.x);
  169. stream.next(m.y);
  170. stream.next(m.z);
  171. stream.next(m.azimuth);
  172. stream.next(m.distance);
  173. stream.next(m.intensity);
  174. stream.next(m.ring);
  175. }
  176. ROS_DECLARE_ALLINONE_SERIALIZER
  177. }; // struct LslidarPoint_
  178. } // namespace serialization
  179. } // namespace ros
  180. namespace ros
  181. {
  182. namespace message_operations
  183. {
  184. template<class ContainerAllocator>
  185. struct Printer< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> >
  186. {
  187. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::lslidar_msgs::LslidarPoint_<ContainerAllocator>& v)
  188. {
  189. s << indent << "time: ";
  190. Printer<double>::stream(s, indent + " ", v.time);
  191. s << indent << "x: ";
  192. Printer<double>::stream(s, indent + " ", v.x);
  193. s << indent << "y: ";
  194. Printer<double>::stream(s, indent + " ", v.y);
  195. s << indent << "z: ";
  196. Printer<double>::stream(s, indent + " ", v.z);
  197. s << indent << "azimuth: ";
  198. Printer<double>::stream(s, indent + " ", v.azimuth);
  199. s << indent << "distance: ";
  200. Printer<double>::stream(s, indent + " ", v.distance);
  201. s << indent << "intensity: ";
  202. Printer<double>::stream(s, indent + " ", v.intensity);
  203. s << indent << "ring: ";
  204. Printer<uint16_t>::stream(s, indent + " ", v.ring);
  205. }
  206. };
  207. } // namespace message_operations
  208. } // namespace ros
  209. #endif // LSLIDAR_MSGS_MESSAGE_LSLIDARPOINT_H