Go to the documentation of this file.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 <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 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> > Ptr;
00044 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> const> ConstPtr;
00045 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00046 };
00047 typedef ::household_objects_database_msgs::GetModelListRequest_<std::allocator<void> > GetModelListRequest;
00048
00049 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelListRequest> GetModelListRequestPtr;
00050 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelListRequest const> GetModelListRequestConstPtr;
00051
00052
00053 template <class ContainerAllocator>
00054 struct GetModelListResponse_ {
00055 typedef GetModelListResponse_<ContainerAllocator> Type;
00056
00057 GetModelListResponse_()
00058 : return_code()
00059 , model_ids()
00060 {
00061 }
00062
00063 GetModelListResponse_(const ContainerAllocator& _alloc)
00064 : return_code(_alloc)
00065 , model_ids(_alloc)
00066 {
00067 }
00068
00069 typedef ::household_objects_database_msgs::DatabaseReturnCode_<ContainerAllocator> _return_code_type;
00070 ::household_objects_database_msgs::DatabaseReturnCode_<ContainerAllocator> return_code;
00071
00072 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _model_ids_type;
00073 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > model_ids;
00074
00075
00076 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> > Ptr;
00077 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> const> ConstPtr;
00078 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00079 };
00080 typedef ::household_objects_database_msgs::GetModelListResponse_<std::allocator<void> > GetModelListResponse;
00081
00082 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelListResponse> GetModelListResponsePtr;
00083 typedef boost::shared_ptr< ::household_objects_database_msgs::GetModelListResponse const> GetModelListResponseConstPtr;
00084
00085 struct GetModelList
00086 {
00087
00088 typedef GetModelListRequest Request;
00089 typedef GetModelListResponse Response;
00090 Request request;
00091 Response response;
00092
00093 typedef Request RequestType;
00094 typedef Response ResponseType;
00095 };
00096 }
00097
00098 namespace ros
00099 {
00100 namespace message_traits
00101 {
00102 template<class ContainerAllocator> struct IsMessage< ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> > : public TrueType {};
00103 template<class ContainerAllocator> struct IsMessage< ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> const> : public TrueType {};
00104 template<class ContainerAllocator>
00105 struct MD5Sum< ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> > {
00106 static const char* value()
00107 {
00108 return "6bdf0a866151f41b8876e73800929933";
00109 }
00110
00111 static const char* value(const ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> &) { return value(); }
00112 static const uint64_t static_value1 = 0x6bdf0a866151f41bULL;
00113 static const uint64_t static_value2 = 0x8876e73800929933ULL;
00114 };
00115
00116 template<class ContainerAllocator>
00117 struct DataType< ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> > {
00118 static const char* value()
00119 {
00120 return "household_objects_database_msgs/GetModelListRequest";
00121 }
00122
00123 static const char* value(const ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> &) { return value(); }
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct Definition< ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> > {
00128 static const char* value()
00129 {
00130 return "\n\
00131 \n\
00132 \n\
00133 \n\
00134 \n\
00135 string model_set\n\
00136 \n\
00137 \n\
00138 ";
00139 }
00140
00141 static const char* value(const ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> &) { return value(); }
00142 };
00143
00144 }
00145 }
00146
00147
00148 namespace ros
00149 {
00150 namespace message_traits
00151 {
00152 template<class ContainerAllocator> struct IsMessage< ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> > : public TrueType {};
00153 template<class ContainerAllocator> struct IsMessage< ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> const> : public TrueType {};
00154 template<class ContainerAllocator>
00155 struct MD5Sum< ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> > {
00156 static const char* value()
00157 {
00158 return "81fac8c5d631e612bd9183a923572d53";
00159 }
00160
00161 static const char* value(const ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> &) { return value(); }
00162 static const uint64_t static_value1 = 0x81fac8c5d631e612ULL;
00163 static const uint64_t static_value2 = 0xbd9183a923572d53ULL;
00164 };
00165
00166 template<class ContainerAllocator>
00167 struct DataType< ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> > {
00168 static const char* value()
00169 {
00170 return "household_objects_database_msgs/GetModelListResponse";
00171 }
00172
00173 static const char* value(const ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> &) { return value(); }
00174 };
00175
00176 template<class ContainerAllocator>
00177 struct Definition< ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> > {
00178 static const char* value()
00179 {
00180 return "\n\
00181 \n\
00182 DatabaseReturnCode return_code\n\
00183 \n\
00184 \n\
00185 int32[] model_ids\n\
00186 \n\
00187 ================================================================================\n\
00188 MSG: household_objects_database_msgs/DatabaseReturnCode\n\
00189 # return codes for database-related services\n\
00190 \n\
00191 int32 UNKNOWN_ERROR = 1\n\
00192 int32 DATABASE_NOT_CONNECTED = 2\n\
00193 int32 DATABASE_QUERY_ERROR = 3\n\
00194 int32 SUCCESS = -1\n\
00195 \n\
00196 int32 code\n\
00197 ";
00198 }
00199
00200 static const char* value(const ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> &) { return value(); }
00201 };
00202
00203 }
00204 }
00205
00206 namespace ros
00207 {
00208 namespace serialization
00209 {
00210
00211 template<class ContainerAllocator> struct Serializer< ::household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> >
00212 {
00213 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00214 {
00215 stream.next(m.model_set);
00216 }
00217
00218 ROS_DECLARE_ALLINONE_SERIALIZER;
00219 };
00220 }
00221 }
00222
00223
00224 namespace ros
00225 {
00226 namespace serialization
00227 {
00228
00229 template<class ContainerAllocator> struct Serializer< ::household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> >
00230 {
00231 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00232 {
00233 stream.next(m.return_code);
00234 stream.next(m.model_ids);
00235 }
00236
00237 ROS_DECLARE_ALLINONE_SERIALIZER;
00238 };
00239 }
00240 }
00241
00242 namespace ros
00243 {
00244 namespace service_traits
00245 {
00246 template<>
00247 struct MD5Sum<household_objects_database_msgs::GetModelList> {
00248 static const char* value()
00249 {
00250 return "5f1f68d0a220da15352f6f1cb9a37fea";
00251 }
00252
00253 static const char* value(const household_objects_database_msgs::GetModelList&) { return value(); }
00254 };
00255
00256 template<>
00257 struct DataType<household_objects_database_msgs::GetModelList> {
00258 static const char* value()
00259 {
00260 return "household_objects_database_msgs/GetModelList";
00261 }
00262
00263 static const char* value(const household_objects_database_msgs::GetModelList&) { return value(); }
00264 };
00265
00266 template<class ContainerAllocator>
00267 struct MD5Sum<household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> > {
00268 static const char* value()
00269 {
00270 return "5f1f68d0a220da15352f6f1cb9a37fea";
00271 }
00272
00273 static const char* value(const household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> &) { return value(); }
00274 };
00275
00276 template<class ContainerAllocator>
00277 struct DataType<household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> > {
00278 static const char* value()
00279 {
00280 return "household_objects_database_msgs/GetModelList";
00281 }
00282
00283 static const char* value(const household_objects_database_msgs::GetModelListRequest_<ContainerAllocator> &) { return value(); }
00284 };
00285
00286 template<class ContainerAllocator>
00287 struct MD5Sum<household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> > {
00288 static const char* value()
00289 {
00290 return "5f1f68d0a220da15352f6f1cb9a37fea";
00291 }
00292
00293 static const char* value(const household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> &) { return value(); }
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/GetModelList";
00301 }
00302
00303 static const char* value(const household_objects_database_msgs::GetModelListResponse_<ContainerAllocator> &) { return value(); }
00304 };
00305
00306 }
00307 }
00308
00309 #endif // HOUSEHOLD_OBJECTS_DATABASE_MSGS_SERVICE_GETMODELLIST_H
00310