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