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