LslidarPacket.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. // Generated by gencpp from file lslidar_msgs/LslidarPacket.msg
  2. // DO NOT EDIT!
  3. #ifndef LSLIDAR_MSGS_MESSAGE_LSLIDARPACKET_H
  4. #define LSLIDAR_MSGS_MESSAGE_LSLIDARPACKET_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 LslidarPacket_
  16. {
  17. typedef LslidarPacket_<ContainerAllocator> Type;
  18. LslidarPacket_()
  19. : stamp()
  20. , data() {
  21. data.assign(0);
  22. }
  23. LslidarPacket_(const ContainerAllocator& _alloc)
  24. : stamp()
  25. , data() {
  26. (void)_alloc;
  27. data.assign(0);
  28. }
  29. typedef ros::Time _stamp_type;
  30. _stamp_type stamp;
  31. typedef boost::array<uint8_t, 1212> _data_type;
  32. _data_type data;
  33. typedef boost::shared_ptr< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> > Ptr;
  34. typedef boost::shared_ptr< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> const> ConstPtr;
  35. }; // struct LslidarPacket_
  36. typedef ::lslidar_msgs::LslidarPacket_<std::allocator<void> > LslidarPacket;
  37. typedef boost::shared_ptr< ::lslidar_msgs::LslidarPacket > LslidarPacketPtr;
  38. typedef boost::shared_ptr< ::lslidar_msgs::LslidarPacket const> LslidarPacketConstPtr;
  39. // constants requiring out of line definition
  40. template<typename ContainerAllocator>
  41. std::ostream& operator<<(std::ostream& s, const ::lslidar_msgs::LslidarPacket_<ContainerAllocator> & v)
  42. {
  43. ros::message_operations::Printer< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> >::stream(s, "", v);
  44. return s;
  45. }
  46. template<typename ContainerAllocator1, typename ContainerAllocator2>
  47. bool operator==(const ::lslidar_msgs::LslidarPacket_<ContainerAllocator1> & lhs, const ::lslidar_msgs::LslidarPacket_<ContainerAllocator2> & rhs)
  48. {
  49. return lhs.stamp == rhs.stamp &&
  50. lhs.data == rhs.data;
  51. }
  52. template<typename ContainerAllocator1, typename ContainerAllocator2>
  53. bool operator!=(const ::lslidar_msgs::LslidarPacket_<ContainerAllocator1> & lhs, const ::lslidar_msgs::LslidarPacket_<ContainerAllocator2> & rhs)
  54. {
  55. return !(lhs == rhs);
  56. }
  57. } // namespace lslidar_msgs
  58. namespace ros
  59. {
  60. namespace message_traits
  61. {
  62. template <class ContainerAllocator>
  63. struct IsMessage< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> >
  64. : TrueType
  65. { };
  66. template <class ContainerAllocator>
  67. struct IsMessage< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> const>
  68. : TrueType
  69. { };
  70. template <class ContainerAllocator>
  71. struct IsFixedSize< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> >
  72. : TrueType
  73. { };
  74. template <class ContainerAllocator>
  75. struct IsFixedSize< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> const>
  76. : TrueType
  77. { };
  78. template <class ContainerAllocator>
  79. struct HasHeader< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> >
  80. : FalseType
  81. { };
  82. template <class ContainerAllocator>
  83. struct HasHeader< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> const>
  84. : FalseType
  85. { };
  86. template<class ContainerAllocator>
  87. struct MD5Sum< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> >
  88. {
  89. static const char* value()
  90. {
  91. return "2176b512706452637099709287fea15e";
  92. }
  93. static const char* value(const ::lslidar_msgs::LslidarPacket_<ContainerAllocator>&) { return value(); }
  94. static const uint64_t static_value1 = 0x2176b51270645263ULL;
  95. static const uint64_t static_value2 = 0x7099709287fea15eULL;
  96. };
  97. template<class ContainerAllocator>
  98. struct DataType< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> >
  99. {
  100. static const char* value()
  101. {
  102. return "lslidar_msgs/LslidarPacket";
  103. }
  104. static const char* value(const ::lslidar_msgs::LslidarPacket_<ContainerAllocator>&) { return value(); }
  105. };
  106. template<class ContainerAllocator>
  107. struct Definition< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> >
  108. {
  109. static const char* value()
  110. {
  111. return "# Raw Leishen LIDAR packet.\n"
  112. "\n"
  113. "time stamp # packet timestamp\n"
  114. "uint8[1212] data # packet contents\n"
  115. "\n"
  116. ;
  117. }
  118. static const char* value(const ::lslidar_msgs::LslidarPacket_<ContainerAllocator>&) { return value(); }
  119. };
  120. } // namespace message_traits
  121. } // namespace ros
  122. namespace ros
  123. {
  124. namespace serialization
  125. {
  126. template<class ContainerAllocator> struct Serializer< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> >
  127. {
  128. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  129. {
  130. stream.next(m.stamp);
  131. stream.next(m.data);
  132. }
  133. ROS_DECLARE_ALLINONE_SERIALIZER
  134. }; // struct LslidarPacket_
  135. } // namespace serialization
  136. } // namespace ros
  137. namespace ros
  138. {
  139. namespace message_operations
  140. {
  141. template<class ContainerAllocator>
  142. struct Printer< ::lslidar_msgs::LslidarPacket_<ContainerAllocator> >
  143. {
  144. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::lslidar_msgs::LslidarPacket_<ContainerAllocator>& v)
  145. {
  146. s << indent << "stamp: ";
  147. Printer<ros::Time>::stream(s, indent + " ", v.stamp);
  148. s << indent << "data[]" << std::endl;
  149. for (size_t i = 0; i < v.data.size(); ++i)
  150. {
  151. s << indent << " data[" << i << "]: ";
  152. Printer<uint8_t>::stream(s, indent + " ", v.data[i]);
  153. }
  154. }
  155. };
  156. } // namespace message_operations
  157. } // namespace ros
  158. #endif // LSLIDAR_MSGS_MESSAGE_LSLIDARPACKET_H