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