00001
00002 #ifndef HOUSEHOLD_OBJECTS_DATABASE_MSGS_SERVICE_GETMODELDESCRIPTION_H
00003 #define HOUSEHOLD_OBJECTS_DATABASE_MSGS_SERVICE_GETMODELDESCRIPTION_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 GetModelDescriptionRequest_ : public ros::Message
00023 {
00024 typedef GetModelDescriptionRequest_<ContainerAllocator> Type;
00025
00026 GetModelDescriptionRequest_()
00027 : model_id(0)
00028 {
00029 }
00030
00031 GetModelDescriptionRequest_(const ContainerAllocator& _alloc)
00032 : model_id(0)
00033 {
00034 }
00035
00036 typedef int32_t _model_id_type;
00037 int32_t model_id;
00038
00039
00040 private:
00041 static const char* __s_getDataType_() { return "household_objects_database_msgs/GetModelDescriptionRequest"; }
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 "28cb0598daf3b969068a38cd07aaa9f6"; }
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 "1fee77e674730723af04cd39a4e3e0b1"; }
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 int32 model_id\n\
00066 \n\
00067 \n\
00068 "; }
00069 public:
00070 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00071
00072 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00073
00074 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00075 {
00076 ros::serialization::OStream stream(write_ptr, 1000000000);
00077 ros::serialization::serialize(stream, model_id);
00078 return stream.getData();
00079 }
00080
00081 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00082 {
00083 ros::serialization::IStream stream(read_ptr, 1000000000);
00084 ros::serialization::deserialize(stream, model_id);
00085 return stream.getData();
00086 }
00087
00088 ROS_DEPRECATED virtual uint32_t serializationLength() const
00089 {
00090 uint32_t size = 0;
00091 size += ros::serialization::serializationLength(model_id);
00092 return size;
00093 }
00094
00095 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelDescriptionRequest_<ContainerAllocator> > Ptr;
00096 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelDescriptionRequest_<ContainerAllocator> const> ConstPtr;
00097 };
00098 typedef ::household_objects_database_msgs::GetModelDescriptionRequest_<std::allocator<void> > GetModelDescriptionRequest;
00099
00100 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelDescriptionRequest> GetModelDescriptionRequestPtr;
00101 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelDescriptionRequest const> GetModelDescriptionRequestConstPtr;
00102
00103
00104 template <class ContainerAllocator>
00105 struct GetModelDescriptionResponse_ : public ros::Message
00106 {
00107 typedef GetModelDescriptionResponse_<ContainerAllocator> Type;
00108
00109 GetModelDescriptionResponse_()
00110 : return_code()
00111 , tags()
00112 , name()
00113 , maker()
00114 {
00115 }
00116
00117 GetModelDescriptionResponse_(const ContainerAllocator& _alloc)
00118 : return_code(_alloc)
00119 , tags(_alloc)
00120 , name(_alloc)
00121 , maker(_alloc)
00122 {
00123 }
00124
00125 typedef ::household_objects_database_msgs::DatabaseReturnCode_<ContainerAllocator> _return_code_type;
00126 ::household_objects_database_msgs::DatabaseReturnCode_<ContainerAllocator> return_code;
00127
00128 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _tags_type;
00129 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > tags;
00130
00131 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
00132 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name;
00133
00134 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _maker_type;
00135 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > maker;
00136
00137
00138 ROS_DEPRECATED uint32_t get_tags_size() const { return (uint32_t)tags.size(); }
00139 ROS_DEPRECATED void set_tags_size(uint32_t size) { tags.resize((size_t)size); }
00140 ROS_DEPRECATED void get_tags_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->tags; }
00141 ROS_DEPRECATED void set_tags_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->tags = vec; }
00142 private:
00143 static const char* __s_getDataType_() { return "household_objects_database_msgs/GetModelDescriptionResponse"; }
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 "e6c55e34b143695104d37ad9b33c72c0"; }
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 "1fee77e674730723af04cd39a4e3e0b1"; }
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 "\n\
00165 \n\
00166 DatabaseReturnCode return_code\n\
00167 \n\
00168 \n\
00169 string[] tags\n\
00170 \n\
00171 \n\
00172 string name\n\
00173 \n\
00174 \n\
00175 string maker\n\
00176 \n\
00177 \n\
00178 \n\
00179 ================================================================================\n\
00180 MSG: household_objects_database_msgs/DatabaseReturnCode\n\
00181 # return codes for database-related services\n\
00182 \n\
00183 int32 UNKNOWN_ERROR = 1\n\
00184 int32 DATABASE_NOT_CONNECTED = 2\n\
00185 int32 DATABASE_QUERY_ERROR = 3\n\
00186 int32 SUCCESS = -1\n\
00187 \n\
00188 int32 code\n\
00189 "; }
00190 public:
00191 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00192
00193 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00194
00195 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00196 {
00197 ros::serialization::OStream stream(write_ptr, 1000000000);
00198 ros::serialization::serialize(stream, return_code);
00199 ros::serialization::serialize(stream, tags);
00200 ros::serialization::serialize(stream, name);
00201 ros::serialization::serialize(stream, maker);
00202 return stream.getData();
00203 }
00204
00205 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00206 {
00207 ros::serialization::IStream stream(read_ptr, 1000000000);
00208 ros::serialization::deserialize(stream, return_code);
00209 ros::serialization::deserialize(stream, tags);
00210 ros::serialization::deserialize(stream, name);
00211 ros::serialization::deserialize(stream, maker);
00212 return stream.getData();
00213 }
00214
00215 ROS_DEPRECATED virtual uint32_t serializationLength() const
00216 {
00217 uint32_t size = 0;
00218 size += ros::serialization::serializationLength(return_code);
00219 size += ros::serialization::serializationLength(tags);
00220 size += ros::serialization::serializationLength(name);
00221 size += ros::serialization::serializationLength(maker);
00222 return size;
00223 }
00224
00225 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelDescriptionResponse_<ContainerAllocator> > Ptr;
00226 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelDescriptionResponse_<ContainerAllocator> const> ConstPtr;
00227 };
00228 typedef ::household_objects_database_msgs::GetModelDescriptionResponse_<std::allocator<void> > GetModelDescriptionResponse;
00229
00230 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelDescriptionResponse> GetModelDescriptionResponsePtr;
00231 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelDescriptionResponse const> GetModelDescriptionResponseConstPtr;
00232
00233 struct GetModelDescription
00234 {
00235
00236 typedef GetModelDescriptionRequest Request;
00237 typedef GetModelDescriptionResponse Response;
00238 Request request;
00239 Response response;
00240
00241 typedef Request RequestType;
00242 typedef Response ResponseType;
00243 };
00244 }
00245
00246 namespace ros
00247 {
00248 namespace message_traits
00249 {
00250 template<class ContainerAllocator>
00251 struct MD5Sum< ::household_objects_database_msgs::GetModelDescriptionRequest_<ContainerAllocator> > {
00252 static const char* value()
00253 {
00254 return "28cb0598daf3b969068a38cd07aaa9f6";
00255 }
00256
00257 static const char* value(const ::household_objects_database_msgs::GetModelDescriptionRequest_<ContainerAllocator> &) { return value(); }
00258 static const uint64_t static_value1 = 0x28cb0598daf3b969ULL;
00259 static const uint64_t static_value2 = 0x068a38cd07aaa9f6ULL;
00260 };
00261
00262 template<class ContainerAllocator>
00263 struct DataType< ::household_objects_database_msgs::GetModelDescriptionRequest_<ContainerAllocator> > {
00264 static const char* value()
00265 {
00266 return "household_objects_database_msgs/GetModelDescriptionRequest";
00267 }
00268
00269 static const char* value(const ::household_objects_database_msgs::GetModelDescriptionRequest_<ContainerAllocator> &) { return value(); }
00270 };
00271
00272 template<class ContainerAllocator>
00273 struct Definition< ::household_objects_database_msgs::GetModelDescriptionRequest_<ContainerAllocator> > {
00274 static const char* value()
00275 {
00276 return "\n\
00277 \n\
00278 \n\
00279 int32 model_id\n\
00280 \n\
00281 \n\
00282 ";
00283 }
00284
00285 static const char* value(const ::household_objects_database_msgs::GetModelDescriptionRequest_<ContainerAllocator> &) { return value(); }
00286 };
00287
00288 template<class ContainerAllocator> struct IsFixedSize< ::household_objects_database_msgs::GetModelDescriptionRequest_<ContainerAllocator> > : public TrueType {};
00289 }
00290 }
00291
00292
00293 namespace ros
00294 {
00295 namespace message_traits
00296 {
00297 template<class ContainerAllocator>
00298 struct MD5Sum< ::household_objects_database_msgs::GetModelDescriptionResponse_<ContainerAllocator> > {
00299 static const char* value()
00300 {
00301 return "e6c55e34b143695104d37ad9b33c72c0";
00302 }
00303
00304 static const char* value(const ::household_objects_database_msgs::GetModelDescriptionResponse_<ContainerAllocator> &) { return value(); }
00305 static const uint64_t static_value1 = 0xe6c55e34b1436951ULL;
00306 static const uint64_t static_value2 = 0x04d37ad9b33c72c0ULL;
00307 };
00308
00309 template<class ContainerAllocator>
00310 struct DataType< ::household_objects_database_msgs::GetModelDescriptionResponse_<ContainerAllocator> > {
00311 static const char* value()
00312 {
00313 return "household_objects_database_msgs/GetModelDescriptionResponse";
00314 }
00315
00316 static const char* value(const ::household_objects_database_msgs::GetModelDescriptionResponse_<ContainerAllocator> &) { return value(); }
00317 };
00318
00319 template<class ContainerAllocator>
00320 struct Definition< ::household_objects_database_msgs::GetModelDescriptionResponse_<ContainerAllocator> > {
00321 static const char* value()
00322 {
00323 return "\n\
00324 \n\
00325 DatabaseReturnCode return_code\n\
00326 \n\
00327 \n\
00328 string[] tags\n\
00329 \n\
00330 \n\
00331 string name\n\
00332 \n\
00333 \n\
00334 string maker\n\
00335 \n\
00336 \n\
00337 \n\
00338 ================================================================================\n\
00339 MSG: household_objects_database_msgs/DatabaseReturnCode\n\
00340 # return codes for database-related services\n\
00341 \n\
00342 int32 UNKNOWN_ERROR = 1\n\
00343 int32 DATABASE_NOT_CONNECTED = 2\n\
00344 int32 DATABASE_QUERY_ERROR = 3\n\
00345 int32 SUCCESS = -1\n\
00346 \n\
00347 int32 code\n\
00348 ";
00349 }
00350
00351 static const char* value(const ::household_objects_database_msgs::GetModelDescriptionResponse_<ContainerAllocator> &) { return value(); }
00352 };
00353
00354 }
00355 }
00356
00357 namespace ros
00358 {
00359 namespace serialization
00360 {
00361
00362 template<class ContainerAllocator> struct Serializer< ::household_objects_database_msgs::GetModelDescriptionRequest_<ContainerAllocator> >
00363 {
00364 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00365 {
00366 stream.next(m.model_id);
00367 }
00368
00369 ROS_DECLARE_ALLINONE_SERIALIZER;
00370 };
00371 }
00372 }
00373
00374
00375 namespace ros
00376 {
00377 namespace serialization
00378 {
00379
00380 template<class ContainerAllocator> struct Serializer< ::household_objects_database_msgs::GetModelDescriptionResponse_<ContainerAllocator> >
00381 {
00382 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00383 {
00384 stream.next(m.return_code);
00385 stream.next(m.tags);
00386 stream.next(m.name);
00387 stream.next(m.maker);
00388 }
00389
00390 ROS_DECLARE_ALLINONE_SERIALIZER;
00391 };
00392 }
00393 }
00394
00395 namespace ros
00396 {
00397 namespace service_traits
00398 {
00399 template<>
00400 struct MD5Sum<household_objects_database_msgs::GetModelDescription> {
00401 static const char* value()
00402 {
00403 return "1fee77e674730723af04cd39a4e3e0b1";
00404 }
00405
00406 static const char* value(const household_objects_database_msgs::GetModelDescription&) { return value(); }
00407 };
00408
00409 template<>
00410 struct DataType<household_objects_database_msgs::GetModelDescription> {
00411 static const char* value()
00412 {
00413 return "household_objects_database_msgs/GetModelDescription";
00414 }
00415
00416 static const char* value(const household_objects_database_msgs::GetModelDescription&) { return value(); }
00417 };
00418
00419 template<class ContainerAllocator>
00420 struct MD5Sum<household_objects_database_msgs::GetModelDescriptionRequest_<ContainerAllocator> > {
00421 static const char* value()
00422 {
00423 return "1fee77e674730723af04cd39a4e3e0b1";
00424 }
00425
00426 static const char* value(const household_objects_database_msgs::GetModelDescriptionRequest_<ContainerAllocator> &) { return value(); }
00427 };
00428
00429 template<class ContainerAllocator>
00430 struct DataType<household_objects_database_msgs::GetModelDescriptionRequest_<ContainerAllocator> > {
00431 static const char* value()
00432 {
00433 return "household_objects_database_msgs/GetModelDescription";
00434 }
00435
00436 static const char* value(const household_objects_database_msgs::GetModelDescriptionRequest_<ContainerAllocator> &) { return value(); }
00437 };
00438
00439 template<class ContainerAllocator>
00440 struct MD5Sum<household_objects_database_msgs::GetModelDescriptionResponse_<ContainerAllocator> > {
00441 static const char* value()
00442 {
00443 return "1fee77e674730723af04cd39a4e3e0b1";
00444 }
00445
00446 static const char* value(const household_objects_database_msgs::GetModelDescriptionResponse_<ContainerAllocator> &) { return value(); }
00447 };
00448
00449 template<class ContainerAllocator>
00450 struct DataType<household_objects_database_msgs::GetModelDescriptionResponse_<ContainerAllocator> > {
00451 static const char* value()
00452 {
00453 return "household_objects_database_msgs/GetModelDescription";
00454 }
00455
00456 static const char* value(const household_objects_database_msgs::GetModelDescriptionResponse_<ContainerAllocator> &) { return value(); }
00457 };
00458
00459 }
00460 }
00461
00462 #endif // HOUSEHOLD_OBJECTS_DATABASE_MSGS_SERVICE_GETMODELDESCRIPTION_H
00463