00001
00002 #ifndef STD_SRVS_SERVICE_EMPTY_H
00003 #define STD_SRVS_SERVICE_EMPTY_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 std_srvs
00019 {
00020 template <class ContainerAllocator>
00021 struct EmptyRequest_ : public ros::Message
00022 {
00023 typedef EmptyRequest_<ContainerAllocator> Type;
00024
00025 EmptyRequest_()
00026 {
00027 }
00028
00029 EmptyRequest_(const ContainerAllocator& _alloc)
00030 {
00031 }
00032
00033
00034 private:
00035 static const char* __s_getDataType_() { return "std_srvs/EmptyRequest"; }
00036 public:
00037 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00038
00039 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00040
00041 private:
00042 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; }
00043 public:
00044 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00045
00046 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00047
00048 private:
00049 static const char* __s_getServerMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00052
00053 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00054
00055 private:
00056 static const char* __s_getMessageDefinition_() { return "\n\
00057 "; }
00058 public:
00059 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00060
00061 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00062
00063 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00064 {
00065 ros::serialization::OStream stream(write_ptr, 1000000000);
00066 return stream.getData();
00067 }
00068
00069 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00070 {
00071 ros::serialization::IStream stream(read_ptr, 1000000000);
00072 return stream.getData();
00073 }
00074
00075 ROS_DEPRECATED virtual uint32_t serializationLength() const
00076 {
00077 uint32_t size = 0;
00078 return size;
00079 }
00080
00081 typedef boost::shared_ptr< ::std_srvs::EmptyRequest_<ContainerAllocator> > Ptr;
00082 typedef boost::shared_ptr< ::std_srvs::EmptyRequest_<ContainerAllocator> const> ConstPtr;
00083 };
00084 typedef ::std_srvs::EmptyRequest_<std::allocator<void> > EmptyRequest;
00085
00086 typedef boost::shared_ptr< ::std_srvs::EmptyRequest> EmptyRequestPtr;
00087 typedef boost::shared_ptr< ::std_srvs::EmptyRequest const> EmptyRequestConstPtr;
00088
00089
00090 template <class ContainerAllocator>
00091 struct EmptyResponse_ : public ros::Message
00092 {
00093 typedef EmptyResponse_<ContainerAllocator> Type;
00094
00095 EmptyResponse_()
00096 {
00097 }
00098
00099 EmptyResponse_(const ContainerAllocator& _alloc)
00100 {
00101 }
00102
00103
00104 private:
00105 static const char* __s_getDataType_() { return "std_srvs/EmptyResponse"; }
00106 public:
00107 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00108
00109 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00110
00111 private:
00112 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; }
00113 public:
00114 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00115
00116 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00117
00118 private:
00119 static const char* __s_getServerMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; }
00120 public:
00121 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00122
00123 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00124
00125 private:
00126 static const char* __s_getMessageDefinition_() { return "\n\
00127 "; }
00128 public:
00129 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00130
00131 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00132
00133 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00134 {
00135 ros::serialization::OStream stream(write_ptr, 1000000000);
00136 return stream.getData();
00137 }
00138
00139 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00140 {
00141 ros::serialization::IStream stream(read_ptr, 1000000000);
00142 return stream.getData();
00143 }
00144
00145 ROS_DEPRECATED virtual uint32_t serializationLength() const
00146 {
00147 uint32_t size = 0;
00148 return size;
00149 }
00150
00151 typedef boost::shared_ptr< ::std_srvs::EmptyResponse_<ContainerAllocator> > Ptr;
00152 typedef boost::shared_ptr< ::std_srvs::EmptyResponse_<ContainerAllocator> const> ConstPtr;
00153 };
00154 typedef ::std_srvs::EmptyResponse_<std::allocator<void> > EmptyResponse;
00155
00156 typedef boost::shared_ptr< ::std_srvs::EmptyResponse> EmptyResponsePtr;
00157 typedef boost::shared_ptr< ::std_srvs::EmptyResponse const> EmptyResponseConstPtr;
00158
00159 struct Empty
00160 {
00161
00162 typedef EmptyRequest Request;
00163 typedef EmptyResponse Response;
00164 Request request;
00165 Response response;
00166
00167 typedef Request RequestType;
00168 typedef Response ResponseType;
00169 };
00170 }
00171
00172 namespace ros
00173 {
00174 namespace message_traits
00175 {
00176 template<class ContainerAllocator>
00177 struct MD5Sum< ::std_srvs::EmptyRequest_<ContainerAllocator> > {
00178 static const char* value()
00179 {
00180 return "d41d8cd98f00b204e9800998ecf8427e";
00181 }
00182
00183 static const char* value(const ::std_srvs::EmptyRequest_<ContainerAllocator> &) { return value(); }
00184 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00185 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00186 };
00187
00188 template<class ContainerAllocator>
00189 struct DataType< ::std_srvs::EmptyRequest_<ContainerAllocator> > {
00190 static const char* value()
00191 {
00192 return "std_srvs/EmptyRequest";
00193 }
00194
00195 static const char* value(const ::std_srvs::EmptyRequest_<ContainerAllocator> &) { return value(); }
00196 };
00197
00198 template<class ContainerAllocator>
00199 struct Definition< ::std_srvs::EmptyRequest_<ContainerAllocator> > {
00200 static const char* value()
00201 {
00202 return "\n\
00203 ";
00204 }
00205
00206 static const char* value(const ::std_srvs::EmptyRequest_<ContainerAllocator> &) { return value(); }
00207 };
00208
00209 template<class ContainerAllocator> struct IsFixedSize< ::std_srvs::EmptyRequest_<ContainerAllocator> > : public TrueType {};
00210 }
00211 }
00212
00213
00214 namespace ros
00215 {
00216 namespace message_traits
00217 {
00218 template<class ContainerAllocator>
00219 struct MD5Sum< ::std_srvs::EmptyResponse_<ContainerAllocator> > {
00220 static const char* value()
00221 {
00222 return "d41d8cd98f00b204e9800998ecf8427e";
00223 }
00224
00225 static const char* value(const ::std_srvs::EmptyResponse_<ContainerAllocator> &) { return value(); }
00226 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00227 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00228 };
00229
00230 template<class ContainerAllocator>
00231 struct DataType< ::std_srvs::EmptyResponse_<ContainerAllocator> > {
00232 static const char* value()
00233 {
00234 return "std_srvs/EmptyResponse";
00235 }
00236
00237 static const char* value(const ::std_srvs::EmptyResponse_<ContainerAllocator> &) { return value(); }
00238 };
00239
00240 template<class ContainerAllocator>
00241 struct Definition< ::std_srvs::EmptyResponse_<ContainerAllocator> > {
00242 static const char* value()
00243 {
00244 return "\n\
00245 ";
00246 }
00247
00248 static const char* value(const ::std_srvs::EmptyResponse_<ContainerAllocator> &) { return value(); }
00249 };
00250
00251 template<class ContainerAllocator> struct IsFixedSize< ::std_srvs::EmptyResponse_<ContainerAllocator> > : public TrueType {};
00252 }
00253 }
00254
00255 namespace ros
00256 {
00257 namespace serialization
00258 {
00259
00260 template<class ContainerAllocator> struct Serializer< ::std_srvs::EmptyRequest_<ContainerAllocator> >
00261 {
00262 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00263 {
00264 }
00265
00266 ROS_DECLARE_ALLINONE_SERIALIZER;
00267 };
00268 }
00269 }
00270
00271
00272 namespace ros
00273 {
00274 namespace serialization
00275 {
00276
00277 template<class ContainerAllocator> struct Serializer< ::std_srvs::EmptyResponse_<ContainerAllocator> >
00278 {
00279 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00280 {
00281 }
00282
00283 ROS_DECLARE_ALLINONE_SERIALIZER;
00284 };
00285 }
00286 }
00287
00288 namespace ros
00289 {
00290 namespace service_traits
00291 {
00292 template<>
00293 struct MD5Sum<std_srvs::Empty> {
00294 static const char* value()
00295 {
00296 return "d41d8cd98f00b204e9800998ecf8427e";
00297 }
00298
00299 static const char* value(const std_srvs::Empty&) { return value(); }
00300 };
00301
00302 template<>
00303 struct DataType<std_srvs::Empty> {
00304 static const char* value()
00305 {
00306 return "std_srvs/Empty";
00307 }
00308
00309 static const char* value(const std_srvs::Empty&) { return value(); }
00310 };
00311
00312 template<class ContainerAllocator>
00313 struct MD5Sum<std_srvs::EmptyRequest_<ContainerAllocator> > {
00314 static const char* value()
00315 {
00316 return "d41d8cd98f00b204e9800998ecf8427e";
00317 }
00318
00319 static const char* value(const std_srvs::EmptyRequest_<ContainerAllocator> &) { return value(); }
00320 };
00321
00322 template<class ContainerAllocator>
00323 struct DataType<std_srvs::EmptyRequest_<ContainerAllocator> > {
00324 static const char* value()
00325 {
00326 return "std_srvs/Empty";
00327 }
00328
00329 static const char* value(const std_srvs::EmptyRequest_<ContainerAllocator> &) { return value(); }
00330 };
00331
00332 template<class ContainerAllocator>
00333 struct MD5Sum<std_srvs::EmptyResponse_<ContainerAllocator> > {
00334 static const char* value()
00335 {
00336 return "d41d8cd98f00b204e9800998ecf8427e";
00337 }
00338
00339 static const char* value(const std_srvs::EmptyResponse_<ContainerAllocator> &) { return value(); }
00340 };
00341
00342 template<class ContainerAllocator>
00343 struct DataType<std_srvs::EmptyResponse_<ContainerAllocator> > {
00344 static const char* value()
00345 {
00346 return "std_srvs/Empty";
00347 }
00348
00349 static const char* value(const std_srvs::EmptyResponse_<ContainerAllocator> &) { return value(); }
00350 };
00351
00352 }
00353 }
00354
00355 #endif // STD_SRVS_SERVICE_EMPTY_H
00356