00001
00002 #ifndef SRS_OBJECT_DATABASE_MSGS_SERVICE_GETOBJECTID_H
00003 #define SRS_OBJECT_DATABASE_MSGS_SERVICE_GETOBJECTID_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
00022 namespace srs_object_database_msgs
00023 {
00024 template <class ContainerAllocator>
00025 struct GetObjectIdRequest_ {
00026 typedef GetObjectIdRequest_<ContainerAllocator> Type;
00027
00028 GetObjectIdRequest_()
00029 : type()
00030 , item()
00031 {
00032 }
00033
00034 GetObjectIdRequest_(const ContainerAllocator& _alloc)
00035 : type(_alloc)
00036 , item(_alloc)
00037 {
00038 }
00039
00040 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _type_type;
00041 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > type;
00042
00043 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _item_type;
00044 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > item;
00045
00046
00047 typedef boost::shared_ptr< ::srs_object_database_msgs::GetObjectIdRequest_<ContainerAllocator> > Ptr;
00048 typedef boost::shared_ptr< ::srs_object_database_msgs::GetObjectIdRequest_<ContainerAllocator> const> ConstPtr;
00049 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00050 };
00051 typedef ::srs_object_database_msgs::GetObjectIdRequest_<std::allocator<void> > GetObjectIdRequest;
00052
00053 typedef boost::shared_ptr< ::srs_object_database_msgs::GetObjectIdRequest> GetObjectIdRequestPtr;
00054 typedef boost::shared_ptr< ::srs_object_database_msgs::GetObjectIdRequest const> GetObjectIdRequestConstPtr;
00055
00056
00057 template <class ContainerAllocator>
00058 struct GetObjectIdResponse_ {
00059 typedef GetObjectIdResponse_<ContainerAllocator> Type;
00060
00061 GetObjectIdResponse_()
00062 : return_response()
00063 , model_ids()
00064 , model_desc()
00065 , version()
00066 , model_category()
00067 , graspable()
00068 , model_x_size()
00069 , model_y_size()
00070 , model_z_size()
00071 , model_basic_shape()
00072 {
00073 }
00074
00075 GetObjectIdResponse_(const ContainerAllocator& _alloc)
00076 : return_response(_alloc)
00077 , model_ids(_alloc)
00078 , model_desc(_alloc)
00079 , version(_alloc)
00080 , model_category(_alloc)
00081 , graspable(_alloc)
00082 , model_x_size(_alloc)
00083 , model_y_size(_alloc)
00084 , model_z_size(_alloc)
00085 , model_basic_shape(_alloc)
00086 {
00087 }
00088
00089 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _return_response_type;
00090 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > return_response;
00091
00092 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _model_ids_type;
00093 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > model_ids;
00094
00095 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 > _model_desc_type;
00096 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 > model_desc;
00097
00098 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 > _version_type;
00099 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 > version;
00100
00101 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 > _model_category_type;
00102 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 > model_category;
00103
00104 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _graspable_type;
00105 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > graspable;
00106
00107 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _model_x_size_type;
00108 std::vector<float, typename ContainerAllocator::template rebind<float>::other > model_x_size;
00109
00110 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _model_y_size_type;
00111 std::vector<float, typename ContainerAllocator::template rebind<float>::other > model_y_size;
00112
00113 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _model_z_size_type;
00114 std::vector<float, typename ContainerAllocator::template rebind<float>::other > model_z_size;
00115
00116 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 > _model_basic_shape_type;
00117 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 > model_basic_shape;
00118
00119
00120 typedef boost::shared_ptr< ::srs_object_database_msgs::GetObjectIdResponse_<ContainerAllocator> > Ptr;
00121 typedef boost::shared_ptr< ::srs_object_database_msgs::GetObjectIdResponse_<ContainerAllocator> const> ConstPtr;
00122 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00123 };
00124 typedef ::srs_object_database_msgs::GetObjectIdResponse_<std::allocator<void> > GetObjectIdResponse;
00125
00126 typedef boost::shared_ptr< ::srs_object_database_msgs::GetObjectIdResponse> GetObjectIdResponsePtr;
00127 typedef boost::shared_ptr< ::srs_object_database_msgs::GetObjectIdResponse const> GetObjectIdResponseConstPtr;
00128
00129 struct GetObjectId
00130 {
00131
00132 typedef GetObjectIdRequest Request;
00133 typedef GetObjectIdResponse Response;
00134 Request request;
00135 Response response;
00136
00137 typedef Request RequestType;
00138 typedef Response ResponseType;
00139 };
00140 }
00141
00142 namespace ros
00143 {
00144 namespace message_traits
00145 {
00146 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetObjectIdRequest_<ContainerAllocator> > : public TrueType {};
00147 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetObjectIdRequest_<ContainerAllocator> const> : public TrueType {};
00148 template<class ContainerAllocator>
00149 struct MD5Sum< ::srs_object_database_msgs::GetObjectIdRequest_<ContainerAllocator> > {
00150 static const char* value()
00151 {
00152 return "a10cc611c498c0243a6ab6d33b407956";
00153 }
00154
00155 static const char* value(const ::srs_object_database_msgs::GetObjectIdRequest_<ContainerAllocator> &) { return value(); }
00156 static const uint64_t static_value1 = 0xa10cc611c498c024ULL;
00157 static const uint64_t static_value2 = 0x3a6ab6d33b407956ULL;
00158 };
00159
00160 template<class ContainerAllocator>
00161 struct DataType< ::srs_object_database_msgs::GetObjectIdRequest_<ContainerAllocator> > {
00162 static const char* value()
00163 {
00164 return "srs_object_database_msgs/GetObjectIdRequest";
00165 }
00166
00167 static const char* value(const ::srs_object_database_msgs::GetObjectIdRequest_<ContainerAllocator> &) { return value(); }
00168 };
00169
00170 template<class ContainerAllocator>
00171 struct Definition< ::srs_object_database_msgs::GetObjectIdRequest_<ContainerAllocator> > {
00172 static const char* value()
00173 {
00174 return "\n\
00175 \n\
00176 \n\
00177 \n\
00178 \n\
00179 string type\n\
00180 \n\
00181 string item\n\
00182 \n\
00183 \n\
00184 ";
00185 }
00186
00187 static const char* value(const ::srs_object_database_msgs::GetObjectIdRequest_<ContainerAllocator> &) { return value(); }
00188 };
00189
00190 }
00191 }
00192
00193
00194 namespace ros
00195 {
00196 namespace message_traits
00197 {
00198 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetObjectIdResponse_<ContainerAllocator> > : public TrueType {};
00199 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetObjectIdResponse_<ContainerAllocator> const> : public TrueType {};
00200 template<class ContainerAllocator>
00201 struct MD5Sum< ::srs_object_database_msgs::GetObjectIdResponse_<ContainerAllocator> > {
00202 static const char* value()
00203 {
00204 return "28c1f9c30f6beebadf0ced5cfa630c49";
00205 }
00206
00207 static const char* value(const ::srs_object_database_msgs::GetObjectIdResponse_<ContainerAllocator> &) { return value(); }
00208 static const uint64_t static_value1 = 0x28c1f9c30f6beebaULL;
00209 static const uint64_t static_value2 = 0xdf0ced5cfa630c49ULL;
00210 };
00211
00212 template<class ContainerAllocator>
00213 struct DataType< ::srs_object_database_msgs::GetObjectIdResponse_<ContainerAllocator> > {
00214 static const char* value()
00215 {
00216 return "srs_object_database_msgs/GetObjectIdResponse";
00217 }
00218
00219 static const char* value(const ::srs_object_database_msgs::GetObjectIdResponse_<ContainerAllocator> &) { return value(); }
00220 };
00221
00222 template<class ContainerAllocator>
00223 struct Definition< ::srs_object_database_msgs::GetObjectIdResponse_<ContainerAllocator> > {
00224 static const char* value()
00225 {
00226 return "\n\
00227 \n\
00228 string return_response\n\
00229 \n\
00230 \n\
00231 int32[] model_ids\n\
00232 \n\
00233 \n\
00234 string[] model_desc\n\
00235 \n\
00236 \n\
00237 string[] version\n\
00238 \n\
00239 \n\
00240 string[] model_category\n\
00241 \n\
00242 \n\
00243 bool[] graspable\n\
00244 \n\
00245 \n\
00246 float32[] model_x_size\n\
00247 \n\
00248 \n\
00249 float32[] model_y_size\n\
00250 \n\
00251 \n\
00252 float32[] model_z_size\n\
00253 \n\
00254 \n\
00255 string[] model_basic_shape\n\
00256 \n\
00257 \n\
00258 ";
00259 }
00260
00261 static const char* value(const ::srs_object_database_msgs::GetObjectIdResponse_<ContainerAllocator> &) { return value(); }
00262 };
00263
00264 }
00265 }
00266
00267 namespace ros
00268 {
00269 namespace serialization
00270 {
00271
00272 template<class ContainerAllocator> struct Serializer< ::srs_object_database_msgs::GetObjectIdRequest_<ContainerAllocator> >
00273 {
00274 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00275 {
00276 stream.next(m.type);
00277 stream.next(m.item);
00278 }
00279
00280 ROS_DECLARE_ALLINONE_SERIALIZER;
00281 };
00282 }
00283 }
00284
00285
00286 namespace ros
00287 {
00288 namespace serialization
00289 {
00290
00291 template<class ContainerAllocator> struct Serializer< ::srs_object_database_msgs::GetObjectIdResponse_<ContainerAllocator> >
00292 {
00293 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00294 {
00295 stream.next(m.return_response);
00296 stream.next(m.model_ids);
00297 stream.next(m.model_desc);
00298 stream.next(m.version);
00299 stream.next(m.model_category);
00300 stream.next(m.graspable);
00301 stream.next(m.model_x_size);
00302 stream.next(m.model_y_size);
00303 stream.next(m.model_z_size);
00304 stream.next(m.model_basic_shape);
00305 }
00306
00307 ROS_DECLARE_ALLINONE_SERIALIZER;
00308 };
00309 }
00310 }
00311
00312 namespace ros
00313 {
00314 namespace service_traits
00315 {
00316 template<>
00317 struct MD5Sum<srs_object_database_msgs::GetObjectId> {
00318 static const char* value()
00319 {
00320 return "da04346db6b247535564f8d406b33256";
00321 }
00322
00323 static const char* value(const srs_object_database_msgs::GetObjectId&) { return value(); }
00324 };
00325
00326 template<>
00327 struct DataType<srs_object_database_msgs::GetObjectId> {
00328 static const char* value()
00329 {
00330 return "srs_object_database_msgs/GetObjectId";
00331 }
00332
00333 static const char* value(const srs_object_database_msgs::GetObjectId&) { return value(); }
00334 };
00335
00336 template<class ContainerAllocator>
00337 struct MD5Sum<srs_object_database_msgs::GetObjectIdRequest_<ContainerAllocator> > {
00338 static const char* value()
00339 {
00340 return "da04346db6b247535564f8d406b33256";
00341 }
00342
00343 static const char* value(const srs_object_database_msgs::GetObjectIdRequest_<ContainerAllocator> &) { return value(); }
00344 };
00345
00346 template<class ContainerAllocator>
00347 struct DataType<srs_object_database_msgs::GetObjectIdRequest_<ContainerAllocator> > {
00348 static const char* value()
00349 {
00350 return "srs_object_database_msgs/GetObjectId";
00351 }
00352
00353 static const char* value(const srs_object_database_msgs::GetObjectIdRequest_<ContainerAllocator> &) { return value(); }
00354 };
00355
00356 template<class ContainerAllocator>
00357 struct MD5Sum<srs_object_database_msgs::GetObjectIdResponse_<ContainerAllocator> > {
00358 static const char* value()
00359 {
00360 return "da04346db6b247535564f8d406b33256";
00361 }
00362
00363 static const char* value(const srs_object_database_msgs::GetObjectIdResponse_<ContainerAllocator> &) { return value(); }
00364 };
00365
00366 template<class ContainerAllocator>
00367 struct DataType<srs_object_database_msgs::GetObjectIdResponse_<ContainerAllocator> > {
00368 static const char* value()
00369 {
00370 return "srs_object_database_msgs/GetObjectId";
00371 }
00372
00373 static const char* value(const srs_object_database_msgs::GetObjectIdResponse_<ContainerAllocator> &) { return value(); }
00374 };
00375
00376 }
00377 }
00378
00379 #endif // SRS_OBJECT_DATABASE_MSGS_SERVICE_GETOBJECTID_H
00380