SetLightMode.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-cob_driver/doc_stacks/2014-10-05_22-55-45.096012/cob_driver/cob_light/srv/SetLightMode.srv */
00002 #ifndef COB_LIGHT_SERVICE_SETLIGHTMODE_H
00003 #define COB_LIGHT_SERVICE_SETLIGHTMODE_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 "ros/service_traits.h"
00018 
00019 #include "cob_light/LightMode.h"
00020 
00021 
00022 
00023 namespace cob_light
00024 {
00025 template <class ContainerAllocator>
00026 struct SetLightModeRequest_ {
00027   typedef SetLightModeRequest_<ContainerAllocator> Type;
00028 
00029   SetLightModeRequest_()
00030   : mode()
00031   {
00032   }
00033 
00034   SetLightModeRequest_(const ContainerAllocator& _alloc)
00035   : mode(_alloc)
00036   {
00037   }
00038 
00039   typedef  ::cob_light::LightMode_<ContainerAllocator>  _mode_type;
00040    ::cob_light::LightMode_<ContainerAllocator>  mode;
00041 
00042 
00043   typedef boost::shared_ptr< ::cob_light::SetLightModeRequest_<ContainerAllocator> > Ptr;
00044   typedef boost::shared_ptr< ::cob_light::SetLightModeRequest_<ContainerAllocator>  const> ConstPtr;
00045   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00046 }; // struct SetLightModeRequest
00047 typedef  ::cob_light::SetLightModeRequest_<std::allocator<void> > SetLightModeRequest;
00048 
00049 typedef boost::shared_ptr< ::cob_light::SetLightModeRequest> SetLightModeRequestPtr;
00050 typedef boost::shared_ptr< ::cob_light::SetLightModeRequest const> SetLightModeRequestConstPtr;
00051 
00052 
00053 
00054 template <class ContainerAllocator>
00055 struct SetLightModeResponse_ {
00056   typedef SetLightModeResponse_<ContainerAllocator> Type;
00057 
00058   SetLightModeResponse_()
00059   : active_mode(0)
00060   , active_priority(0)
00061   {
00062   }
00063 
00064   SetLightModeResponse_(const ContainerAllocator& _alloc)
00065   : active_mode(0)
00066   , active_priority(0)
00067   {
00068   }
00069 
00070   typedef uint8_t _active_mode_type;
00071   uint8_t active_mode;
00072 
00073   typedef uint8_t _active_priority_type;
00074   uint8_t active_priority;
00075 
00076 
00077   typedef boost::shared_ptr< ::cob_light::SetLightModeResponse_<ContainerAllocator> > Ptr;
00078   typedef boost::shared_ptr< ::cob_light::SetLightModeResponse_<ContainerAllocator>  const> ConstPtr;
00079   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00080 }; // struct SetLightModeResponse
00081 typedef  ::cob_light::SetLightModeResponse_<std::allocator<void> > SetLightModeResponse;
00082 
00083 typedef boost::shared_ptr< ::cob_light::SetLightModeResponse> SetLightModeResponsePtr;
00084 typedef boost::shared_ptr< ::cob_light::SetLightModeResponse const> SetLightModeResponseConstPtr;
00085 
00086 
00087 struct SetLightMode
00088 {
00089 
00090 typedef SetLightModeRequest Request;
00091 typedef SetLightModeResponse Response;
00092 Request request;
00093 Response response;
00094 
00095 typedef Request RequestType;
00096 typedef Response ResponseType;
00097 }; // struct SetLightMode
00098 } // namespace cob_light
00099 
00100 namespace ros
00101 {
00102 namespace message_traits
00103 {
00104 template<class ContainerAllocator> struct IsMessage< ::cob_light::SetLightModeRequest_<ContainerAllocator> > : public TrueType {};
00105 template<class ContainerAllocator> struct IsMessage< ::cob_light::SetLightModeRequest_<ContainerAllocator>  const> : public TrueType {};
00106 template<class ContainerAllocator>
00107 struct MD5Sum< ::cob_light::SetLightModeRequest_<ContainerAllocator> > {
00108   static const char* value() 
00109   {
00110     return "bfc3763d6f527fc6f26b234ea07ebf58";
00111   }
00112 
00113   static const char* value(const  ::cob_light::SetLightModeRequest_<ContainerAllocator> &) { return value(); } 
00114   static const uint64_t static_value1 = 0xbfc3763d6f527fc6ULL;
00115   static const uint64_t static_value2 = 0xf26b234ea07ebf58ULL;
00116 };
00117 
00118 template<class ContainerAllocator>
00119 struct DataType< ::cob_light::SetLightModeRequest_<ContainerAllocator> > {
00120   static const char* value() 
00121   {
00122     return "cob_light/SetLightModeRequest";
00123   }
00124 
00125   static const char* value(const  ::cob_light::SetLightModeRequest_<ContainerAllocator> &) { return value(); } 
00126 };
00127 
00128 template<class ContainerAllocator>
00129 struct Definition< ::cob_light::SetLightModeRequest_<ContainerAllocator> > {
00130   static const char* value() 
00131   {
00132     return "cob_light/LightMode mode\n\
00133 \n\
00134 ================================================================================\n\
00135 MSG: cob_light/LightMode\n\
00136 uint8 mode\n\
00137 uint8 NONE = 0                  # will turn everything off\n\
00138 uint8 STATIC = 1                # will change the LEDs to \"color\"\n\
00139 uint8 FLASH = 2                 # will change the LEDs frequently with \"frequency\" from \"color\" to black\n\
00140 uint8 BREATH = 3                # will change the LEDs smoothly with \"frequency\" from \"color\" to black\n\
00141 uint8 BREATH_COLOR = 4  # will change the LEDs smoothly with \"frequency\" from \"color\" to black\n\
00142                                                 # and flips color in time\n\
00143 uint8 FADE_COLOR = 5    # will fade the colors in rainbow\n\
00144 \n\
00145 std_msgs/ColorRGBA color #the color which will be used\n\
00146 float32 frequency               # in Hz\n\
00147 float32 timeout                 # in s, requested mode will be executed for max timout s.\n\
00148                                                 # default is 0 and meens no timeout.\n\
00149 int32 pulses                    # spezifies the amount of pulses which will be executed.\n\
00150                                                 # eg: mode = flash, pulses = 2. Meens the light will flash two times\n\
00151 int8 priority                   # priority [-20,20] default = 0. Modes with same or higher priorities will \n\
00152                                                 # be executed.\n\
00153 ================================================================================\n\
00154 MSG: std_msgs/ColorRGBA\n\
00155 float32 r\n\
00156 float32 g\n\
00157 float32 b\n\
00158 float32 a\n\
00159 \n\
00160 ";
00161   }
00162 
00163   static const char* value(const  ::cob_light::SetLightModeRequest_<ContainerAllocator> &) { return value(); } 
00164 };
00165 
00166 template<class ContainerAllocator> struct IsFixedSize< ::cob_light::SetLightModeRequest_<ContainerAllocator> > : public TrueType {};
00167 } // namespace message_traits
00168 } // namespace ros
00169 
00170 
00171 namespace ros
00172 {
00173 namespace message_traits
00174 {
00175 template<class ContainerAllocator> struct IsMessage< ::cob_light::SetLightModeResponse_<ContainerAllocator> > : public TrueType {};
00176 template<class ContainerAllocator> struct IsMessage< ::cob_light::SetLightModeResponse_<ContainerAllocator>  const> : public TrueType {};
00177 template<class ContainerAllocator>
00178 struct MD5Sum< ::cob_light::SetLightModeResponse_<ContainerAllocator> > {
00179   static const char* value() 
00180   {
00181     return "18daff0db423efd323f68cd039226daa";
00182   }
00183 
00184   static const char* value(const  ::cob_light::SetLightModeResponse_<ContainerAllocator> &) { return value(); } 
00185   static const uint64_t static_value1 = 0x18daff0db423efd3ULL;
00186   static const uint64_t static_value2 = 0x23f68cd039226daaULL;
00187 };
00188 
00189 template<class ContainerAllocator>
00190 struct DataType< ::cob_light::SetLightModeResponse_<ContainerAllocator> > {
00191   static const char* value() 
00192   {
00193     return "cob_light/SetLightModeResponse";
00194   }
00195 
00196   static const char* value(const  ::cob_light::SetLightModeResponse_<ContainerAllocator> &) { return value(); } 
00197 };
00198 
00199 template<class ContainerAllocator>
00200 struct Definition< ::cob_light::SetLightModeResponse_<ContainerAllocator> > {
00201   static const char* value() 
00202   {
00203     return "uint8 active_mode\n\
00204 uint8 active_priority\n\
00205 \n\
00206 \n\
00207 ";
00208   }
00209 
00210   static const char* value(const  ::cob_light::SetLightModeResponse_<ContainerAllocator> &) { return value(); } 
00211 };
00212 
00213 template<class ContainerAllocator> struct IsFixedSize< ::cob_light::SetLightModeResponse_<ContainerAllocator> > : public TrueType {};
00214 } // namespace message_traits
00215 } // namespace ros
00216 
00217 namespace ros
00218 {
00219 namespace serialization
00220 {
00221 
00222 template<class ContainerAllocator> struct Serializer< ::cob_light::SetLightModeRequest_<ContainerAllocator> >
00223 {
00224   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00225   {
00226     stream.next(m.mode);
00227   }
00228 
00229   ROS_DECLARE_ALLINONE_SERIALIZER;
00230 }; // struct SetLightModeRequest_
00231 } // namespace serialization
00232 } // namespace ros
00233 
00234 
00235 namespace ros
00236 {
00237 namespace serialization
00238 {
00239 
00240 template<class ContainerAllocator> struct Serializer< ::cob_light::SetLightModeResponse_<ContainerAllocator> >
00241 {
00242   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00243   {
00244     stream.next(m.active_mode);
00245     stream.next(m.active_priority);
00246   }
00247 
00248   ROS_DECLARE_ALLINONE_SERIALIZER;
00249 }; // struct SetLightModeResponse_
00250 } // namespace serialization
00251 } // namespace ros
00252 
00253 namespace ros
00254 {
00255 namespace service_traits
00256 {
00257 template<>
00258 struct MD5Sum<cob_light::SetLightMode> {
00259   static const char* value() 
00260   {
00261     return "57298654f4212b21595f18a9835f0a95";
00262   }
00263 
00264   static const char* value(const cob_light::SetLightMode&) { return value(); } 
00265 };
00266 
00267 template<>
00268 struct DataType<cob_light::SetLightMode> {
00269   static const char* value() 
00270   {
00271     return "cob_light/SetLightMode";
00272   }
00273 
00274   static const char* value(const cob_light::SetLightMode&) { return value(); } 
00275 };
00276 
00277 template<class ContainerAllocator>
00278 struct MD5Sum<cob_light::SetLightModeRequest_<ContainerAllocator> > {
00279   static const char* value() 
00280   {
00281     return "57298654f4212b21595f18a9835f0a95";
00282   }
00283 
00284   static const char* value(const cob_light::SetLightModeRequest_<ContainerAllocator> &) { return value(); } 
00285 };
00286 
00287 template<class ContainerAllocator>
00288 struct DataType<cob_light::SetLightModeRequest_<ContainerAllocator> > {
00289   static const char* value() 
00290   {
00291     return "cob_light/SetLightMode";
00292   }
00293 
00294   static const char* value(const cob_light::SetLightModeRequest_<ContainerAllocator> &) { return value(); } 
00295 };
00296 
00297 template<class ContainerAllocator>
00298 struct MD5Sum<cob_light::SetLightModeResponse_<ContainerAllocator> > {
00299   static const char* value() 
00300   {
00301     return "57298654f4212b21595f18a9835f0a95";
00302   }
00303 
00304   static const char* value(const cob_light::SetLightModeResponse_<ContainerAllocator> &) { return value(); } 
00305 };
00306 
00307 template<class ContainerAllocator>
00308 struct DataType<cob_light::SetLightModeResponse_<ContainerAllocator> > {
00309   static const char* value() 
00310   {
00311     return "cob_light/SetLightMode";
00312   }
00313 
00314   static const char* value(const cob_light::SetLightModeResponse_<ContainerAllocator> &) { return value(); } 
00315 };
00316 
00317 } // namespace service_traits
00318 } // namespace ros
00319 
00320 #endif // COB_LIGHT_SERVICE_SETLIGHTMODE_H
00321 


cob_light
Author(s): Benjamin Maidel
autogenerated on Sun Oct 5 2014 23:09:07