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