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