LightInfo.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. // Generated by gencpp from file common_msgs/LightInfo.msg
  2. // DO NOT EDIT!
  3. #ifndef COMMON_MSGS_MESSAGE_LIGHTINFO_H
  4. #define COMMON_MSGS_MESSAGE_LIGHTINFO_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 LightInfo_
  16. {
  17. typedef LightInfo_<ContainerAllocator> Type;
  18. LightInfo_()
  19. : head_light(0.0)
  20. , ring_light(0.0)
  21. , led_red(0.0)
  22. , led_yellow(0.0)
  23. , led_blue(0.0)
  24. , led_ratio(0.0) {
  25. }
  26. LightInfo_(const ContainerAllocator& _alloc)
  27. : head_light(0.0)
  28. , ring_light(0.0)
  29. , led_red(0.0)
  30. , led_yellow(0.0)
  31. , led_blue(0.0)
  32. , led_ratio(0.0) {
  33. (void)_alloc;
  34. }
  35. typedef float _head_light_type;
  36. _head_light_type head_light;
  37. typedef float _ring_light_type;
  38. _ring_light_type ring_light;
  39. typedef float _led_red_type;
  40. _led_red_type led_red;
  41. typedef float _led_yellow_type;
  42. _led_yellow_type led_yellow;
  43. typedef float _led_blue_type;
  44. _led_blue_type led_blue;
  45. typedef float _led_ratio_type;
  46. _led_ratio_type led_ratio;
  47. typedef boost::shared_ptr< ::common_msgs::LightInfo_<ContainerAllocator> > Ptr;
  48. typedef boost::shared_ptr< ::common_msgs::LightInfo_<ContainerAllocator> const> ConstPtr;
  49. }; // struct LightInfo_
  50. typedef ::common_msgs::LightInfo_<std::allocator<void> > LightInfo;
  51. typedef boost::shared_ptr< ::common_msgs::LightInfo > LightInfoPtr;
  52. typedef boost::shared_ptr< ::common_msgs::LightInfo const> LightInfoConstPtr;
  53. // constants requiring out of line definition
  54. template<typename ContainerAllocator>
  55. std::ostream& operator<<(std::ostream& s, const ::common_msgs::LightInfo_<ContainerAllocator> & v)
  56. {
  57. ros::message_operations::Printer< ::common_msgs::LightInfo_<ContainerAllocator> >::stream(s, "", v);
  58. return s;
  59. }
  60. template<typename ContainerAllocator1, typename ContainerAllocator2>
  61. bool operator==(const ::common_msgs::LightInfo_<ContainerAllocator1> & lhs, const ::common_msgs::LightInfo_<ContainerAllocator2> & rhs)
  62. {
  63. return lhs.head_light == rhs.head_light &&
  64. lhs.ring_light == rhs.ring_light &&
  65. lhs.led_red == rhs.led_red &&
  66. lhs.led_yellow == rhs.led_yellow &&
  67. lhs.led_blue == rhs.led_blue &&
  68. lhs.led_ratio == rhs.led_ratio;
  69. }
  70. template<typename ContainerAllocator1, typename ContainerAllocator2>
  71. bool operator!=(const ::common_msgs::LightInfo_<ContainerAllocator1> & lhs, const ::common_msgs::LightInfo_<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::LightInfo_<ContainerAllocator> >
  82. : TrueType
  83. { };
  84. template <class ContainerAllocator>
  85. struct IsFixedSize< ::common_msgs::LightInfo_<ContainerAllocator> const>
  86. : TrueType
  87. { };
  88. template <class ContainerAllocator>
  89. struct IsMessage< ::common_msgs::LightInfo_<ContainerAllocator> >
  90. : TrueType
  91. { };
  92. template <class ContainerAllocator>
  93. struct IsMessage< ::common_msgs::LightInfo_<ContainerAllocator> const>
  94. : TrueType
  95. { };
  96. template <class ContainerAllocator>
  97. struct HasHeader< ::common_msgs::LightInfo_<ContainerAllocator> >
  98. : FalseType
  99. { };
  100. template <class ContainerAllocator>
  101. struct HasHeader< ::common_msgs::LightInfo_<ContainerAllocator> const>
  102. : FalseType
  103. { };
  104. template<class ContainerAllocator>
  105. struct MD5Sum< ::common_msgs::LightInfo_<ContainerAllocator> >
  106. {
  107. static const char* value()
  108. {
  109. return "9d948a7b9c70159b669e8d28efcce40a";
  110. }
  111. static const char* value(const ::common_msgs::LightInfo_<ContainerAllocator>&) { return value(); }
  112. static const uint64_t static_value1 = 0x9d948a7b9c70159bULL;
  113. static const uint64_t static_value2 = 0x669e8d28efcce40aULL;
  114. };
  115. template<class ContainerAllocator>
  116. struct DataType< ::common_msgs::LightInfo_<ContainerAllocator> >
  117. {
  118. static const char* value()
  119. {
  120. return "common_msgs/LightInfo";
  121. }
  122. static const char* value(const ::common_msgs::LightInfo_<ContainerAllocator>&) { return value(); }
  123. };
  124. template<class ContainerAllocator>
  125. struct Definition< ::common_msgs::LightInfo_<ContainerAllocator> >
  126. {
  127. static const char* value()
  128. {
  129. return "#灯光控制(数值表示强度)\n"
  130. "#前大灯\n"
  131. "float32 head_light\n"
  132. "#光圈灯\n"
  133. "float32 ring_light\n"
  134. "#Led灯\n"
  135. "float32 led_red\n"
  136. "float32 led_yellow\n"
  137. "float32 led_blue\n"
  138. "float32 led_ratio\n"
  139. ;
  140. }
  141. static const char* value(const ::common_msgs::LightInfo_<ContainerAllocator>&) { return value(); }
  142. };
  143. } // namespace message_traits
  144. } // namespace ros
  145. namespace ros
  146. {
  147. namespace serialization
  148. {
  149. template<class ContainerAllocator> struct Serializer< ::common_msgs::LightInfo_<ContainerAllocator> >
  150. {
  151. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  152. {
  153. stream.next(m.head_light);
  154. stream.next(m.ring_light);
  155. stream.next(m.led_red);
  156. stream.next(m.led_yellow);
  157. stream.next(m.led_blue);
  158. stream.next(m.led_ratio);
  159. }
  160. ROS_DECLARE_ALLINONE_SERIALIZER
  161. }; // struct LightInfo_
  162. } // namespace serialization
  163. } // namespace ros
  164. namespace ros
  165. {
  166. namespace message_operations
  167. {
  168. template<class ContainerAllocator>
  169. struct Printer< ::common_msgs::LightInfo_<ContainerAllocator> >
  170. {
  171. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::common_msgs::LightInfo_<ContainerAllocator>& v)
  172. {
  173. s << indent << "head_light: ";
  174. Printer<float>::stream(s, indent + " ", v.head_light);
  175. s << indent << "ring_light: ";
  176. Printer<float>::stream(s, indent + " ", v.ring_light);
  177. s << indent << "led_red: ";
  178. Printer<float>::stream(s, indent + " ", v.led_red);
  179. s << indent << "led_yellow: ";
  180. Printer<float>::stream(s, indent + " ", v.led_yellow);
  181. s << indent << "led_blue: ";
  182. Printer<float>::stream(s, indent + " ", v.led_blue);
  183. s << indent << "led_ratio: ";
  184. Printer<float>::stream(s, indent + " ", v.led_ratio);
  185. }
  186. };
  187. } // namespace message_operations
  188. } // namespace ros
  189. #endif // COMMON_MSGS_MESSAGE_LIGHTINFO_H