LslidarScan.h 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. // Generated by gencpp from file lslidar_msgs/LslidarScan.msg
  2. // DO NOT EDIT!
  3. #ifndef LSLIDAR_MSGS_MESSAGE_LSLIDARSCAN_H
  4. #define LSLIDAR_MSGS_MESSAGE_LSLIDARSCAN_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 <lslidar_msgs/LslidarPoint.h>
  13. namespace lslidar_msgs
  14. {
  15. template <class ContainerAllocator>
  16. struct LslidarScan_
  17. {
  18. typedef LslidarScan_<ContainerAllocator> Type;
  19. LslidarScan_()
  20. : altitude(0.0)
  21. , points() {
  22. }
  23. LslidarScan_(const ContainerAllocator& _alloc)
  24. : altitude(0.0)
  25. , points(_alloc) {
  26. (void)_alloc;
  27. }
  28. typedef double _altitude_type;
  29. _altitude_type altitude;
  30. typedef std::vector< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> , typename std::allocator_traits<ContainerAllocator>::template rebind_alloc< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> >> _points_type;
  31. _points_type points;
  32. typedef boost::shared_ptr< ::lslidar_msgs::LslidarScan_<ContainerAllocator> > Ptr;
  33. typedef boost::shared_ptr< ::lslidar_msgs::LslidarScan_<ContainerAllocator> const> ConstPtr;
  34. }; // struct LslidarScan_
  35. typedef ::lslidar_msgs::LslidarScan_<std::allocator<void> > LslidarScan;
  36. typedef boost::shared_ptr< ::lslidar_msgs::LslidarScan > LslidarScanPtr;
  37. typedef boost::shared_ptr< ::lslidar_msgs::LslidarScan const> LslidarScanConstPtr;
  38. // constants requiring out of line definition
  39. template<typename ContainerAllocator>
  40. std::ostream& operator<<(std::ostream& s, const ::lslidar_msgs::LslidarScan_<ContainerAllocator> & v)
  41. {
  42. ros::message_operations::Printer< ::lslidar_msgs::LslidarScan_<ContainerAllocator> >::stream(s, "", v);
  43. return s;
  44. }
  45. template<typename ContainerAllocator1, typename ContainerAllocator2>
  46. bool operator==(const ::lslidar_msgs::LslidarScan_<ContainerAllocator1> & lhs, const ::lslidar_msgs::LslidarScan_<ContainerAllocator2> & rhs)
  47. {
  48. return lhs.altitude == rhs.altitude &&
  49. lhs.points == rhs.points;
  50. }
  51. template<typename ContainerAllocator1, typename ContainerAllocator2>
  52. bool operator!=(const ::lslidar_msgs::LslidarScan_<ContainerAllocator1> & lhs, const ::lslidar_msgs::LslidarScan_<ContainerAllocator2> & rhs)
  53. {
  54. return !(lhs == rhs);
  55. }
  56. } // namespace lslidar_msgs
  57. namespace ros
  58. {
  59. namespace message_traits
  60. {
  61. template <class ContainerAllocator>
  62. struct IsMessage< ::lslidar_msgs::LslidarScan_<ContainerAllocator> >
  63. : TrueType
  64. { };
  65. template <class ContainerAllocator>
  66. struct IsMessage< ::lslidar_msgs::LslidarScan_<ContainerAllocator> const>
  67. : TrueType
  68. { };
  69. template <class ContainerAllocator>
  70. struct IsFixedSize< ::lslidar_msgs::LslidarScan_<ContainerAllocator> >
  71. : FalseType
  72. { };
  73. template <class ContainerAllocator>
  74. struct IsFixedSize< ::lslidar_msgs::LslidarScan_<ContainerAllocator> const>
  75. : FalseType
  76. { };
  77. template <class ContainerAllocator>
  78. struct HasHeader< ::lslidar_msgs::LslidarScan_<ContainerAllocator> >
  79. : FalseType
  80. { };
  81. template <class ContainerAllocator>
  82. struct HasHeader< ::lslidar_msgs::LslidarScan_<ContainerAllocator> const>
  83. : FalseType
  84. { };
  85. template<class ContainerAllocator>
  86. struct MD5Sum< ::lslidar_msgs::LslidarScan_<ContainerAllocator> >
  87. {
  88. static const char* value()
  89. {
  90. return "e133ef5862996d57bf7e7244728c6ced";
  91. }
  92. static const char* value(const ::lslidar_msgs::LslidarScan_<ContainerAllocator>&) { return value(); }
  93. static const uint64_t static_value1 = 0xe133ef5862996d57ULL;
  94. static const uint64_t static_value2 = 0xbf7e7244728c6cedULL;
  95. };
  96. template<class ContainerAllocator>
  97. struct DataType< ::lslidar_msgs::LslidarScan_<ContainerAllocator> >
  98. {
  99. static const char* value()
  100. {
  101. return "lslidar_msgs/LslidarScan";
  102. }
  103. static const char* value(const ::lslidar_msgs::LslidarScan_<ContainerAllocator>&) { return value(); }
  104. };
  105. template<class ContainerAllocator>
  106. struct Definition< ::lslidar_msgs::LslidarScan_<ContainerAllocator> >
  107. {
  108. static const char* value()
  109. {
  110. return "# Altitude of all the points within this scan\n"
  111. "float64 altitude\n"
  112. "\n"
  113. "# The valid points in this scan sorted by azimuth\n"
  114. "# from 0 to 359.99\n"
  115. "LslidarPoint[] points\n"
  116. "\n"
  117. "================================================================================\n"
  118. "MSG: lslidar_msgs/LslidarPoint\n"
  119. "# Time when the point is captured\n"
  120. "float64 time\n"
  121. "\n"
  122. "# Converted distance in the sensor frame\n"
  123. "float64 x\n"
  124. "float64 y\n"
  125. "float64 z\n"
  126. "\n"
  127. "# Raw measurement from Leishen C16\n"
  128. "float64 azimuth\n"
  129. "float64 distance\n"
  130. "float64 intensity\n"
  131. "uint16 ring\n"
  132. "\n"
  133. ;
  134. }
  135. static const char* value(const ::lslidar_msgs::LslidarScan_<ContainerAllocator>&) { return value(); }
  136. };
  137. } // namespace message_traits
  138. } // namespace ros
  139. namespace ros
  140. {
  141. namespace serialization
  142. {
  143. template<class ContainerAllocator> struct Serializer< ::lslidar_msgs::LslidarScan_<ContainerAllocator> >
  144. {
  145. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  146. {
  147. stream.next(m.altitude);
  148. stream.next(m.points);
  149. }
  150. ROS_DECLARE_ALLINONE_SERIALIZER
  151. }; // struct LslidarScan_
  152. } // namespace serialization
  153. } // namespace ros
  154. namespace ros
  155. {
  156. namespace message_operations
  157. {
  158. template<class ContainerAllocator>
  159. struct Printer< ::lslidar_msgs::LslidarScan_<ContainerAllocator> >
  160. {
  161. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::lslidar_msgs::LslidarScan_<ContainerAllocator>& v)
  162. {
  163. s << indent << "altitude: ";
  164. Printer<double>::stream(s, indent + " ", v.altitude);
  165. s << indent << "points[]" << std::endl;
  166. for (size_t i = 0; i < v.points.size(); ++i)
  167. {
  168. s << indent << " points[" << i << "]: ";
  169. s << std::endl;
  170. s << indent;
  171. Printer< ::lslidar_msgs::LslidarPoint_<ContainerAllocator> >::stream(s, indent + " ", v.points[i]);
  172. }
  173. }
  174. };
  175. } // namespace message_operations
  176. } // namespace ros
  177. #endif // LSLIDAR_MSGS_MESSAGE_LSLIDARSCAN_H