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