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