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