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