// Generated by gencpp from file common_msgs/SetLightStatusRequest.msg // DO NOT EDIT! #ifndef COMMON_MSGS_MESSAGE_SETLIGHTSTATUSREQUEST_H #define COMMON_MSGS_MESSAGE_SETLIGHTSTATUSREQUEST_H #include #include #include #include #include #include #include namespace common_msgs { template struct SetLightStatusRequest_ { typedef SetLightStatusRequest_ Type; SetLightStatusRequest_() : head_light(0.0) , ring_light(0.0) , led_red(0.0) , led_yellow(0.0) , led_blue(0.0) , led_ratio(0.0) { } SetLightStatusRequest_(const ContainerAllocator& _alloc) : head_light(0.0) , ring_light(0.0) , led_red(0.0) , led_yellow(0.0) , led_blue(0.0) , led_ratio(0.0) { (void)_alloc; } typedef float _head_light_type; _head_light_type head_light; typedef float _ring_light_type; _ring_light_type ring_light; typedef float _led_red_type; _led_red_type led_red; typedef float _led_yellow_type; _led_yellow_type led_yellow; typedef float _led_blue_type; _led_blue_type led_blue; typedef float _led_ratio_type; _led_ratio_type led_ratio; typedef boost::shared_ptr< ::common_msgs::SetLightStatusRequest_ > Ptr; typedef boost::shared_ptr< ::common_msgs::SetLightStatusRequest_ const> ConstPtr; }; // struct SetLightStatusRequest_ typedef ::common_msgs::SetLightStatusRequest_ > SetLightStatusRequest; typedef boost::shared_ptr< ::common_msgs::SetLightStatusRequest > SetLightStatusRequestPtr; typedef boost::shared_ptr< ::common_msgs::SetLightStatusRequest const> SetLightStatusRequestConstPtr; // constants requiring out of line definition template std::ostream& operator<<(std::ostream& s, const ::common_msgs::SetLightStatusRequest_ & v) { ros::message_operations::Printer< ::common_msgs::SetLightStatusRequest_ >::stream(s, "", v); return s; } template bool operator==(const ::common_msgs::SetLightStatusRequest_ & lhs, const ::common_msgs::SetLightStatusRequest_ & rhs) { return lhs.head_light == rhs.head_light && lhs.ring_light == rhs.ring_light && lhs.led_red == rhs.led_red && lhs.led_yellow == rhs.led_yellow && lhs.led_blue == rhs.led_blue && lhs.led_ratio == rhs.led_ratio; } template bool operator!=(const ::common_msgs::SetLightStatusRequest_ & lhs, const ::common_msgs::SetLightStatusRequest_ & rhs) { return !(lhs == rhs); } } // namespace common_msgs namespace ros { namespace message_traits { template struct IsFixedSize< ::common_msgs::SetLightStatusRequest_ > : TrueType { }; template struct IsFixedSize< ::common_msgs::SetLightStatusRequest_ const> : TrueType { }; template struct IsMessage< ::common_msgs::SetLightStatusRequest_ > : TrueType { }; template struct IsMessage< ::common_msgs::SetLightStatusRequest_ const> : TrueType { }; template struct HasHeader< ::common_msgs::SetLightStatusRequest_ > : FalseType { }; template struct HasHeader< ::common_msgs::SetLightStatusRequest_ const> : FalseType { }; template struct MD5Sum< ::common_msgs::SetLightStatusRequest_ > { static const char* value() { return "9d948a7b9c70159b669e8d28efcce40a"; } static const char* value(const ::common_msgs::SetLightStatusRequest_&) { return value(); } static const uint64_t static_value1 = 0x9d948a7b9c70159bULL; static const uint64_t static_value2 = 0x669e8d28efcce40aULL; }; template struct DataType< ::common_msgs::SetLightStatusRequest_ > { static const char* value() { return "common_msgs/SetLightStatusRequest"; } static const char* value(const ::common_msgs::SetLightStatusRequest_&) { return value(); } }; template struct Definition< ::common_msgs::SetLightStatusRequest_ > { static const char* value() { return "#灯光控制\n" "#前大灯\n" "float32 head_light\n" "#光圈灯\n" "float32 ring_light\n" "#Led灯\n" "float32 led_red\n" "float32 led_yellow\n" "float32 led_blue\n" "float32 led_ratio\n" ; } static const char* value(const ::common_msgs::SetLightStatusRequest_&) { return value(); } }; } // namespace message_traits } // namespace ros namespace ros { namespace serialization { template struct Serializer< ::common_msgs::SetLightStatusRequest_ > { template inline static void allInOne(Stream& stream, T m) { stream.next(m.head_light); stream.next(m.ring_light); stream.next(m.led_red); stream.next(m.led_yellow); stream.next(m.led_blue); stream.next(m.led_ratio); } ROS_DECLARE_ALLINONE_SERIALIZER }; // struct SetLightStatusRequest_ } // namespace serialization } // namespace ros namespace ros { namespace message_operations { template struct Printer< ::common_msgs::SetLightStatusRequest_ > { template static void stream(Stream& s, const std::string& indent, const ::common_msgs::SetLightStatusRequest_& v) { s << indent << "head_light: "; Printer::stream(s, indent + " ", v.head_light); s << indent << "ring_light: "; Printer::stream(s, indent + " ", v.ring_light); s << indent << "led_red: "; Printer::stream(s, indent + " ", v.led_red); s << indent << "led_yellow: "; Printer::stream(s, indent + " ", v.led_yellow); s << indent << "led_blue: "; Printer::stream(s, indent + " ", v.led_blue); s << indent << "led_ratio: "; Printer::stream(s, indent + " ", v.led_ratio); } }; } // namespace message_operations } // namespace ros #endif // COMMON_MSGS_MESSAGE_SETLIGHTSTATUSREQUEST_H