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