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