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