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