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