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