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