00001
00002 #ifndef TURTLESIM_SERVICE_SETPEN_H
00003 #define TURTLESIM_SERVICE_SETPEN_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 turtlesim
00019 {
00020 template <class ContainerAllocator>
00021 struct SetPenRequest_ : public ros::Message
00022 {
00023 typedef SetPenRequest_<ContainerAllocator> Type;
00024
00025 SetPenRequest_()
00026 : r(0)
00027 , g(0)
00028 , b(0)
00029 , width(0)
00030 , off(0)
00031 {
00032 }
00033
00034 SetPenRequest_(const ContainerAllocator& _alloc)
00035 : r(0)
00036 , g(0)
00037 , b(0)
00038 , width(0)
00039 , off(0)
00040 {
00041 }
00042
00043 typedef uint8_t _r_type;
00044 uint8_t r;
00045
00046 typedef uint8_t _g_type;
00047 uint8_t g;
00048
00049 typedef uint8_t _b_type;
00050 uint8_t b;
00051
00052 typedef uint8_t _width_type;
00053 uint8_t width;
00054
00055 typedef uint8_t _off_type;
00056 uint8_t off;
00057
00058
00059 private:
00060 static const char* __s_getDataType_() { return "turtlesim/SetPenRequest"; }
00061 public:
00062 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00063
00064 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00065
00066 private:
00067 static const char* __s_getMD5Sum_() { return "9f452acce566bf0c0954594f69a8e41b"; }
00068 public:
00069 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00070
00071 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00072
00073 private:
00074 static const char* __s_getServerMD5Sum_() { return "9f452acce566bf0c0954594f69a8e41b"; }
00075 public:
00076 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00077
00078 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00079
00080 private:
00081 static const char* __s_getMessageDefinition_() { return "uint8 r\n\
00082 uint8 g\n\
00083 uint8 b\n\
00084 uint8 width\n\
00085 uint8 off\n\
00086 \n\
00087 "; }
00088 public:
00089 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00090
00091 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00092
00093 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00094 {
00095 ros::serialization::OStream stream(write_ptr, 1000000000);
00096 ros::serialization::serialize(stream, r);
00097 ros::serialization::serialize(stream, g);
00098 ros::serialization::serialize(stream, b);
00099 ros::serialization::serialize(stream, width);
00100 ros::serialization::serialize(stream, off);
00101 return stream.getData();
00102 }
00103
00104 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00105 {
00106 ros::serialization::IStream stream(read_ptr, 1000000000);
00107 ros::serialization::deserialize(stream, r);
00108 ros::serialization::deserialize(stream, g);
00109 ros::serialization::deserialize(stream, b);
00110 ros::serialization::deserialize(stream, width);
00111 ros::serialization::deserialize(stream, off);
00112 return stream.getData();
00113 }
00114
00115 ROS_DEPRECATED virtual uint32_t serializationLength() const
00116 {
00117 uint32_t size = 0;
00118 size += ros::serialization::serializationLength(r);
00119 size += ros::serialization::serializationLength(g);
00120 size += ros::serialization::serializationLength(b);
00121 size += ros::serialization::serializationLength(width);
00122 size += ros::serialization::serializationLength(off);
00123 return size;
00124 }
00125
00126 typedef boost::shared_ptr< ::turtlesim::SetPenRequest_<ContainerAllocator> > Ptr;
00127 typedef boost::shared_ptr< ::turtlesim::SetPenRequest_<ContainerAllocator> const> ConstPtr;
00128 };
00129 typedef ::turtlesim::SetPenRequest_<std::allocator<void> > SetPenRequest;
00130
00131 typedef boost::shared_ptr< ::turtlesim::SetPenRequest> SetPenRequestPtr;
00132 typedef boost::shared_ptr< ::turtlesim::SetPenRequest const> SetPenRequestConstPtr;
00133
00134
00135 template <class ContainerAllocator>
00136 struct SetPenResponse_ : public ros::Message
00137 {
00138 typedef SetPenResponse_<ContainerAllocator> Type;
00139
00140 SetPenResponse_()
00141 {
00142 }
00143
00144 SetPenResponse_(const ContainerAllocator& _alloc)
00145 {
00146 }
00147
00148
00149 private:
00150 static const char* __s_getDataType_() { return "turtlesim/SetPenResponse"; }
00151 public:
00152 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00153
00154 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00155
00156 private:
00157 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; }
00158 public:
00159 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00160
00161 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00162
00163 private:
00164 static const char* __s_getServerMD5Sum_() { return "9f452acce566bf0c0954594f69a8e41b"; }
00165 public:
00166 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00167
00168 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00169
00170 private:
00171 static const char* __s_getMessageDefinition_() { return "\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 return stream.getData();
00183 }
00184
00185 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00186 {
00187 ros::serialization::IStream stream(read_ptr, 1000000000);
00188 return stream.getData();
00189 }
00190
00191 ROS_DEPRECATED virtual uint32_t serializationLength() const
00192 {
00193 uint32_t size = 0;
00194 return size;
00195 }
00196
00197 typedef boost::shared_ptr< ::turtlesim::SetPenResponse_<ContainerAllocator> > Ptr;
00198 typedef boost::shared_ptr< ::turtlesim::SetPenResponse_<ContainerAllocator> const> ConstPtr;
00199 };
00200 typedef ::turtlesim::SetPenResponse_<std::allocator<void> > SetPenResponse;
00201
00202 typedef boost::shared_ptr< ::turtlesim::SetPenResponse> SetPenResponsePtr;
00203 typedef boost::shared_ptr< ::turtlesim::SetPenResponse const> SetPenResponseConstPtr;
00204
00205 struct SetPen
00206 {
00207
00208 typedef SetPenRequest Request;
00209 typedef SetPenResponse 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< ::turtlesim::SetPenRequest_<ContainerAllocator> > {
00224 static const char* value()
00225 {
00226 return "9f452acce566bf0c0954594f69a8e41b";
00227 }
00228
00229 static const char* value(const ::turtlesim::SetPenRequest_<ContainerAllocator> &) { return value(); }
00230 static const uint64_t static_value1 = 0x9f452acce566bf0cULL;
00231 static const uint64_t static_value2 = 0x0954594f69a8e41bULL;
00232 };
00233
00234 template<class ContainerAllocator>
00235 struct DataType< ::turtlesim::SetPenRequest_<ContainerAllocator> > {
00236 static const char* value()
00237 {
00238 return "turtlesim/SetPenRequest";
00239 }
00240
00241 static const char* value(const ::turtlesim::SetPenRequest_<ContainerAllocator> &) { return value(); }
00242 };
00243
00244 template<class ContainerAllocator>
00245 struct Definition< ::turtlesim::SetPenRequest_<ContainerAllocator> > {
00246 static const char* value()
00247 {
00248 return "uint8 r\n\
00249 uint8 g\n\
00250 uint8 b\n\
00251 uint8 width\n\
00252 uint8 off\n\
00253 \n\
00254 ";
00255 }
00256
00257 static const char* value(const ::turtlesim::SetPenRequest_<ContainerAllocator> &) { return value(); }
00258 };
00259
00260 template<class ContainerAllocator> struct IsFixedSize< ::turtlesim::SetPenRequest_<ContainerAllocator> > : public TrueType {};
00261 }
00262 }
00263
00264
00265 namespace ros
00266 {
00267 namespace message_traits
00268 {
00269 template<class ContainerAllocator>
00270 struct MD5Sum< ::turtlesim::SetPenResponse_<ContainerAllocator> > {
00271 static const char* value()
00272 {
00273 return "d41d8cd98f00b204e9800998ecf8427e";
00274 }
00275
00276 static const char* value(const ::turtlesim::SetPenResponse_<ContainerAllocator> &) { return value(); }
00277 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00278 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00279 };
00280
00281 template<class ContainerAllocator>
00282 struct DataType< ::turtlesim::SetPenResponse_<ContainerAllocator> > {
00283 static const char* value()
00284 {
00285 return "turtlesim/SetPenResponse";
00286 }
00287
00288 static const char* value(const ::turtlesim::SetPenResponse_<ContainerAllocator> &) { return value(); }
00289 };
00290
00291 template<class ContainerAllocator>
00292 struct Definition< ::turtlesim::SetPenResponse_<ContainerAllocator> > {
00293 static const char* value()
00294 {
00295 return "\n\
00296 \n\
00297 ";
00298 }
00299
00300 static const char* value(const ::turtlesim::SetPenResponse_<ContainerAllocator> &) { return value(); }
00301 };
00302
00303 template<class ContainerAllocator> struct IsFixedSize< ::turtlesim::SetPenResponse_<ContainerAllocator> > : public TrueType {};
00304 }
00305 }
00306
00307 namespace ros
00308 {
00309 namespace serialization
00310 {
00311
00312 template<class ContainerAllocator> struct Serializer< ::turtlesim::SetPenRequest_<ContainerAllocator> >
00313 {
00314 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00315 {
00316 stream.next(m.r);
00317 stream.next(m.g);
00318 stream.next(m.b);
00319 stream.next(m.width);
00320 stream.next(m.off);
00321 }
00322
00323 ROS_DECLARE_ALLINONE_SERIALIZER;
00324 };
00325 }
00326 }
00327
00328
00329 namespace ros
00330 {
00331 namespace serialization
00332 {
00333
00334 template<class ContainerAllocator> struct Serializer< ::turtlesim::SetPenResponse_<ContainerAllocator> >
00335 {
00336 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00337 {
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<turtlesim::SetPen> {
00351 static const char* value()
00352 {
00353 return "9f452acce566bf0c0954594f69a8e41b";
00354 }
00355
00356 static const char* value(const turtlesim::SetPen&) { return value(); }
00357 };
00358
00359 template<>
00360 struct DataType<turtlesim::SetPen> {
00361 static const char* value()
00362 {
00363 return "turtlesim/SetPen";
00364 }
00365
00366 static const char* value(const turtlesim::SetPen&) { return value(); }
00367 };
00368
00369 template<class ContainerAllocator>
00370 struct MD5Sum<turtlesim::SetPenRequest_<ContainerAllocator> > {
00371 static const char* value()
00372 {
00373 return "9f452acce566bf0c0954594f69a8e41b";
00374 }
00375
00376 static const char* value(const turtlesim::SetPenRequest_<ContainerAllocator> &) { return value(); }
00377 };
00378
00379 template<class ContainerAllocator>
00380 struct DataType<turtlesim::SetPenRequest_<ContainerAllocator> > {
00381 static const char* value()
00382 {
00383 return "turtlesim/SetPen";
00384 }
00385
00386 static const char* value(const turtlesim::SetPenRequest_<ContainerAllocator> &) { return value(); }
00387 };
00388
00389 template<class ContainerAllocator>
00390 struct MD5Sum<turtlesim::SetPenResponse_<ContainerAllocator> > {
00391 static const char* value()
00392 {
00393 return "9f452acce566bf0c0954594f69a8e41b";
00394 }
00395
00396 static const char* value(const turtlesim::SetPenResponse_<ContainerAllocator> &) { return value(); }
00397 };
00398
00399 template<class ContainerAllocator>
00400 struct DataType<turtlesim::SetPenResponse_<ContainerAllocator> > {
00401 static const char* value()
00402 {
00403 return "turtlesim/SetPen";
00404 }
00405
00406 static const char* value(const turtlesim::SetPenResponse_<ContainerAllocator> &) { return value(); }
00407 };
00408
00409 }
00410 }
00411
00412 #endif // TURTLESIM_SERVICE_SETPEN_H
00413