$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/GetModelList.srv */ 00002 #ifndef HOUSEHOLD_OBJECTS_DATABASE_MSGS_SERVICE_GETMODELLIST_H 00003 #define HOUSEHOLD_OBJECTS_DATABASE_MSGS_SERVICE_GETMODELLIST_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 #include "household_objects_database_msgs/DatabaseReturnCode.h" 00022 00023 namespace household_objects_database_msgs 00024 { 00025 template <class ContainerAllocator> 00026 struct GetModelListRequest_ { 00027 typedef GetModelListRequest_<ContainerAllocator> Type; 00028 00029 GetModelListRequest_() 00030 : model_set() 00031 { 00032 } 00033 00034 GetModelListRequest_(const ContainerAllocator& _alloc) 00035 : model_set(_alloc) 00036 { 00037 } 00038 00039 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _model_set_type; 00040 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > model_set; 00041 00042 00043 private: 00044 static const char* __s_getDataType_() { return "household_objects_database_msgs/GetModelListRequest"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "6bdf0a866151f41b8876e73800929933"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getServerMD5Sum_() { return "5f1f68d0a220da15352f6f1cb9a37fea"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00061 00062 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00063 00064 private: 00065 static const char* __s_getMessageDefinition_() { return "\n\ 00066 \n\ 00067 \n\ 00068 \n\ 00069 \n\ 00070 string model_set\n\ 00071 \n\ 00072 \n\ 00073 "; } 00074 public: 00075 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00076 00077 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00078 00079 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00080 { 00081 ros::serialization::OStream stream(write_ptr, 1000000000); 00082 ros::serialization::serialize(stream, model_set); 00083 return stream.getData(); 00084 } 00085 00086 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00087 { 00088 ros::serialization::IStream stream(read_ptr, 1000000000); 00089 ros::serialization::deserialize(stream, model_set); 00090 return stream.getData(); 00091 } 00092 00093 ROS_DEPRECATED virtual uint32_t serializationLength() const 00094 { 00095 uint32_t size = 0; 00096 size += ros::serialization::serializationLength(model_set); 00097 return size; 00098 } 00099 00100 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> > Ptr; 00101 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> const> ConstPtr; 00102 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00103 }; // struct GetModelListRequest 00104 typedef ::household_objects_database_msgs::GetModelListRequest_<std::allocator<void> > GetModelListRequest; 00105 00106 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelListRequest> GetModelListRequestPtr; 00107 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelListRequest const> GetModelListRequestConstPtr; 00108 00109 00110 template <class ContainerAllocator> 00111 struct GetModelListResponse_ { 00112 typedef GetModelListResponse_<ContainerAllocator> Type; 00113 00114 GetModelListResponse_() 00115 : return_code() 00116 , model_ids() 00117 { 00118 } 00119 00120 GetModelListResponse_(const ContainerAllocator& _alloc) 00121 : return_code(_alloc) 00122 , model_ids(_alloc) 00123 { 00124 } 00125 00126 typedef ::household_objects_database_msgs::DatabaseReturnCode_<ContainerAllocator> _return_code_type; 00127 ::household_objects_database_msgs::DatabaseReturnCode_<ContainerAllocator> return_code; 00128 00129 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _model_ids_type; 00130 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > model_ids; 00131 00132 00133 ROS_DEPRECATED uint32_t get_model_ids_size() const { return (uint32_t)model_ids.size(); } 00134 ROS_DEPRECATED void set_model_ids_size(uint32_t size) { model_ids.resize((size_t)size); } 00135 ROS_DEPRECATED void get_model_ids_vec(std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) const { vec = this->model_ids; } 00136 ROS_DEPRECATED void set_model_ids_vec(const std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) { this->model_ids = vec; } 00137 private: 00138 static const char* __s_getDataType_() { return "household_objects_database_msgs/GetModelListResponse"; } 00139 public: 00140 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00141 00142 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00143 00144 private: 00145 static const char* __s_getMD5Sum_() { return "81fac8c5d631e612bd9183a923572d53"; } 00146 public: 00147 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00148 00149 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00150 00151 private: 00152 static const char* __s_getServerMD5Sum_() { return "5f1f68d0a220da15352f6f1cb9a37fea"; } 00153 public: 00154 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00155 00156 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00157 00158 private: 00159 static const char* __s_getMessageDefinition_() { return "\n\ 00160 \n\ 00161 DatabaseReturnCode return_code\n\ 00162 \n\ 00163 \n\ 00164 int32[] model_ids\n\ 00165 \n\ 00166 ================================================================================\n\ 00167 MSG: household_objects_database_msgs/DatabaseReturnCode\n\ 00168 # return codes for database-related services\n\ 00169 \n\ 00170 int32 UNKNOWN_ERROR = 1\n\ 00171 int32 DATABASE_NOT_CONNECTED = 2\n\ 00172 int32 DATABASE_QUERY_ERROR = 3\n\ 00173 int32 SUCCESS = -1\n\ 00174 \n\ 00175 int32 code\n\ 00176 "; } 00177 public: 00178 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00179 00180 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00181 00182 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00183 { 00184 ros::serialization::OStream stream(write_ptr, 1000000000); 00185 ros::serialization::serialize(stream, return_code); 00186 ros::serialization::serialize(stream, model_ids); 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, return_code); 00194 ros::serialization::deserialize(stream, model_ids); 00195 return stream.getData(); 00196 } 00197 00198 ROS_DEPRECATED virtual uint32_t serializationLength() const 00199 { 00200 uint32_t size = 0; 00201 size += ros::serialization::serializationLength(return_code); 00202 size += ros::serialization::serializationLength(model_ids); 00203 return size; 00204 } 00205 00206 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> > Ptr; 00207 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> const> ConstPtr; 00208 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00209 }; // struct GetModelListResponse 00210 typedef ::household_objects_database_msgs::GetModelListResponse_<std::allocator<void> > GetModelListResponse; 00211 00212 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelListResponse> GetModelListResponsePtr; 00213 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelListResponse const> GetModelListResponseConstPtr; 00214 00215 struct GetModelList 00216 { 00217 00218 typedef GetModelListRequest Request; 00219 typedef GetModelListResponse Response; 00220 Request request; 00221 Response response; 00222 00223 typedef Request RequestType; 00224 typedef Response ResponseType; 00225 }; // struct GetModelList 00226 } // namespace household_objects_database_msgs 00227 00228 namespace ros 00229 { 00230 namespace message_traits 00231 { 00232 template<class ContainerAllocator> struct IsMessage< ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> > : public TrueType {}; 00233 template<class ContainerAllocator> struct IsMessage< ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> const> : public TrueType {}; 00234 template<class ContainerAllocator> 00235 struct MD5Sum< ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> > { 00236 static const char* value() 00237 { 00238 return "6bdf0a866151f41b8876e73800929933"; 00239 } 00240 00241 static const char* value(const ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> &) { return value(); } 00242 static const uint64_t static_value1 = 0x6bdf0a866151f41bULL; 00243 static const uint64_t static_value2 = 0x8876e73800929933ULL; 00244 }; 00245 00246 template<class ContainerAllocator> 00247 struct DataType< ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> > { 00248 static const char* value() 00249 { 00250 return "household_objects_database_msgs/GetModelListRequest"; 00251 } 00252 00253 static const char* value(const ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> &) { return value(); } 00254 }; 00255 00256 template<class ContainerAllocator> 00257 struct Definition< ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> > { 00258 static const char* value() 00259 { 00260 return "\n\ 00261 \n\ 00262 \n\ 00263 \n\ 00264 \n\ 00265 string model_set\n\ 00266 \n\ 00267 \n\ 00268 "; 00269 } 00270 00271 static const char* value(const ::household_objects_database_msgs::GetModelListRequest_<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::GetModelListResponse_<ContainerAllocator> > : public TrueType {}; 00283 template<class ContainerAllocator> struct IsMessage< ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> const> : public TrueType {}; 00284 template<class ContainerAllocator> 00285 struct MD5Sum< ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> > { 00286 static const char* value() 00287 { 00288 return "81fac8c5d631e612bd9183a923572d53"; 00289 } 00290 00291 static const char* value(const ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> &) { return value(); } 00292 static const uint64_t static_value1 = 0x81fac8c5d631e612ULL; 00293 static const uint64_t static_value2 = 0xbd9183a923572d53ULL; 00294 }; 00295 00296 template<class ContainerAllocator> 00297 struct DataType< ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> > { 00298 static const char* value() 00299 { 00300 return "household_objects_database_msgs/GetModelListResponse"; 00301 } 00302 00303 static const char* value(const ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> &) { return value(); } 00304 }; 00305 00306 template<class ContainerAllocator> 00307 struct Definition< ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> > { 00308 static const char* value() 00309 { 00310 return "\n\ 00311 \n\ 00312 DatabaseReturnCode return_code\n\ 00313 \n\ 00314 \n\ 00315 int32[] model_ids\n\ 00316 \n\ 00317 ================================================================================\n\ 00318 MSG: household_objects_database_msgs/DatabaseReturnCode\n\ 00319 # return codes for database-related services\n\ 00320 \n\ 00321 int32 UNKNOWN_ERROR = 1\n\ 00322 int32 DATABASE_NOT_CONNECTED = 2\n\ 00323 int32 DATABASE_QUERY_ERROR = 3\n\ 00324 int32 SUCCESS = -1\n\ 00325 \n\ 00326 int32 code\n\ 00327 "; 00328 } 00329 00330 static const char* value(const ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> &) { return value(); } 00331 }; 00332 00333 } // namespace message_traits 00334 } // namespace ros 00335 00336 namespace ros 00337 { 00338 namespace serialization 00339 { 00340 00341 template<class ContainerAllocator> struct Serializer< ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> > 00342 { 00343 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00344 { 00345 stream.next(m.model_set); 00346 } 00347 00348 ROS_DECLARE_ALLINONE_SERIALIZER; 00349 }; // struct GetModelListRequest_ 00350 } // namespace serialization 00351 } // namespace ros 00352 00353 00354 namespace ros 00355 { 00356 namespace serialization 00357 { 00358 00359 template<class ContainerAllocator> struct Serializer< ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> > 00360 { 00361 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00362 { 00363 stream.next(m.return_code); 00364 stream.next(m.model_ids); 00365 } 00366 00367 ROS_DECLARE_ALLINONE_SERIALIZER; 00368 }; // struct GetModelListResponse_ 00369 } // namespace serialization 00370 } // namespace ros 00371 00372 namespace ros 00373 { 00374 namespace service_traits 00375 { 00376 template<> 00377 struct MD5Sum<household_objects_database_msgs::GetModelList> { 00378 static const char* value() 00379 { 00380 return "5f1f68d0a220da15352f6f1cb9a37fea"; 00381 } 00382 00383 static const char* value(const household_objects_database_msgs::GetModelList&) { return value(); } 00384 }; 00385 00386 template<> 00387 struct DataType<household_objects_database_msgs::GetModelList> { 00388 static const char* value() 00389 { 00390 return "household_objects_database_msgs/GetModelList"; 00391 } 00392 00393 static const char* value(const household_objects_database_msgs::GetModelList&) { return value(); } 00394 }; 00395 00396 template<class ContainerAllocator> 00397 struct MD5Sum<household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> > { 00398 static const char* value() 00399 { 00400 return "5f1f68d0a220da15352f6f1cb9a37fea"; 00401 } 00402 00403 static const char* value(const household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> &) { return value(); } 00404 }; 00405 00406 template<class ContainerAllocator> 00407 struct DataType<household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> > { 00408 static const char* value() 00409 { 00410 return "household_objects_database_msgs/GetModelList"; 00411 } 00412 00413 static const char* value(const household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> &) { return value(); } 00414 }; 00415 00416 template<class ContainerAllocator> 00417 struct MD5Sum<household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> > { 00418 static const char* value() 00419 { 00420 return "5f1f68d0a220da15352f6f1cb9a37fea"; 00421 } 00422 00423 static const char* value(const household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> &) { return value(); } 00424 }; 00425 00426 template<class ContainerAllocator> 00427 struct DataType<household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> > { 00428 static const char* value() 00429 { 00430 return "household_objects_database_msgs/GetModelList"; 00431 } 00432 00433 static const char* value(const household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> &) { return value(); } 00434 }; 00435 00436 } // namespace service_traits 00437 } // namespace ros 00438 00439 #endif // HOUSEHOLD_OBJECTS_DATABASE_MSGS_SERVICE_GETMODELLIST_H 00440