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