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