Go to the documentation of this file.00001
00002 #ifndef NAO_MSGS_MESSAGE_FADERGB_H
00003 #define NAO_MSGS_MESSAGE_FADERGB_H
00004 #include <string>
00005 #include <vector>
00006 #include <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/macros.h"
00014
00015 #include "ros/assert.h"
00016
00017 #include "std_msgs/ColorRGBA.h"
00018
00019 namespace nao_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct FadeRGB_ {
00023 typedef FadeRGB_<ContainerAllocator> Type;
00024
00025 FadeRGB_()
00026 : led_name()
00027 , color()
00028 , fade_duration()
00029 {
00030 }
00031
00032 FadeRGB_(const ContainerAllocator& _alloc)
00033 : led_name(_alloc)
00034 , color(_alloc)
00035 , fade_duration()
00036 {
00037 }
00038
00039 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _led_name_type;
00040 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > led_name;
00041
00042 typedef ::std_msgs::ColorRGBA_<ContainerAllocator> _color_type;
00043 ::std_msgs::ColorRGBA_<ContainerAllocator> color;
00044
00045 typedef ros::Duration _fade_duration_type;
00046 ros::Duration fade_duration;
00047
00048
00049 typedef boost::shared_ptr< ::nao_msgs::FadeRGB_<ContainerAllocator> > Ptr;
00050 typedef boost::shared_ptr< ::nao_msgs::FadeRGB_<ContainerAllocator> const> ConstPtr;
00051 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00052 };
00053 typedef ::nao_msgs::FadeRGB_<std::allocator<void> > FadeRGB;
00054
00055 typedef boost::shared_ptr< ::nao_msgs::FadeRGB> FadeRGBPtr;
00056 typedef boost::shared_ptr< ::nao_msgs::FadeRGB const> FadeRGBConstPtr;
00057
00058
00059 template<typename ContainerAllocator>
00060 std::ostream& operator<<(std::ostream& s, const ::nao_msgs::FadeRGB_<ContainerAllocator> & v)
00061 {
00062 ros::message_operations::Printer< ::nao_msgs::FadeRGB_<ContainerAllocator> >::stream(s, "", v);
00063 return s;}
00064
00065 }
00066
00067 namespace ros
00068 {
00069 namespace message_traits
00070 {
00071 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::FadeRGB_<ContainerAllocator> > : public TrueType {};
00072 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::FadeRGB_<ContainerAllocator> const> : public TrueType {};
00073 template<class ContainerAllocator>
00074 struct MD5Sum< ::nao_msgs::FadeRGB_<ContainerAllocator> > {
00075 static const char* value()
00076 {
00077 return "0df8c8fbe7f1de5f2168d6117ffced08";
00078 }
00079
00080 static const char* value(const ::nao_msgs::FadeRGB_<ContainerAllocator> &) { return value(); }
00081 static const uint64_t static_value1 = 0x0df8c8fbe7f1de5fULL;
00082 static const uint64_t static_value2 = 0x2168d6117ffced08ULL;
00083 };
00084
00085 template<class ContainerAllocator>
00086 struct DataType< ::nao_msgs::FadeRGB_<ContainerAllocator> > {
00087 static const char* value()
00088 {
00089 return "nao_msgs/FadeRGB";
00090 }
00091
00092 static const char* value(const ::nao_msgs::FadeRGB_<ContainerAllocator> &) { return value(); }
00093 };
00094
00095 template<class ContainerAllocator>
00096 struct Definition< ::nao_msgs::FadeRGB_<ContainerAllocator> > {
00097 static const char* value()
00098 {
00099 return "#Message to fade leds\n\
00100 string led_name\n\
00101 std_msgs/ColorRGBA color\n\
00102 duration fade_duration\n\
00103 \n\
00104 ================================================================================\n\
00105 MSG: std_msgs/ColorRGBA\n\
00106 float32 r\n\
00107 float32 g\n\
00108 float32 b\n\
00109 float32 a\n\
00110 \n\
00111 ";
00112 }
00113
00114 static const char* value(const ::nao_msgs::FadeRGB_<ContainerAllocator> &) { return value(); }
00115 };
00116
00117 }
00118 }
00119
00120 namespace ros
00121 {
00122 namespace serialization
00123 {
00124
00125 template<class ContainerAllocator> struct Serializer< ::nao_msgs::FadeRGB_<ContainerAllocator> >
00126 {
00127 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00128 {
00129 stream.next(m.led_name);
00130 stream.next(m.color);
00131 stream.next(m.fade_duration);
00132 }
00133
00134 ROS_DECLARE_ALLINONE_SERIALIZER;
00135 };
00136 }
00137 }
00138
00139 namespace ros
00140 {
00141 namespace message_operations
00142 {
00143
00144 template<class ContainerAllocator>
00145 struct Printer< ::nao_msgs::FadeRGB_<ContainerAllocator> >
00146 {
00147 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nao_msgs::FadeRGB_<ContainerAllocator> & v)
00148 {
00149 s << indent << "led_name: ";
00150 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.led_name);
00151 s << indent << "color: ";
00152 s << std::endl;
00153 Printer< ::std_msgs::ColorRGBA_<ContainerAllocator> >::stream(s, indent + " ", v.color);
00154 s << indent << "fade_duration: ";
00155 Printer<ros::Duration>::stream(s, indent + " ", v.fade_duration);
00156 }
00157 };
00158
00159
00160 }
00161 }
00162
00163 #endif // NAO_MSGS_MESSAGE_FADERGB_H
00164