$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-alufr-humanoid_stacks/doc_stacks/2013-03-05_11-28-06.315559/nao_robot/nao_msgs/msg/FadeRGB.msg */ 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 private: 00050 static const char* __s_getDataType_() { return "nao_msgs/FadeRGB"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "0df8c8fbe7f1de5f2168d6117ffced08"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "#Message to fade leds\n\ 00065 string led_name\n\ 00066 std_msgs/ColorRGBA color\n\ 00067 duration fade_duration\n\ 00068 \n\ 00069 ================================================================================\n\ 00070 MSG: std_msgs/ColorRGBA\n\ 00071 float32 r\n\ 00072 float32 g\n\ 00073 float32 b\n\ 00074 float32 a\n\ 00075 \n\ 00076 "; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00079 00080 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00081 00082 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00083 { 00084 ros::serialization::OStream stream(write_ptr, 1000000000); 00085 ros::serialization::serialize(stream, led_name); 00086 ros::serialization::serialize(stream, color); 00087 ros::serialization::serialize(stream, fade_duration); 00088 return stream.getData(); 00089 } 00090 00091 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00092 { 00093 ros::serialization::IStream stream(read_ptr, 1000000000); 00094 ros::serialization::deserialize(stream, led_name); 00095 ros::serialization::deserialize(stream, color); 00096 ros::serialization::deserialize(stream, fade_duration); 00097 return stream.getData(); 00098 } 00099 00100 ROS_DEPRECATED virtual uint32_t serializationLength() const 00101 { 00102 uint32_t size = 0; 00103 size += ros::serialization::serializationLength(led_name); 00104 size += ros::serialization::serializationLength(color); 00105 size += ros::serialization::serializationLength(fade_duration); 00106 return size; 00107 } 00108 00109 typedef boost::shared_ptr< ::nao_msgs::FadeRGB_<ContainerAllocator> > Ptr; 00110 typedef boost::shared_ptr< ::nao_msgs::FadeRGB_<ContainerAllocator> const> ConstPtr; 00111 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00112 }; // struct FadeRGB 00113 typedef ::nao_msgs::FadeRGB_<std::allocator<void> > FadeRGB; 00114 00115 typedef boost::shared_ptr< ::nao_msgs::FadeRGB> FadeRGBPtr; 00116 typedef boost::shared_ptr< ::nao_msgs::FadeRGB const> FadeRGBConstPtr; 00117 00118 00119 template<typename ContainerAllocator> 00120 std::ostream& operator<<(std::ostream& s, const ::nao_msgs::FadeRGB_<ContainerAllocator> & v) 00121 { 00122 ros::message_operations::Printer< ::nao_msgs::FadeRGB_<ContainerAllocator> >::stream(s, "", v); 00123 return s;} 00124 00125 } // namespace nao_msgs 00126 00127 namespace ros 00128 { 00129 namespace message_traits 00130 { 00131 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::FadeRGB_<ContainerAllocator> > : public TrueType {}; 00132 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::FadeRGB_<ContainerAllocator> const> : public TrueType {}; 00133 template<class ContainerAllocator> 00134 struct MD5Sum< ::nao_msgs::FadeRGB_<ContainerAllocator> > { 00135 static const char* value() 00136 { 00137 return "0df8c8fbe7f1de5f2168d6117ffced08"; 00138 } 00139 00140 static const char* value(const ::nao_msgs::FadeRGB_<ContainerAllocator> &) { return value(); } 00141 static const uint64_t static_value1 = 0x0df8c8fbe7f1de5fULL; 00142 static const uint64_t static_value2 = 0x2168d6117ffced08ULL; 00143 }; 00144 00145 template<class ContainerAllocator> 00146 struct DataType< ::nao_msgs::FadeRGB_<ContainerAllocator> > { 00147 static const char* value() 00148 { 00149 return "nao_msgs/FadeRGB"; 00150 } 00151 00152 static const char* value(const ::nao_msgs::FadeRGB_<ContainerAllocator> &) { return value(); } 00153 }; 00154 00155 template<class ContainerAllocator> 00156 struct Definition< ::nao_msgs::FadeRGB_<ContainerAllocator> > { 00157 static const char* value() 00158 { 00159 return "#Message to fade leds\n\ 00160 string led_name\n\ 00161 std_msgs/ColorRGBA color\n\ 00162 duration fade_duration\n\ 00163 \n\ 00164 ================================================================================\n\ 00165 MSG: std_msgs/ColorRGBA\n\ 00166 float32 r\n\ 00167 float32 g\n\ 00168 float32 b\n\ 00169 float32 a\n\ 00170 \n\ 00171 "; 00172 } 00173 00174 static const char* value(const ::nao_msgs::FadeRGB_<ContainerAllocator> &) { return value(); } 00175 }; 00176 00177 } // namespace message_traits 00178 } // namespace ros 00179 00180 namespace ros 00181 { 00182 namespace serialization 00183 { 00184 00185 template<class ContainerAllocator> struct Serializer< ::nao_msgs::FadeRGB_<ContainerAllocator> > 00186 { 00187 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00188 { 00189 stream.next(m.led_name); 00190 stream.next(m.color); 00191 stream.next(m.fade_duration); 00192 } 00193 00194 ROS_DECLARE_ALLINONE_SERIALIZER; 00195 }; // struct FadeRGB_ 00196 } // namespace serialization 00197 } // namespace ros 00198 00199 namespace ros 00200 { 00201 namespace message_operations 00202 { 00203 00204 template<class ContainerAllocator> 00205 struct Printer< ::nao_msgs::FadeRGB_<ContainerAllocator> > 00206 { 00207 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nao_msgs::FadeRGB_<ContainerAllocator> & v) 00208 { 00209 s << indent << "led_name: "; 00210 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.led_name); 00211 s << indent << "color: "; 00212 s << std::endl; 00213 Printer< ::std_msgs::ColorRGBA_<ContainerAllocator> >::stream(s, indent + " ", v.color); 00214 s << indent << "fade_duration: "; 00215 Printer<ros::Duration>::stream(s, indent + " ", v.fade_duration); 00216 } 00217 }; 00218 00219 00220 } // namespace message_operations 00221 } // namespace ros 00222 00223 #endif // NAO_MSGS_MESSAGE_FADERGB_H 00224