$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-object_manipulation/doc_stacks/2013-03-01_16-13-18.345538/object_manipulation/household_objects_database_msgs/srv/TranslateRecognitionId.srv */ 00002 #ifndef HOUSEHOLD_OBJECTS_DATABASE_MSGS_SERVICE_TRANSLATERECOGNITIONID_H 00003 #define HOUSEHOLD_OBJECTS_DATABASE_MSGS_SERVICE_TRANSLATERECOGNITIONID_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 household_objects_database_msgs 00023 { 00024 template <class ContainerAllocator> 00025 struct TranslateRecognitionIdRequest_ { 00026 typedef TranslateRecognitionIdRequest_<ContainerAllocator> Type; 00027 00028 TranslateRecognitionIdRequest_() 00029 : recognition_id() 00030 { 00031 } 00032 00033 TranslateRecognitionIdRequest_(const ContainerAllocator& _alloc) 00034 : recognition_id(_alloc) 00035 { 00036 } 00037 00038 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _recognition_id_type; 00039 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > recognition_id; 00040 00041 00042 private: 00043 static const char* __s_getDataType_() { return "household_objects_database_msgs/TranslateRecognitionIdRequest"; } 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 "4d95610f63ed69a670a8f8aaa3c6aa36"; } 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 "4c59c4be3a6f662f70d4287dcaff730f"; } 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 recognition_id\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, recognition_id); 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, recognition_id); 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(recognition_id); 00090 return size; 00091 } 00092 00093 typedef boost::shared_ptr< ::household_objects_database_msgs::TranslateRecognitionIdRequest_<ContainerAllocator> > Ptr; 00094 typedef boost::shared_ptr< ::household_objects_database_msgs::TranslateRecognitionIdRequest_<ContainerAllocator> const> ConstPtr; 00095 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00096 }; // struct TranslateRecognitionIdRequest 00097 typedef ::household_objects_database_msgs::TranslateRecognitionIdRequest_<std::allocator<void> > TranslateRecognitionIdRequest; 00098 00099 typedef boost::shared_ptr< ::household_objects_database_msgs::TranslateRecognitionIdRequest> TranslateRecognitionIdRequestPtr; 00100 typedef boost::shared_ptr< ::household_objects_database_msgs::TranslateRecognitionIdRequest const> TranslateRecognitionIdRequestConstPtr; 00101 00102 00103 template <class ContainerAllocator> 00104 struct TranslateRecognitionIdResponse_ { 00105 typedef TranslateRecognitionIdResponse_<ContainerAllocator> Type; 00106 00107 TranslateRecognitionIdResponse_() 00108 : household_objects_id(0) 00109 , ID_NOT_FOUND(0) 00110 , DATABASE_ERROR(0) 00111 , OTHER_ERROR(0) 00112 , result(0) 00113 { 00114 } 00115 00116 TranslateRecognitionIdResponse_(const ContainerAllocator& _alloc) 00117 : household_objects_id(0) 00118 , ID_NOT_FOUND(0) 00119 , DATABASE_ERROR(0) 00120 , OTHER_ERROR(0) 00121 , result(0) 00122 { 00123 } 00124 00125 typedef int32_t _household_objects_id_type; 00126 int32_t household_objects_id; 00127 00128 typedef int32_t _ID_NOT_FOUND_type; 00129 int32_t ID_NOT_FOUND; 00130 00131 typedef int32_t _DATABASE_ERROR_type; 00132 int32_t DATABASE_ERROR; 00133 00134 typedef int32_t _OTHER_ERROR_type; 00135 int32_t OTHER_ERROR; 00136 00137 typedef int32_t _result_type; 00138 int32_t result; 00139 00140 enum { SUCCESS = 0 }; 00141 00142 private: 00143 static const char* __s_getDataType_() { return "household_objects_database_msgs/TranslateRecognitionIdResponse"; } 00144 public: 00145 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00146 00147 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00148 00149 private: 00150 static const char* __s_getMD5Sum_() { return "b4afd505fbee150bf06acaffa82e84cf"; } 00151 public: 00152 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00153 00154 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00155 00156 private: 00157 static const char* __s_getServerMD5Sum_() { return "4c59c4be3a6f662f70d4287dcaff730f"; } 00158 public: 00159 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00160 00161 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00162 00163 private: 00164 static const char* __s_getMessageDefinition_() { return "int32 household_objects_id\n\ 00165 \n\ 00166 int32 SUCCESS=0\n\ 00167 int32 ID_NOT_FOUND\n\ 00168 int32 DATABASE_ERROR\n\ 00169 int32 OTHER_ERROR\n\ 00170 int32 result\n\ 00171 \n\ 00172 \n\ 00173 "; } 00174 public: 00175 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00176 00177 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00178 00179 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00180 { 00181 ros::serialization::OStream stream(write_ptr, 1000000000); 00182 ros::serialization::serialize(stream, household_objects_id); 00183 ros::serialization::serialize(stream, ID_NOT_FOUND); 00184 ros::serialization::serialize(stream, DATABASE_ERROR); 00185 ros::serialization::serialize(stream, OTHER_ERROR); 00186 ros::serialization::serialize(stream, result); 00187 return stream.getData(); 00188 } 00189 00190 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00191 { 00192 ros::serialization::IStream stream(read_ptr, 1000000000); 00193 ros::serialization::deserialize(stream, household_objects_id); 00194 ros::serialization::deserialize(stream, ID_NOT_FOUND); 00195 ros::serialization::deserialize(stream, DATABASE_ERROR); 00196 ros::serialization::deserialize(stream, OTHER_ERROR); 00197 ros::serialization::deserialize(stream, result); 00198 return stream.getData(); 00199 } 00200 00201 ROS_DEPRECATED virtual uint32_t serializationLength() const 00202 { 00203 uint32_t size = 0; 00204 size += ros::serialization::serializationLength(household_objects_id); 00205 size += ros::serialization::serializationLength(ID_NOT_FOUND); 00206 size += ros::serialization::serializationLength(DATABASE_ERROR); 00207 size += ros::serialization::serializationLength(OTHER_ERROR); 00208 size += ros::serialization::serializationLength(result); 00209 return size; 00210 } 00211 00212 typedef boost::shared_ptr< ::household_objects_database_msgs::TranslateRecognitionIdResponse_<ContainerAllocator> > Ptr; 00213 typedef boost::shared_ptr< ::household_objects_database_msgs::TranslateRecognitionIdResponse_<ContainerAllocator> const> ConstPtr; 00214 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00215 }; // struct TranslateRecognitionIdResponse 00216 typedef ::household_objects_database_msgs::TranslateRecognitionIdResponse_<std::allocator<void> > TranslateRecognitionIdResponse; 00217 00218 typedef boost::shared_ptr< ::household_objects_database_msgs::TranslateRecognitionIdResponse> TranslateRecognitionIdResponsePtr; 00219 typedef boost::shared_ptr< ::household_objects_database_msgs::TranslateRecognitionIdResponse const> TranslateRecognitionIdResponseConstPtr; 00220 00221 struct TranslateRecognitionId 00222 { 00223 00224 typedef TranslateRecognitionIdRequest Request; 00225 typedef TranslateRecognitionIdResponse Response; 00226 Request request; 00227 Response response; 00228 00229 typedef Request RequestType; 00230 typedef Response ResponseType; 00231 }; // struct TranslateRecognitionId 00232 } // namespace household_objects_database_msgs 00233 00234 namespace ros 00235 { 00236 namespace message_traits 00237 { 00238 template<class ContainerAllocator> struct IsMessage< ::household_objects_database_msgs::TranslateRecognitionIdRequest_<ContainerAllocator> > : public TrueType {}; 00239 template<class ContainerAllocator> struct IsMessage< ::household_objects_database_msgs::TranslateRecognitionIdRequest_<ContainerAllocator> const> : public TrueType {}; 00240 template<class ContainerAllocator> 00241 struct MD5Sum< ::household_objects_database_msgs::TranslateRecognitionIdRequest_<ContainerAllocator> > { 00242 static const char* value() 00243 { 00244 return "4d95610f63ed69a670a8f8aaa3c6aa36"; 00245 } 00246 00247 static const char* value(const ::household_objects_database_msgs::TranslateRecognitionIdRequest_<ContainerAllocator> &) { return value(); } 00248 static const uint64_t static_value1 = 0x4d95610f63ed69a6ULL; 00249 static const uint64_t static_value2 = 0x70a8f8aaa3c6aa36ULL; 00250 }; 00251 00252 template<class ContainerAllocator> 00253 struct DataType< ::household_objects_database_msgs::TranslateRecognitionIdRequest_<ContainerAllocator> > { 00254 static const char* value() 00255 { 00256 return "household_objects_database_msgs/TranslateRecognitionIdRequest"; 00257 } 00258 00259 static const char* value(const ::household_objects_database_msgs::TranslateRecognitionIdRequest_<ContainerAllocator> &) { return value(); } 00260 }; 00261 00262 template<class ContainerAllocator> 00263 struct Definition< ::household_objects_database_msgs::TranslateRecognitionIdRequest_<ContainerAllocator> > { 00264 static const char* value() 00265 { 00266 return "string recognition_id\n\ 00267 \n\ 00268 "; 00269 } 00270 00271 static const char* value(const ::household_objects_database_msgs::TranslateRecognitionIdRequest_<ContainerAllocator> &) { return value(); } 00272 }; 00273 00274 } // namespace message_traits 00275 } // namespace ros 00276 00277 00278 namespace ros 00279 { 00280 namespace message_traits 00281 { 00282 template<class ContainerAllocator> struct IsMessage< ::household_objects_database_msgs::TranslateRecognitionIdResponse_<ContainerAllocator> > : public TrueType {}; 00283 template<class ContainerAllocator> struct IsMessage< ::household_objects_database_msgs::TranslateRecognitionIdResponse_<ContainerAllocator> const> : public TrueType {}; 00284 template<class ContainerAllocator> 00285 struct MD5Sum< ::household_objects_database_msgs::TranslateRecognitionIdResponse_<ContainerAllocator> > { 00286 static const char* value() 00287 { 00288 return "b4afd505fbee150bf06acaffa82e84cf"; 00289 } 00290 00291 static const char* value(const ::household_objects_database_msgs::TranslateRecognitionIdResponse_<ContainerAllocator> &) { return value(); } 00292 static const uint64_t static_value1 = 0xb4afd505fbee150bULL; 00293 static const uint64_t static_value2 = 0xf06acaffa82e84cfULL; 00294 }; 00295 00296 template<class ContainerAllocator> 00297 struct DataType< ::household_objects_database_msgs::TranslateRecognitionIdResponse_<ContainerAllocator> > { 00298 static const char* value() 00299 { 00300 return "household_objects_database_msgs/TranslateRecognitionIdResponse"; 00301 } 00302 00303 static const char* value(const ::household_objects_database_msgs::TranslateRecognitionIdResponse_<ContainerAllocator> &) { return value(); } 00304 }; 00305 00306 template<class ContainerAllocator> 00307 struct Definition< ::household_objects_database_msgs::TranslateRecognitionIdResponse_<ContainerAllocator> > { 00308 static const char* value() 00309 { 00310 return "int32 household_objects_id\n\ 00311 \n\ 00312 int32 SUCCESS=0\n\ 00313 int32 ID_NOT_FOUND\n\ 00314 int32 DATABASE_ERROR\n\ 00315 int32 OTHER_ERROR\n\ 00316 int32 result\n\ 00317 \n\ 00318 \n\ 00319 "; 00320 } 00321 00322 static const char* value(const ::household_objects_database_msgs::TranslateRecognitionIdResponse_<ContainerAllocator> &) { return value(); } 00323 }; 00324 00325 template<class ContainerAllocator> struct IsFixedSize< ::household_objects_database_msgs::TranslateRecognitionIdResponse_<ContainerAllocator> > : public TrueType {}; 00326 } // namespace message_traits 00327 } // namespace ros 00328 00329 namespace ros 00330 { 00331 namespace serialization 00332 { 00333 00334 template<class ContainerAllocator> struct Serializer< ::household_objects_database_msgs::TranslateRecognitionIdRequest_<ContainerAllocator> > 00335 { 00336 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00337 { 00338 stream.next(m.recognition_id); 00339 } 00340 00341 ROS_DECLARE_ALLINONE_SERIALIZER; 00342 }; // struct TranslateRecognitionIdRequest_ 00343 } // namespace serialization 00344 } // namespace ros 00345 00346 00347 namespace ros 00348 { 00349 namespace serialization 00350 { 00351 00352 template<class ContainerAllocator> struct Serializer< ::household_objects_database_msgs::TranslateRecognitionIdResponse_<ContainerAllocator> > 00353 { 00354 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00355 { 00356 stream.next(m.household_objects_id); 00357 stream.next(m.ID_NOT_FOUND); 00358 stream.next(m.DATABASE_ERROR); 00359 stream.next(m.OTHER_ERROR); 00360 stream.next(m.result); 00361 } 00362 00363 ROS_DECLARE_ALLINONE_SERIALIZER; 00364 }; // struct TranslateRecognitionIdResponse_ 00365 } // namespace serialization 00366 } // namespace ros 00367 00368 namespace ros 00369 { 00370 namespace service_traits 00371 { 00372 template<> 00373 struct MD5Sum<household_objects_database_msgs::TranslateRecognitionId> { 00374 static const char* value() 00375 { 00376 return "4c59c4be3a6f662f70d4287dcaff730f"; 00377 } 00378 00379 static const char* value(const household_objects_database_msgs::TranslateRecognitionId&) { return value(); } 00380 }; 00381 00382 template<> 00383 struct DataType<household_objects_database_msgs::TranslateRecognitionId> { 00384 static const char* value() 00385 { 00386 return "household_objects_database_msgs/TranslateRecognitionId"; 00387 } 00388 00389 static const char* value(const household_objects_database_msgs::TranslateRecognitionId&) { return value(); } 00390 }; 00391 00392 template<class ContainerAllocator> 00393 struct MD5Sum<household_objects_database_msgs::TranslateRecognitionIdRequest_<ContainerAllocator> > { 00394 static const char* value() 00395 { 00396 return "4c59c4be3a6f662f70d4287dcaff730f"; 00397 } 00398 00399 static const char* value(const household_objects_database_msgs::TranslateRecognitionIdRequest_<ContainerAllocator> &) { return value(); } 00400 }; 00401 00402 template<class ContainerAllocator> 00403 struct DataType<household_objects_database_msgs::TranslateRecognitionIdRequest_<ContainerAllocator> > { 00404 static const char* value() 00405 { 00406 return "household_objects_database_msgs/TranslateRecognitionId"; 00407 } 00408 00409 static const char* value(const household_objects_database_msgs::TranslateRecognitionIdRequest_<ContainerAllocator> &) { return value(); } 00410 }; 00411 00412 template<class ContainerAllocator> 00413 struct MD5Sum<household_objects_database_msgs::TranslateRecognitionIdResponse_<ContainerAllocator> > { 00414 static const char* value() 00415 { 00416 return "4c59c4be3a6f662f70d4287dcaff730f"; 00417 } 00418 00419 static const char* value(const household_objects_database_msgs::TranslateRecognitionIdResponse_<ContainerAllocator> &) { return value(); } 00420 }; 00421 00422 template<class ContainerAllocator> 00423 struct DataType<household_objects_database_msgs::TranslateRecognitionIdResponse_<ContainerAllocator> > { 00424 static const char* value() 00425 { 00426 return "household_objects_database_msgs/TranslateRecognitionId"; 00427 } 00428 00429 static const char* value(const household_objects_database_msgs::TranslateRecognitionIdResponse_<ContainerAllocator> &) { return value(); } 00430 }; 00431 00432 } // namespace service_traits 00433 } // namespace ros 00434 00435 #endif // HOUSEHOLD_OBJECTS_DATABASE_MSGS_SERVICE_TRANSLATERECOGNITIONID_H 00436