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