00001
00002 #ifndef TEST_ROSPY_SERVICE_TRANSITIVESRV_H
00003 #define TEST_ROSPY_SERVICE_TRANSITIVESRV_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 #include "test_rospy/TransitiveMsg1.h"
00016
00017
00018
00019 namespace test_rospy
00020 {
00021 template <class ContainerAllocator>
00022 struct TransitiveSrvRequest_ : public ros::Message
00023 {
00024 typedef TransitiveSrvRequest_<ContainerAllocator> Type;
00025
00026 TransitiveSrvRequest_()
00027 : msg()
00028 {
00029 }
00030
00031 TransitiveSrvRequest_(const ContainerAllocator& _alloc)
00032 : msg(_alloc)
00033 {
00034 }
00035
00036 typedef ::test_rospy::TransitiveMsg1_<ContainerAllocator> _msg_type;
00037 ::test_rospy::TransitiveMsg1_<ContainerAllocator> msg;
00038
00039
00040 private:
00041 static const char* __s_getDataType_() { return "test_rospy/TransitiveSrvRequest"; }
00042 public:
00043 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00044
00045 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00046
00047 private:
00048 static const char* __s_getMD5Sum_() { return "c9627b8665f2e2514f3d19406d2ed17d"; }
00049 public:
00050 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00051
00052 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00053
00054 private:
00055 static const char* __s_getServerMD5Sum_() { return "8b7918ee2b81eaf825f4c70de011f6fa"; }
00056 public:
00057 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00058
00059 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00060
00061 private:
00062 static const char* __s_getMessageDefinition_() { return "test_rospy/TransitiveMsg1 msg\n\
00063 \n\
00064 ================================================================================\n\
00065 MSG: test_rospy/TransitiveMsg1\n\
00066 TransitiveMsg2 msg2\n\
00067 \n\
00068 \n\
00069 ================================================================================\n\
00070 MSG: test_rospy/TransitiveMsg2\n\
00071 test_ros/Composite data\n\
00072 \n\
00073 ================================================================================\n\
00074 MSG: test_ros/Composite\n\
00075 # composite message. required for testing import calculation in generators\n\
00076 CompositeA a\n\
00077 CompositeB b\n\
00078 \n\
00079 ================================================================================\n\
00080 MSG: test_ros/CompositeA\n\
00081 # This represents an orientation in free space in quaternion form.\n\
00082 \n\
00083 float64 x\n\
00084 float64 y\n\
00085 float64 z\n\
00086 float64 w\n\
00087 \n\
00088 ================================================================================\n\
00089 MSG: test_ros/CompositeB\n\
00090 # copy of geometry_msgs/Point for testing\n\
00091 float64 x\n\
00092 float64 y\n\
00093 float64 z\n\
00094 \n\
00095 "; }
00096 public:
00097 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00098
00099 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00100
00101 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00102 {
00103 ros::serialization::OStream stream(write_ptr, 1000000000);
00104 ros::serialization::serialize(stream, msg);
00105 return stream.getData();
00106 }
00107
00108 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00109 {
00110 ros::serialization::IStream stream(read_ptr, 1000000000);
00111 ros::serialization::deserialize(stream, msg);
00112 return stream.getData();
00113 }
00114
00115 ROS_DEPRECATED virtual uint32_t serializationLength() const
00116 {
00117 uint32_t size = 0;
00118 size += ros::serialization::serializationLength(msg);
00119 return size;
00120 }
00121
00122 typedef boost::shared_ptr< ::test_rospy::TransitiveSrvRequest_<ContainerAllocator> > Ptr;
00123 typedef boost::shared_ptr< ::test_rospy::TransitiveSrvRequest_<ContainerAllocator> const> ConstPtr;
00124 };
00125 typedef ::test_rospy::TransitiveSrvRequest_<std::allocator<void> > TransitiveSrvRequest;
00126
00127 typedef boost::shared_ptr< ::test_rospy::TransitiveSrvRequest> TransitiveSrvRequestPtr;
00128 typedef boost::shared_ptr< ::test_rospy::TransitiveSrvRequest const> TransitiveSrvRequestConstPtr;
00129
00130
00131 template <class ContainerAllocator>
00132 struct TransitiveSrvResponse_ : public ros::Message
00133 {
00134 typedef TransitiveSrvResponse_<ContainerAllocator> Type;
00135
00136 TransitiveSrvResponse_()
00137 : a(0)
00138 {
00139 }
00140
00141 TransitiveSrvResponse_(const ContainerAllocator& _alloc)
00142 : a(0)
00143 {
00144 }
00145
00146 typedef int32_t _a_type;
00147 int32_t a;
00148
00149
00150 private:
00151 static const char* __s_getDataType_() { return "test_rospy/TransitiveSrvResponse"; }
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 "5c9fb1a886e81e3162a5c87bf55c072b"; }
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 "8b7918ee2b81eaf825f4c70de011f6fa"; }
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 a\n\
00173 \n\
00174 \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, a);
00186 return stream.getData();
00187 }
00188
00189 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00190 {
00191 ros::serialization::IStream stream(read_ptr, 1000000000);
00192 ros::serialization::deserialize(stream, a);
00193 return stream.getData();
00194 }
00195
00196 ROS_DEPRECATED virtual uint32_t serializationLength() const
00197 {
00198 uint32_t size = 0;
00199 size += ros::serialization::serializationLength(a);
00200 return size;
00201 }
00202
00203 typedef boost::shared_ptr< ::test_rospy::TransitiveSrvResponse_<ContainerAllocator> > Ptr;
00204 typedef boost::shared_ptr< ::test_rospy::TransitiveSrvResponse_<ContainerAllocator> const> ConstPtr;
00205 };
00206 typedef ::test_rospy::TransitiveSrvResponse_<std::allocator<void> > TransitiveSrvResponse;
00207
00208 typedef boost::shared_ptr< ::test_rospy::TransitiveSrvResponse> TransitiveSrvResponsePtr;
00209 typedef boost::shared_ptr< ::test_rospy::TransitiveSrvResponse const> TransitiveSrvResponseConstPtr;
00210
00211 struct TransitiveSrv
00212 {
00213
00214 typedef TransitiveSrvRequest Request;
00215 typedef TransitiveSrvResponse Response;
00216 Request request;
00217 Response response;
00218
00219 typedef Request RequestType;
00220 typedef Response ResponseType;
00221 };
00222 }
00223
00224 namespace ros
00225 {
00226 namespace message_traits
00227 {
00228 template<class ContainerAllocator>
00229 struct MD5Sum< ::test_rospy::TransitiveSrvRequest_<ContainerAllocator> > {
00230 static const char* value()
00231 {
00232 return "c9627b8665f2e2514f3d19406d2ed17d";
00233 }
00234
00235 static const char* value(const ::test_rospy::TransitiveSrvRequest_<ContainerAllocator> &) { return value(); }
00236 static const uint64_t static_value1 = 0xc9627b8665f2e251ULL;
00237 static const uint64_t static_value2 = 0x4f3d19406d2ed17dULL;
00238 };
00239
00240 template<class ContainerAllocator>
00241 struct DataType< ::test_rospy::TransitiveSrvRequest_<ContainerAllocator> > {
00242 static const char* value()
00243 {
00244 return "test_rospy/TransitiveSrvRequest";
00245 }
00246
00247 static const char* value(const ::test_rospy::TransitiveSrvRequest_<ContainerAllocator> &) { return value(); }
00248 };
00249
00250 template<class ContainerAllocator>
00251 struct Definition< ::test_rospy::TransitiveSrvRequest_<ContainerAllocator> > {
00252 static const char* value()
00253 {
00254 return "test_rospy/TransitiveMsg1 msg\n\
00255 \n\
00256 ================================================================================\n\
00257 MSG: test_rospy/TransitiveMsg1\n\
00258 TransitiveMsg2 msg2\n\
00259 \n\
00260 \n\
00261 ================================================================================\n\
00262 MSG: test_rospy/TransitiveMsg2\n\
00263 test_ros/Composite data\n\
00264 \n\
00265 ================================================================================\n\
00266 MSG: test_ros/Composite\n\
00267 # composite message. required for testing import calculation in generators\n\
00268 CompositeA a\n\
00269 CompositeB b\n\
00270 \n\
00271 ================================================================================\n\
00272 MSG: test_ros/CompositeA\n\
00273 # This represents an orientation in free space in quaternion form.\n\
00274 \n\
00275 float64 x\n\
00276 float64 y\n\
00277 float64 z\n\
00278 float64 w\n\
00279 \n\
00280 ================================================================================\n\
00281 MSG: test_ros/CompositeB\n\
00282 # copy of geometry_msgs/Point for testing\n\
00283 float64 x\n\
00284 float64 y\n\
00285 float64 z\n\
00286 \n\
00287 ";
00288 }
00289
00290 static const char* value(const ::test_rospy::TransitiveSrvRequest_<ContainerAllocator> &) { return value(); }
00291 };
00292
00293 template<class ContainerAllocator> struct IsFixedSize< ::test_rospy::TransitiveSrvRequest_<ContainerAllocator> > : public TrueType {};
00294 }
00295 }
00296
00297
00298 namespace ros
00299 {
00300 namespace message_traits
00301 {
00302 template<class ContainerAllocator>
00303 struct MD5Sum< ::test_rospy::TransitiveSrvResponse_<ContainerAllocator> > {
00304 static const char* value()
00305 {
00306 return "5c9fb1a886e81e3162a5c87bf55c072b";
00307 }
00308
00309 static const char* value(const ::test_rospy::TransitiveSrvResponse_<ContainerAllocator> &) { return value(); }
00310 static const uint64_t static_value1 = 0x5c9fb1a886e81e31ULL;
00311 static const uint64_t static_value2 = 0x62a5c87bf55c072bULL;
00312 };
00313
00314 template<class ContainerAllocator>
00315 struct DataType< ::test_rospy::TransitiveSrvResponse_<ContainerAllocator> > {
00316 static const char* value()
00317 {
00318 return "test_rospy/TransitiveSrvResponse";
00319 }
00320
00321 static const char* value(const ::test_rospy::TransitiveSrvResponse_<ContainerAllocator> &) { return value(); }
00322 };
00323
00324 template<class ContainerAllocator>
00325 struct Definition< ::test_rospy::TransitiveSrvResponse_<ContainerAllocator> > {
00326 static const char* value()
00327 {
00328 return "int32 a\n\
00329 \n\
00330 \n\
00331 \n\
00332 ";
00333 }
00334
00335 static const char* value(const ::test_rospy::TransitiveSrvResponse_<ContainerAllocator> &) { return value(); }
00336 };
00337
00338 template<class ContainerAllocator> struct IsFixedSize< ::test_rospy::TransitiveSrvResponse_<ContainerAllocator> > : public TrueType {};
00339 }
00340 }
00341
00342 namespace ros
00343 {
00344 namespace serialization
00345 {
00346
00347 template<class ContainerAllocator> struct Serializer< ::test_rospy::TransitiveSrvRequest_<ContainerAllocator> >
00348 {
00349 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00350 {
00351 stream.next(m.msg);
00352 }
00353
00354 ROS_DECLARE_ALLINONE_SERIALIZER;
00355 };
00356 }
00357 }
00358
00359
00360 namespace ros
00361 {
00362 namespace serialization
00363 {
00364
00365 template<class ContainerAllocator> struct Serializer< ::test_rospy::TransitiveSrvResponse_<ContainerAllocator> >
00366 {
00367 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00368 {
00369 stream.next(m.a);
00370 }
00371
00372 ROS_DECLARE_ALLINONE_SERIALIZER;
00373 };
00374 }
00375 }
00376
00377 namespace ros
00378 {
00379 namespace service_traits
00380 {
00381 template<>
00382 struct MD5Sum<test_rospy::TransitiveSrv> {
00383 static const char* value()
00384 {
00385 return "8b7918ee2b81eaf825f4c70de011f6fa";
00386 }
00387
00388 static const char* value(const test_rospy::TransitiveSrv&) { return value(); }
00389 };
00390
00391 template<>
00392 struct DataType<test_rospy::TransitiveSrv> {
00393 static const char* value()
00394 {
00395 return "test_rospy/TransitiveSrv";
00396 }
00397
00398 static const char* value(const test_rospy::TransitiveSrv&) { return value(); }
00399 };
00400
00401 template<class ContainerAllocator>
00402 struct MD5Sum<test_rospy::TransitiveSrvRequest_<ContainerAllocator> > {
00403 static const char* value()
00404 {
00405 return "8b7918ee2b81eaf825f4c70de011f6fa";
00406 }
00407
00408 static const char* value(const test_rospy::TransitiveSrvRequest_<ContainerAllocator> &) { return value(); }
00409 };
00410
00411 template<class ContainerAllocator>
00412 struct DataType<test_rospy::TransitiveSrvRequest_<ContainerAllocator> > {
00413 static const char* value()
00414 {
00415 return "test_rospy/TransitiveSrv";
00416 }
00417
00418 static const char* value(const test_rospy::TransitiveSrvRequest_<ContainerAllocator> &) { return value(); }
00419 };
00420
00421 template<class ContainerAllocator>
00422 struct MD5Sum<test_rospy::TransitiveSrvResponse_<ContainerAllocator> > {
00423 static const char* value()
00424 {
00425 return "8b7918ee2b81eaf825f4c70de011f6fa";
00426 }
00427
00428 static const char* value(const test_rospy::TransitiveSrvResponse_<ContainerAllocator> &) { return value(); }
00429 };
00430
00431 template<class ContainerAllocator>
00432 struct DataType<test_rospy::TransitiveSrvResponse_<ContainerAllocator> > {
00433 static const char* value()
00434 {
00435 return "test_rospy/TransitiveSrv";
00436 }
00437
00438 static const char* value(const test_rospy::TransitiveSrvResponse_<ContainerAllocator> &) { return value(); }
00439 };
00440
00441 }
00442 }
00443
00444 #endif // TEST_ROSPY_SERVICE_TRANSITIVESRV_H
00445