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