00001
00002 #ifndef TEST_ROSSERVICE_SERVICE_HEADERECHO_H
00003 #define TEST_ROSSERVICE_SERVICE_HEADERECHO_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/Header.h"
00016
00017
00018 #include "std_msgs/Header.h"
00019
00020 namespace test_rosservice
00021 {
00022 template <class ContainerAllocator>
00023 struct HeaderEchoRequest_ : public ros::Message
00024 {
00025 typedef HeaderEchoRequest_<ContainerAllocator> Type;
00026
00027 HeaderEchoRequest_()
00028 : header()
00029 {
00030 }
00031
00032 HeaderEchoRequest_(const ContainerAllocator& _alloc)
00033 : header(_alloc)
00034 {
00035 }
00036
00037 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00038 ::std_msgs::Header_<ContainerAllocator> header;
00039
00040
00041 private:
00042 static const char* __s_getDataType_() { return "test_rosservice/HeaderEchoRequest"; }
00043 public:
00044 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00045
00046 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00047
00048 private:
00049 static const char* __s_getMD5Sum_() { return "d7be0bb39af8fb9129d5a76e6b63a290"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00052
00053 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00054
00055 private:
00056 static const char* __s_getServerMD5Sum_() { return "3c64cc5ac7e6cbcec5fa7b5ed330b0a6"; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00059
00060 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00061
00062 private:
00063 static const char* __s_getMessageDefinition_() { return "Header header\n\
00064 \n\
00065 ================================================================================\n\
00066 MSG: std_msgs/Header\n\
00067 # Standard metadata for higher-level stamped data types.\n\
00068 # This is generally used to communicate timestamped data \n\
00069 # in a particular coordinate frame.\n\
00070 # \n\
00071 # sequence ID: consecutively increasing ID \n\
00072 uint32 seq\n\
00073 #Two-integer timestamp that is expressed as:\n\
00074 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00075 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00076 # time-handling sugar is provided by the client library\n\
00077 time stamp\n\
00078 #Frame this data is associated with\n\
00079 # 0: no frame\n\
00080 # 1: global frame\n\
00081 string frame_id\n\
00082 \n\
00083 "; }
00084 public:
00085 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00086
00087 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00088
00089 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00090 {
00091 ros::serialization::OStream stream(write_ptr, 1000000000);
00092 ros::serialization::serialize(stream, header);
00093 return stream.getData();
00094 }
00095
00096 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00097 {
00098 ros::serialization::IStream stream(read_ptr, 1000000000);
00099 ros::serialization::deserialize(stream, header);
00100 return stream.getData();
00101 }
00102
00103 ROS_DEPRECATED virtual uint32_t serializationLength() const
00104 {
00105 uint32_t size = 0;
00106 size += ros::serialization::serializationLength(header);
00107 return size;
00108 }
00109
00110 typedef boost::shared_ptr< ::test_rosservice::HeaderEchoRequest_<ContainerAllocator> > Ptr;
00111 typedef boost::shared_ptr< ::test_rosservice::HeaderEchoRequest_<ContainerAllocator> const> ConstPtr;
00112 };
00113 typedef ::test_rosservice::HeaderEchoRequest_<std::allocator<void> > HeaderEchoRequest;
00114
00115 typedef boost::shared_ptr< ::test_rosservice::HeaderEchoRequest> HeaderEchoRequestPtr;
00116 typedef boost::shared_ptr< ::test_rosservice::HeaderEchoRequest const> HeaderEchoRequestConstPtr;
00117
00118
00119 template <class ContainerAllocator>
00120 struct HeaderEchoResponse_ : public ros::Message
00121 {
00122 typedef HeaderEchoResponse_<ContainerAllocator> Type;
00123
00124 HeaderEchoResponse_()
00125 : header()
00126 {
00127 }
00128
00129 HeaderEchoResponse_(const ContainerAllocator& _alloc)
00130 : header(_alloc)
00131 {
00132 }
00133
00134 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00135 ::std_msgs::Header_<ContainerAllocator> header;
00136
00137
00138 private:
00139 static const char* __s_getDataType_() { return "test_rosservice/HeaderEchoResponse"; }
00140 public:
00141 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00142
00143 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00144
00145 private:
00146 static const char* __s_getMD5Sum_() { return "d7be0bb39af8fb9129d5a76e6b63a290"; }
00147 public:
00148 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00149
00150 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00151
00152 private:
00153 static const char* __s_getServerMD5Sum_() { return "3c64cc5ac7e6cbcec5fa7b5ed330b0a6"; }
00154 public:
00155 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00156
00157 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00158
00159 private:
00160 static const char* __s_getMessageDefinition_() { return "Header header\n\
00161 \n\
00162 \n\
00163 ================================================================================\n\
00164 MSG: std_msgs/Header\n\
00165 # Standard metadata for higher-level stamped data types.\n\
00166 # This is generally used to communicate timestamped data \n\
00167 # in a particular coordinate frame.\n\
00168 # \n\
00169 # sequence ID: consecutively increasing ID \n\
00170 uint32 seq\n\
00171 #Two-integer timestamp that is expressed as:\n\
00172 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00173 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00174 # time-handling sugar is provided by the client library\n\
00175 time stamp\n\
00176 #Frame this data is associated with\n\
00177 # 0: no frame\n\
00178 # 1: global frame\n\
00179 string frame_id\n\
00180 \n\
00181 "; }
00182 public:
00183 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00184
00185 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00186
00187 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00188 {
00189 ros::serialization::OStream stream(write_ptr, 1000000000);
00190 ros::serialization::serialize(stream, header);
00191 return stream.getData();
00192 }
00193
00194 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00195 {
00196 ros::serialization::IStream stream(read_ptr, 1000000000);
00197 ros::serialization::deserialize(stream, header);
00198 return stream.getData();
00199 }
00200
00201 ROS_DEPRECATED virtual uint32_t serializationLength() const
00202 {
00203 uint32_t size = 0;
00204 size += ros::serialization::serializationLength(header);
00205 return size;
00206 }
00207
00208 typedef boost::shared_ptr< ::test_rosservice::HeaderEchoResponse_<ContainerAllocator> > Ptr;
00209 typedef boost::shared_ptr< ::test_rosservice::HeaderEchoResponse_<ContainerAllocator> const> ConstPtr;
00210 };
00211 typedef ::test_rosservice::HeaderEchoResponse_<std::allocator<void> > HeaderEchoResponse;
00212
00213 typedef boost::shared_ptr< ::test_rosservice::HeaderEchoResponse> HeaderEchoResponsePtr;
00214 typedef boost::shared_ptr< ::test_rosservice::HeaderEchoResponse const> HeaderEchoResponseConstPtr;
00215
00216 struct HeaderEcho
00217 {
00218
00219 typedef HeaderEchoRequest Request;
00220 typedef HeaderEchoResponse Response;
00221 Request request;
00222 Response response;
00223
00224 typedef Request RequestType;
00225 typedef Response ResponseType;
00226 };
00227 }
00228
00229 namespace ros
00230 {
00231 namespace message_traits
00232 {
00233 template<class ContainerAllocator>
00234 struct MD5Sum< ::test_rosservice::HeaderEchoRequest_<ContainerAllocator> > {
00235 static const char* value()
00236 {
00237 return "d7be0bb39af8fb9129d5a76e6b63a290";
00238 }
00239
00240 static const char* value(const ::test_rosservice::HeaderEchoRequest_<ContainerAllocator> &) { return value(); }
00241 static const uint64_t static_value1 = 0xd7be0bb39af8fb91ULL;
00242 static const uint64_t static_value2 = 0x29d5a76e6b63a290ULL;
00243 };
00244
00245 template<class ContainerAllocator>
00246 struct DataType< ::test_rosservice::HeaderEchoRequest_<ContainerAllocator> > {
00247 static const char* value()
00248 {
00249 return "test_rosservice/HeaderEchoRequest";
00250 }
00251
00252 static const char* value(const ::test_rosservice::HeaderEchoRequest_<ContainerAllocator> &) { return value(); }
00253 };
00254
00255 template<class ContainerAllocator>
00256 struct Definition< ::test_rosservice::HeaderEchoRequest_<ContainerAllocator> > {
00257 static const char* value()
00258 {
00259 return "Header header\n\
00260 \n\
00261 ================================================================================\n\
00262 MSG: std_msgs/Header\n\
00263 # Standard metadata for higher-level stamped data types.\n\
00264 # This is generally used to communicate timestamped data \n\
00265 # in a particular coordinate frame.\n\
00266 # \n\
00267 # sequence ID: consecutively increasing ID \n\
00268 uint32 seq\n\
00269 #Two-integer timestamp that is expressed as:\n\
00270 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00271 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00272 # time-handling sugar is provided by the client library\n\
00273 time stamp\n\
00274 #Frame this data is associated with\n\
00275 # 0: no frame\n\
00276 # 1: global frame\n\
00277 string frame_id\n\
00278 \n\
00279 ";
00280 }
00281
00282 static const char* value(const ::test_rosservice::HeaderEchoRequest_<ContainerAllocator> &) { return value(); }
00283 };
00284
00285 template<class ContainerAllocator> struct HasHeader< ::test_rosservice::HeaderEchoRequest_<ContainerAllocator> > : public TrueType {};
00286 template<class ContainerAllocator> struct HasHeader< const ::test_rosservice::HeaderEchoRequest_<ContainerAllocator> > : public TrueType {};
00287 }
00288 }
00289
00290
00291 namespace ros
00292 {
00293 namespace message_traits
00294 {
00295 template<class ContainerAllocator>
00296 struct MD5Sum< ::test_rosservice::HeaderEchoResponse_<ContainerAllocator> > {
00297 static const char* value()
00298 {
00299 return "d7be0bb39af8fb9129d5a76e6b63a290";
00300 }
00301
00302 static const char* value(const ::test_rosservice::HeaderEchoResponse_<ContainerAllocator> &) { return value(); }
00303 static const uint64_t static_value1 = 0xd7be0bb39af8fb91ULL;
00304 static const uint64_t static_value2 = 0x29d5a76e6b63a290ULL;
00305 };
00306
00307 template<class ContainerAllocator>
00308 struct DataType< ::test_rosservice::HeaderEchoResponse_<ContainerAllocator> > {
00309 static const char* value()
00310 {
00311 return "test_rosservice/HeaderEchoResponse";
00312 }
00313
00314 static const char* value(const ::test_rosservice::HeaderEchoResponse_<ContainerAllocator> &) { return value(); }
00315 };
00316
00317 template<class ContainerAllocator>
00318 struct Definition< ::test_rosservice::HeaderEchoResponse_<ContainerAllocator> > {
00319 static const char* value()
00320 {
00321 return "Header header\n\
00322 \n\
00323 \n\
00324 ================================================================================\n\
00325 MSG: std_msgs/Header\n\
00326 # Standard metadata for higher-level stamped data types.\n\
00327 # This is generally used to communicate timestamped data \n\
00328 # in a particular coordinate frame.\n\
00329 # \n\
00330 # sequence ID: consecutively increasing ID \n\
00331 uint32 seq\n\
00332 #Two-integer timestamp that is expressed as:\n\
00333 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00334 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00335 # time-handling sugar is provided by the client library\n\
00336 time stamp\n\
00337 #Frame this data is associated with\n\
00338 # 0: no frame\n\
00339 # 1: global frame\n\
00340 string frame_id\n\
00341 \n\
00342 ";
00343 }
00344
00345 static const char* value(const ::test_rosservice::HeaderEchoResponse_<ContainerAllocator> &) { return value(); }
00346 };
00347
00348 template<class ContainerAllocator> struct HasHeader< ::test_rosservice::HeaderEchoResponse_<ContainerAllocator> > : public TrueType {};
00349 template<class ContainerAllocator> struct HasHeader< const ::test_rosservice::HeaderEchoResponse_<ContainerAllocator> > : public TrueType {};
00350 }
00351 }
00352
00353 namespace ros
00354 {
00355 namespace serialization
00356 {
00357
00358 template<class ContainerAllocator> struct Serializer< ::test_rosservice::HeaderEchoRequest_<ContainerAllocator> >
00359 {
00360 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00361 {
00362 stream.next(m.header);
00363 }
00364
00365 ROS_DECLARE_ALLINONE_SERIALIZER;
00366 };
00367 }
00368 }
00369
00370
00371 namespace ros
00372 {
00373 namespace serialization
00374 {
00375
00376 template<class ContainerAllocator> struct Serializer< ::test_rosservice::HeaderEchoResponse_<ContainerAllocator> >
00377 {
00378 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00379 {
00380 stream.next(m.header);
00381 }
00382
00383 ROS_DECLARE_ALLINONE_SERIALIZER;
00384 };
00385 }
00386 }
00387
00388 namespace ros
00389 {
00390 namespace service_traits
00391 {
00392 template<>
00393 struct MD5Sum<test_rosservice::HeaderEcho> {
00394 static const char* value()
00395 {
00396 return "3c64cc5ac7e6cbcec5fa7b5ed330b0a6";
00397 }
00398
00399 static const char* value(const test_rosservice::HeaderEcho&) { return value(); }
00400 };
00401
00402 template<>
00403 struct DataType<test_rosservice::HeaderEcho> {
00404 static const char* value()
00405 {
00406 return "test_rosservice/HeaderEcho";
00407 }
00408
00409 static const char* value(const test_rosservice::HeaderEcho&) { return value(); }
00410 };
00411
00412 template<class ContainerAllocator>
00413 struct MD5Sum<test_rosservice::HeaderEchoRequest_<ContainerAllocator> > {
00414 static const char* value()
00415 {
00416 return "3c64cc5ac7e6cbcec5fa7b5ed330b0a6";
00417 }
00418
00419 static const char* value(const test_rosservice::HeaderEchoRequest_<ContainerAllocator> &) { return value(); }
00420 };
00421
00422 template<class ContainerAllocator>
00423 struct DataType<test_rosservice::HeaderEchoRequest_<ContainerAllocator> > {
00424 static const char* value()
00425 {
00426 return "test_rosservice/HeaderEcho";
00427 }
00428
00429 static const char* value(const test_rosservice::HeaderEchoRequest_<ContainerAllocator> &) { return value(); }
00430 };
00431
00432 template<class ContainerAllocator>
00433 struct MD5Sum<test_rosservice::HeaderEchoResponse_<ContainerAllocator> > {
00434 static const char* value()
00435 {
00436 return "3c64cc5ac7e6cbcec5fa7b5ed330b0a6";
00437 }
00438
00439 static const char* value(const test_rosservice::HeaderEchoResponse_<ContainerAllocator> &) { return value(); }
00440 };
00441
00442 template<class ContainerAllocator>
00443 struct DataType<test_rosservice::HeaderEchoResponse_<ContainerAllocator> > {
00444 static const char* value()
00445 {
00446 return "test_rosservice/HeaderEcho";
00447 }
00448
00449 static const char* value(const test_rosservice::HeaderEchoResponse_<ContainerAllocator> &) { return value(); }
00450 };
00451
00452 }
00453 }
00454
00455 #endif // TEST_ROSSERVICE_SERVICE_HEADERECHO_H
00456