00001
00002 #ifndef TEST_ROSPY_SERVICE_LISTRETURN_H
00003 #define TEST_ROSPY_SERVICE_LISTRETURN_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 ListReturnRequest_ : public ros::Message
00022 {
00023 typedef ListReturnRequest_<ContainerAllocator> Type;
00024
00025 ListReturnRequest_()
00026 : a(0)
00027 , b(0)
00028 , c(0)
00029 , d(0)
00030 {
00031 }
00032
00033 ListReturnRequest_(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/ListReturnRequest"; }
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 "8083abf57e6eb0ff97ebb506984b66b8"; }
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::ListReturnRequest_<ContainerAllocator> > Ptr;
00119 typedef boost::shared_ptr< ::test_rospy::ListReturnRequest_<ContainerAllocator> const> ConstPtr;
00120 };
00121 typedef ::test_rospy::ListReturnRequest_<std::allocator<void> > ListReturnRequest;
00122
00123 typedef boost::shared_ptr< ::test_rospy::ListReturnRequest> ListReturnRequestPtr;
00124 typedef boost::shared_ptr< ::test_rospy::ListReturnRequest const> ListReturnRequestConstPtr;
00125
00126
00127 template <class ContainerAllocator>
00128 struct ListReturnResponse_ : public ros::Message
00129 {
00130 typedef ListReturnResponse_<ContainerAllocator> Type;
00131
00132 ListReturnResponse_()
00133 : abcd()
00134 {
00135 }
00136
00137 ListReturnResponse_(const ContainerAllocator& _alloc)
00138 : abcd(_alloc)
00139 {
00140 }
00141
00142 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _abcd_type;
00143 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > abcd;
00144
00145
00146 ROS_DEPRECATED uint32_t get_abcd_size() const { return (uint32_t)abcd.size(); }
00147 ROS_DEPRECATED void set_abcd_size(uint32_t size) { abcd.resize((size_t)size); }
00148 ROS_DEPRECATED void get_abcd_vec(std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) const { vec = this->abcd; }
00149 ROS_DEPRECATED void set_abcd_vec(const std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) { this->abcd = vec; }
00150 private:
00151 static const char* __s_getDataType_() { return "test_rospy/ListReturnResponse"; }
00152 public:
00153 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00154
00155 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00156
00157 private:
00158 static const char* __s_getMD5Sum_() { return "f962153177b365e43b03cfe90160f33e"; }
00159 public:
00160 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00161
00162 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00163
00164 private:
00165 static const char* __s_getServerMD5Sum_() { return "8083abf57e6eb0ff97ebb506984b66b8"; }
00166 public:
00167 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00168
00169 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00170
00171 private:
00172 static const char* __s_getMessageDefinition_() { return "int32[] abcd\n\
00173 \n\
00174 \n\
00175 "; }
00176 public:
00177 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00178
00179 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00180
00181 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00182 {
00183 ros::serialization::OStream stream(write_ptr, 1000000000);
00184 ros::serialization::serialize(stream, abcd);
00185 return stream.getData();
00186 }
00187
00188 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00189 {
00190 ros::serialization::IStream stream(read_ptr, 1000000000);
00191 ros::serialization::deserialize(stream, abcd);
00192 return stream.getData();
00193 }
00194
00195 ROS_DEPRECATED virtual uint32_t serializationLength() const
00196 {
00197 uint32_t size = 0;
00198 size += ros::serialization::serializationLength(abcd);
00199 return size;
00200 }
00201
00202 typedef boost::shared_ptr< ::test_rospy::ListReturnResponse_<ContainerAllocator> > Ptr;
00203 typedef boost::shared_ptr< ::test_rospy::ListReturnResponse_<ContainerAllocator> const> ConstPtr;
00204 };
00205 typedef ::test_rospy::ListReturnResponse_<std::allocator<void> > ListReturnResponse;
00206
00207 typedef boost::shared_ptr< ::test_rospy::ListReturnResponse> ListReturnResponsePtr;
00208 typedef boost::shared_ptr< ::test_rospy::ListReturnResponse const> ListReturnResponseConstPtr;
00209
00210 struct ListReturn
00211 {
00212
00213 typedef ListReturnRequest Request;
00214 typedef ListReturnResponse Response;
00215 Request request;
00216 Response response;
00217
00218 typedef Request RequestType;
00219 typedef Response ResponseType;
00220 };
00221 }
00222
00223 namespace ros
00224 {
00225 namespace message_traits
00226 {
00227 template<class ContainerAllocator>
00228 struct MD5Sum< ::test_rospy::ListReturnRequest_<ContainerAllocator> > {
00229 static const char* value()
00230 {
00231 return "55328e64986cccd71be7fe834e693c76";
00232 }
00233
00234 static const char* value(const ::test_rospy::ListReturnRequest_<ContainerAllocator> &) { return value(); }
00235 static const uint64_t static_value1 = 0x55328e64986cccd7ULL;
00236 static const uint64_t static_value2 = 0x1be7fe834e693c76ULL;
00237 };
00238
00239 template<class ContainerAllocator>
00240 struct DataType< ::test_rospy::ListReturnRequest_<ContainerAllocator> > {
00241 static const char* value()
00242 {
00243 return "test_rospy/ListReturnRequest";
00244 }
00245
00246 static const char* value(const ::test_rospy::ListReturnRequest_<ContainerAllocator> &) { return value(); }
00247 };
00248
00249 template<class ContainerAllocator>
00250 struct Definition< ::test_rospy::ListReturnRequest_<ContainerAllocator> > {
00251 static const char* value()
00252 {
00253 return "\n\
00254 int32 a\n\
00255 int32 b\n\
00256 int32 c\n\
00257 int32 d\n\
00258 \n\
00259 ";
00260 }
00261
00262 static const char* value(const ::test_rospy::ListReturnRequest_<ContainerAllocator> &) { return value(); }
00263 };
00264
00265 template<class ContainerAllocator> struct IsFixedSize< ::test_rospy::ListReturnRequest_<ContainerAllocator> > : public TrueType {};
00266 }
00267 }
00268
00269
00270 namespace ros
00271 {
00272 namespace message_traits
00273 {
00274 template<class ContainerAllocator>
00275 struct MD5Sum< ::test_rospy::ListReturnResponse_<ContainerAllocator> > {
00276 static const char* value()
00277 {
00278 return "f962153177b365e43b03cfe90160f33e";
00279 }
00280
00281 static const char* value(const ::test_rospy::ListReturnResponse_<ContainerAllocator> &) { return value(); }
00282 static const uint64_t static_value1 = 0xf962153177b365e4ULL;
00283 static const uint64_t static_value2 = 0x3b03cfe90160f33eULL;
00284 };
00285
00286 template<class ContainerAllocator>
00287 struct DataType< ::test_rospy::ListReturnResponse_<ContainerAllocator> > {
00288 static const char* value()
00289 {
00290 return "test_rospy/ListReturnResponse";
00291 }
00292
00293 static const char* value(const ::test_rospy::ListReturnResponse_<ContainerAllocator> &) { return value(); }
00294 };
00295
00296 template<class ContainerAllocator>
00297 struct Definition< ::test_rospy::ListReturnResponse_<ContainerAllocator> > {
00298 static const char* value()
00299 {
00300 return "int32[] abcd\n\
00301 \n\
00302 \n\
00303 ";
00304 }
00305
00306 static const char* value(const ::test_rospy::ListReturnResponse_<ContainerAllocator> &) { return value(); }
00307 };
00308
00309 }
00310 }
00311
00312 namespace ros
00313 {
00314 namespace serialization
00315 {
00316
00317 template<class ContainerAllocator> struct Serializer< ::test_rospy::ListReturnRequest_<ContainerAllocator> >
00318 {
00319 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00320 {
00321 stream.next(m.a);
00322 stream.next(m.b);
00323 stream.next(m.c);
00324 stream.next(m.d);
00325 }
00326
00327 ROS_DECLARE_ALLINONE_SERIALIZER;
00328 };
00329 }
00330 }
00331
00332
00333 namespace ros
00334 {
00335 namespace serialization
00336 {
00337
00338 template<class ContainerAllocator> struct Serializer< ::test_rospy::ListReturnResponse_<ContainerAllocator> >
00339 {
00340 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00341 {
00342 stream.next(m.abcd);
00343 }
00344
00345 ROS_DECLARE_ALLINONE_SERIALIZER;
00346 };
00347 }
00348 }
00349
00350 namespace ros
00351 {
00352 namespace service_traits
00353 {
00354 template<>
00355 struct MD5Sum<test_rospy::ListReturn> {
00356 static const char* value()
00357 {
00358 return "8083abf57e6eb0ff97ebb506984b66b8";
00359 }
00360
00361 static const char* value(const test_rospy::ListReturn&) { return value(); }
00362 };
00363
00364 template<>
00365 struct DataType<test_rospy::ListReturn> {
00366 static const char* value()
00367 {
00368 return "test_rospy/ListReturn";
00369 }
00370
00371 static const char* value(const test_rospy::ListReturn&) { return value(); }
00372 };
00373
00374 template<class ContainerAllocator>
00375 struct MD5Sum<test_rospy::ListReturnRequest_<ContainerAllocator> > {
00376 static const char* value()
00377 {
00378 return "8083abf57e6eb0ff97ebb506984b66b8";
00379 }
00380
00381 static const char* value(const test_rospy::ListReturnRequest_<ContainerAllocator> &) { return value(); }
00382 };
00383
00384 template<class ContainerAllocator>
00385 struct DataType<test_rospy::ListReturnRequest_<ContainerAllocator> > {
00386 static const char* value()
00387 {
00388 return "test_rospy/ListReturn";
00389 }
00390
00391 static const char* value(const test_rospy::ListReturnRequest_<ContainerAllocator> &) { return value(); }
00392 };
00393
00394 template<class ContainerAllocator>
00395 struct MD5Sum<test_rospy::ListReturnResponse_<ContainerAllocator> > {
00396 static const char* value()
00397 {
00398 return "8083abf57e6eb0ff97ebb506984b66b8";
00399 }
00400
00401 static const char* value(const test_rospy::ListReturnResponse_<ContainerAllocator> &) { return value(); }
00402 };
00403
00404 template<class ContainerAllocator>
00405 struct DataType<test_rospy::ListReturnResponse_<ContainerAllocator> > {
00406 static const char* value()
00407 {
00408 return "test_rospy/ListReturn";
00409 }
00410
00411 static const char* value(const test_rospy::ListReturnResponse_<ContainerAllocator> &) { return value(); }
00412 };
00413
00414 }
00415 }
00416
00417 #endif // TEST_ROSPY_SERVICE_LISTRETURN_H
00418