$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-cob_driver/doc_stacks/2013-01-17_11-27-09.518148/cob_driver/cob_lightmode/srv/LightMode.srv */ 00002 #ifndef COB_LIGHTMODE_SERVICE_LIGHTMODE_H 00003 #define COB_LIGHTMODE_SERVICE_LIGHTMODE_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 "std_msgs/ColorRGBA.h" 00020 00021 00022 00023 namespace cob_lightmode 00024 { 00025 template <class ContainerAllocator> 00026 struct LightModeRequest_ { 00027 typedef LightModeRequest_<ContainerAllocator> Type; 00028 00029 LightModeRequest_() 00030 : mode(0) 00031 , color() 00032 { 00033 } 00034 00035 LightModeRequest_(const ContainerAllocator& _alloc) 00036 : mode(0) 00037 , color(_alloc) 00038 { 00039 } 00040 00041 typedef int32_t _mode_type; 00042 int32_t mode; 00043 00044 typedef ::std_msgs::ColorRGBA_<ContainerAllocator> _color_type; 00045 ::std_msgs::ColorRGBA_<ContainerAllocator> color; 00046 00047 00048 private: 00049 static const char* __s_getDataType_() { return "cob_lightmode/LightModeRequest"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "368658e7feae72d08c2715eeb4c7b2d9"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getServerMD5Sum_() { return "6116a3e4964d803aabbed484e797d809"; } 00064 public: 00065 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00066 00067 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00068 00069 private: 00070 static const char* __s_getMessageDefinition_() { return "int32 mode\n\ 00071 std_msgs/ColorRGBA color\n\ 00072 \n\ 00073 ================================================================================\n\ 00074 MSG: std_msgs/ColorRGBA\n\ 00075 float32 r\n\ 00076 float32 g\n\ 00077 float32 b\n\ 00078 float32 a\n\ 00079 \n\ 00080 "; } 00081 public: 00082 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00083 00084 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00085 00086 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00087 { 00088 ros::serialization::OStream stream(write_ptr, 1000000000); 00089 ros::serialization::serialize(stream, mode); 00090 ros::serialization::serialize(stream, color); 00091 return stream.getData(); 00092 } 00093 00094 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00095 { 00096 ros::serialization::IStream stream(read_ptr, 1000000000); 00097 ros::serialization::deserialize(stream, mode); 00098 ros::serialization::deserialize(stream, color); 00099 return stream.getData(); 00100 } 00101 00102 ROS_DEPRECATED virtual uint32_t serializationLength() const 00103 { 00104 uint32_t size = 0; 00105 size += ros::serialization::serializationLength(mode); 00106 size += ros::serialization::serializationLength(color); 00107 return size; 00108 } 00109 00110 typedef boost::shared_ptr< ::cob_lightmode::LightModeRequest_<ContainerAllocator> > Ptr; 00111 typedef boost::shared_ptr< ::cob_lightmode::LightModeRequest_<ContainerAllocator> const> ConstPtr; 00112 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00113 }; // struct LightModeRequest 00114 typedef ::cob_lightmode::LightModeRequest_<std::allocator<void> > LightModeRequest; 00115 00116 typedef boost::shared_ptr< ::cob_lightmode::LightModeRequest> LightModeRequestPtr; 00117 typedef boost::shared_ptr< ::cob_lightmode::LightModeRequest const> LightModeRequestConstPtr; 00118 00119 00120 template <class ContainerAllocator> 00121 struct LightModeResponse_ { 00122 typedef LightModeResponse_<ContainerAllocator> Type; 00123 00124 LightModeResponse_() 00125 : error_type(0) 00126 , error_msg() 00127 { 00128 } 00129 00130 LightModeResponse_(const ContainerAllocator& _alloc) 00131 : error_type(0) 00132 , error_msg(_alloc) 00133 { 00134 } 00135 00136 typedef int32_t _error_type_type; 00137 int32_t error_type; 00138 00139 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _error_msg_type; 00140 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > error_msg; 00141 00142 00143 private: 00144 static const char* __s_getDataType_() { return "cob_lightmode/LightModeResponse"; } 00145 public: 00146 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00147 00148 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00149 00150 private: 00151 static const char* __s_getMD5Sum_() { return "70fb6e48e8cdd4279997f73b5e61a8d3"; } 00152 public: 00153 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00154 00155 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00156 00157 private: 00158 static const char* __s_getServerMD5Sum_() { return "6116a3e4964d803aabbed484e797d809"; } 00159 public: 00160 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00161 00162 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00163 00164 private: 00165 static const char* __s_getMessageDefinition_() { return "int32 error_type\n\ 00166 string error_msg\n\ 00167 \n\ 00168 \n\ 00169 "; } 00170 public: 00171 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00172 00173 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00174 00175 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00176 { 00177 ros::serialization::OStream stream(write_ptr, 1000000000); 00178 ros::serialization::serialize(stream, error_type); 00179 ros::serialization::serialize(stream, error_msg); 00180 return stream.getData(); 00181 } 00182 00183 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00184 { 00185 ros::serialization::IStream stream(read_ptr, 1000000000); 00186 ros::serialization::deserialize(stream, error_type); 00187 ros::serialization::deserialize(stream, error_msg); 00188 return stream.getData(); 00189 } 00190 00191 ROS_DEPRECATED virtual uint32_t serializationLength() const 00192 { 00193 uint32_t size = 0; 00194 size += ros::serialization::serializationLength(error_type); 00195 size += ros::serialization::serializationLength(error_msg); 00196 return size; 00197 } 00198 00199 typedef boost::shared_ptr< ::cob_lightmode::LightModeResponse_<ContainerAllocator> > Ptr; 00200 typedef boost::shared_ptr< ::cob_lightmode::LightModeResponse_<ContainerAllocator> const> ConstPtr; 00201 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00202 }; // struct LightModeResponse 00203 typedef ::cob_lightmode::LightModeResponse_<std::allocator<void> > LightModeResponse; 00204 00205 typedef boost::shared_ptr< ::cob_lightmode::LightModeResponse> LightModeResponsePtr; 00206 typedef boost::shared_ptr< ::cob_lightmode::LightModeResponse const> LightModeResponseConstPtr; 00207 00208 struct LightMode 00209 { 00210 00211 typedef LightModeRequest Request; 00212 typedef LightModeResponse Response; 00213 Request request; 00214 Response response; 00215 00216 typedef Request RequestType; 00217 typedef Response ResponseType; 00218 }; // struct LightMode 00219 } // namespace cob_lightmode 00220 00221 namespace ros 00222 { 00223 namespace message_traits 00224 { 00225 template<class ContainerAllocator> struct IsMessage< ::cob_lightmode::LightModeRequest_<ContainerAllocator> > : public TrueType {}; 00226 template<class ContainerAllocator> struct IsMessage< ::cob_lightmode::LightModeRequest_<ContainerAllocator> const> : public TrueType {}; 00227 template<class ContainerAllocator> 00228 struct MD5Sum< ::cob_lightmode::LightModeRequest_<ContainerAllocator> > { 00229 static const char* value() 00230 { 00231 return "368658e7feae72d08c2715eeb4c7b2d9"; 00232 } 00233 00234 static const char* value(const ::cob_lightmode::LightModeRequest_<ContainerAllocator> &) { return value(); } 00235 static const uint64_t static_value1 = 0x368658e7feae72d0ULL; 00236 static const uint64_t static_value2 = 0x8c2715eeb4c7b2d9ULL; 00237 }; 00238 00239 template<class ContainerAllocator> 00240 struct DataType< ::cob_lightmode::LightModeRequest_<ContainerAllocator> > { 00241 static const char* value() 00242 { 00243 return "cob_lightmode/LightModeRequest"; 00244 } 00245 00246 static const char* value(const ::cob_lightmode::LightModeRequest_<ContainerAllocator> &) { return value(); } 00247 }; 00248 00249 template<class ContainerAllocator> 00250 struct Definition< ::cob_lightmode::LightModeRequest_<ContainerAllocator> > { 00251 static const char* value() 00252 { 00253 return "int32 mode\n\ 00254 std_msgs/ColorRGBA color\n\ 00255 \n\ 00256 ================================================================================\n\ 00257 MSG: std_msgs/ColorRGBA\n\ 00258 float32 r\n\ 00259 float32 g\n\ 00260 float32 b\n\ 00261 float32 a\n\ 00262 \n\ 00263 "; 00264 } 00265 00266 static const char* value(const ::cob_lightmode::LightModeRequest_<ContainerAllocator> &) { return value(); } 00267 }; 00268 00269 template<class ContainerAllocator> struct IsFixedSize< ::cob_lightmode::LightModeRequest_<ContainerAllocator> > : public TrueType {}; 00270 } // namespace message_traits 00271 } // namespace ros 00272 00273 00274 namespace ros 00275 { 00276 namespace message_traits 00277 { 00278 template<class ContainerAllocator> struct IsMessage< ::cob_lightmode::LightModeResponse_<ContainerAllocator> > : public TrueType {}; 00279 template<class ContainerAllocator> struct IsMessage< ::cob_lightmode::LightModeResponse_<ContainerAllocator> const> : public TrueType {}; 00280 template<class ContainerAllocator> 00281 struct MD5Sum< ::cob_lightmode::LightModeResponse_<ContainerAllocator> > { 00282 static const char* value() 00283 { 00284 return "70fb6e48e8cdd4279997f73b5e61a8d3"; 00285 } 00286 00287 static const char* value(const ::cob_lightmode::LightModeResponse_<ContainerAllocator> &) { return value(); } 00288 static const uint64_t static_value1 = 0x70fb6e48e8cdd427ULL; 00289 static const uint64_t static_value2 = 0x9997f73b5e61a8d3ULL; 00290 }; 00291 00292 template<class ContainerAllocator> 00293 struct DataType< ::cob_lightmode::LightModeResponse_<ContainerAllocator> > { 00294 static const char* value() 00295 { 00296 return "cob_lightmode/LightModeResponse"; 00297 } 00298 00299 static const char* value(const ::cob_lightmode::LightModeResponse_<ContainerAllocator> &) { return value(); } 00300 }; 00301 00302 template<class ContainerAllocator> 00303 struct Definition< ::cob_lightmode::LightModeResponse_<ContainerAllocator> > { 00304 static const char* value() 00305 { 00306 return "int32 error_type\n\ 00307 string error_msg\n\ 00308 \n\ 00309 \n\ 00310 "; 00311 } 00312 00313 static const char* value(const ::cob_lightmode::LightModeResponse_<ContainerAllocator> &) { return value(); } 00314 }; 00315 00316 } // namespace message_traits 00317 } // namespace ros 00318 00319 namespace ros 00320 { 00321 namespace serialization 00322 { 00323 00324 template<class ContainerAllocator> struct Serializer< ::cob_lightmode::LightModeRequest_<ContainerAllocator> > 00325 { 00326 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00327 { 00328 stream.next(m.mode); 00329 stream.next(m.color); 00330 } 00331 00332 ROS_DECLARE_ALLINONE_SERIALIZER; 00333 }; // struct LightModeRequest_ 00334 } // namespace serialization 00335 } // namespace ros 00336 00337 00338 namespace ros 00339 { 00340 namespace serialization 00341 { 00342 00343 template<class ContainerAllocator> struct Serializer< ::cob_lightmode::LightModeResponse_<ContainerAllocator> > 00344 { 00345 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00346 { 00347 stream.next(m.error_type); 00348 stream.next(m.error_msg); 00349 } 00350 00351 ROS_DECLARE_ALLINONE_SERIALIZER; 00352 }; // struct LightModeResponse_ 00353 } // namespace serialization 00354 } // namespace ros 00355 00356 namespace ros 00357 { 00358 namespace service_traits 00359 { 00360 template<> 00361 struct MD5Sum<cob_lightmode::LightMode> { 00362 static const char* value() 00363 { 00364 return "6116a3e4964d803aabbed484e797d809"; 00365 } 00366 00367 static const char* value(const cob_lightmode::LightMode&) { return value(); } 00368 }; 00369 00370 template<> 00371 struct DataType<cob_lightmode::LightMode> { 00372 static const char* value() 00373 { 00374 return "cob_lightmode/LightMode"; 00375 } 00376 00377 static const char* value(const cob_lightmode::LightMode&) { return value(); } 00378 }; 00379 00380 template<class ContainerAllocator> 00381 struct MD5Sum<cob_lightmode::LightModeRequest_<ContainerAllocator> > { 00382 static const char* value() 00383 { 00384 return "6116a3e4964d803aabbed484e797d809"; 00385 } 00386 00387 static const char* value(const cob_lightmode::LightModeRequest_<ContainerAllocator> &) { return value(); } 00388 }; 00389 00390 template<class ContainerAllocator> 00391 struct DataType<cob_lightmode::LightModeRequest_<ContainerAllocator> > { 00392 static const char* value() 00393 { 00394 return "cob_lightmode/LightMode"; 00395 } 00396 00397 static const char* value(const cob_lightmode::LightModeRequest_<ContainerAllocator> &) { return value(); } 00398 }; 00399 00400 template<class ContainerAllocator> 00401 struct MD5Sum<cob_lightmode::LightModeResponse_<ContainerAllocator> > { 00402 static const char* value() 00403 { 00404 return "6116a3e4964d803aabbed484e797d809"; 00405 } 00406 00407 static const char* value(const cob_lightmode::LightModeResponse_<ContainerAllocator> &) { return value(); } 00408 }; 00409 00410 template<class ContainerAllocator> 00411 struct DataType<cob_lightmode::LightModeResponse_<ContainerAllocator> > { 00412 static const char* value() 00413 { 00414 return "cob_lightmode/LightMode"; 00415 } 00416 00417 static const char* value(const cob_lightmode::LightModeResponse_<ContainerAllocator> &) { return value(); } 00418 }; 00419 00420 } // namespace service_traits 00421 } // namespace ros 00422 00423 #endif // COB_LIGHTMODE_SERVICE_LIGHTMODE_H 00424