Go to the documentation of this file.00001
00002 #ifndef SRS_OBJECT_DATABASE_MSGS_SERVICE_GETIMG_H
00003 #define SRS_OBJECT_DATABASE_MSGS_SERVICE_GETIMG_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 "srs_object_database_msgs/img.h"
00022
00023 namespace srs_object_database_msgs
00024 {
00025 template <class ContainerAllocator>
00026 struct GetImgRequest_ {
00027 typedef GetImgRequest_<ContainerAllocator> Type;
00028
00029 GetImgRequest_()
00030 : model_ids()
00031 , type()
00032 {
00033 }
00034
00035 GetImgRequest_(const ContainerAllocator& _alloc)
00036 : model_ids(_alloc)
00037 , type(_alloc)
00038 {
00039 }
00040
00041 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _model_ids_type;
00042 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > model_ids;
00043
00044 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _type_type;
00045 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > type;
00046
00047
00048 typedef boost::shared_ptr< ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::srs_object_database_msgs::GetImgRequest_<std::allocator<void> > GetImgRequest;
00053
00054 typedef boost::shared_ptr< ::srs_object_database_msgs::GetImgRequest> GetImgRequestPtr;
00055 typedef boost::shared_ptr< ::srs_object_database_msgs::GetImgRequest const> GetImgRequestConstPtr;
00056
00057
00058 template <class ContainerAllocator>
00059 struct GetImgResponse_ {
00060 typedef GetImgResponse_<ContainerAllocator> Type;
00061
00062 GetImgResponse_()
00063 : return_response()
00064 , msg()
00065 {
00066 }
00067
00068 GetImgResponse_(const ContainerAllocator& _alloc)
00069 : return_response(_alloc)
00070 , msg(_alloc)
00071 {
00072 }
00073
00074 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _return_response_type;
00075 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > return_response;
00076
00077 typedef std::vector< ::srs_object_database_msgs::img_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_object_database_msgs::img_<ContainerAllocator> >::other > _msg_type;
00078 std::vector< ::srs_object_database_msgs::img_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_object_database_msgs::img_<ContainerAllocator> >::other > msg;
00079
00080
00081 typedef boost::shared_ptr< ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> > Ptr;
00082 typedef boost::shared_ptr< ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> const> ConstPtr;
00083 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00084 };
00085 typedef ::srs_object_database_msgs::GetImgResponse_<std::allocator<void> > GetImgResponse;
00086
00087 typedef boost::shared_ptr< ::srs_object_database_msgs::GetImgResponse> GetImgResponsePtr;
00088 typedef boost::shared_ptr< ::srs_object_database_msgs::GetImgResponse const> GetImgResponseConstPtr;
00089
00090 struct GetImg
00091 {
00092
00093 typedef GetImgRequest Request;
00094 typedef GetImgResponse Response;
00095 Request request;
00096 Response response;
00097
00098 typedef Request RequestType;
00099 typedef Response ResponseType;
00100 };
00101 }
00102
00103 namespace ros
00104 {
00105 namespace message_traits
00106 {
00107 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> > : public TrueType {};
00108 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> const> : public TrueType {};
00109 template<class ContainerAllocator>
00110 struct MD5Sum< ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> > {
00111 static const char* value()
00112 {
00113 return "77cd1e697fb96aaf550cf17b213846ac";
00114 }
00115
00116 static const char* value(const ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> &) { return value(); }
00117 static const uint64_t static_value1 = 0x77cd1e697fb96aafULL;
00118 static const uint64_t static_value2 = 0x550cf17b213846acULL;
00119 };
00120
00121 template<class ContainerAllocator>
00122 struct DataType< ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> > {
00123 static const char* value()
00124 {
00125 return "srs_object_database_msgs/GetImgRequest";
00126 }
00127
00128 static const char* value(const ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> &) { return value(); }
00129 };
00130
00131 template<class ContainerAllocator>
00132 struct Definition< ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> > {
00133 static const char* value()
00134 {
00135 return "\n\
00136 \n\
00137 \n\
00138 \n\
00139 int32[] model_ids\n\
00140 \n\
00141 \n\
00142 string type\n\
00143 \n\
00144 \n\
00145 ";
00146 }
00147
00148 static const char* value(const ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> &) { return value(); }
00149 };
00150
00151 }
00152 }
00153
00154
00155 namespace ros
00156 {
00157 namespace message_traits
00158 {
00159 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> > : public TrueType {};
00160 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> const> : public TrueType {};
00161 template<class ContainerAllocator>
00162 struct MD5Sum< ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> > {
00163 static const char* value()
00164 {
00165 return "f16e1f5f36fac921d1c918ee40af6ecb";
00166 }
00167
00168 static const char* value(const ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> &) { return value(); }
00169 static const uint64_t static_value1 = 0xf16e1f5f36fac921ULL;
00170 static const uint64_t static_value2 = 0xd1c918ee40af6ecbULL;
00171 };
00172
00173 template<class ContainerAllocator>
00174 struct DataType< ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> > {
00175 static const char* value()
00176 {
00177 return "srs_object_database_msgs/GetImgResponse";
00178 }
00179
00180 static const char* value(const ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> &) { return value(); }
00181 };
00182
00183 template<class ContainerAllocator>
00184 struct Definition< ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> > {
00185 static const char* value()
00186 {
00187 return "\n\
00188 \n\
00189 string return_response\n\
00190 srs_object_database_msgs/img[] msg\n\
00191 \n\
00192 \n\
00193 \n\
00194 ================================================================================\n\
00195 MSG: srs_object_database_msgs/img\n\
00196 int32 objectId\n\
00197 string description\n\
00198 sensor_msgs/Image image\n\
00199 ================================================================================\n\
00200 MSG: sensor_msgs/Image\n\
00201 # This message contains an uncompressed image\n\
00202 # (0, 0) is at top-left corner of image\n\
00203 #\n\
00204 \n\
00205 Header header # Header timestamp should be acquisition time of image\n\
00206 # Header frame_id should be optical frame of camera\n\
00207 # origin of frame should be optical center of cameara\n\
00208 # +x should point to the right in the image\n\
00209 # +y should point down in the image\n\
00210 # +z should point into to plane of the image\n\
00211 # If the frame_id here and the frame_id of the CameraInfo\n\
00212 # message associated with the image conflict\n\
00213 # the behavior is undefined\n\
00214 \n\
00215 uint32 height # image height, that is, number of rows\n\
00216 uint32 width # image width, that is, number of columns\n\
00217 \n\
00218 # The legal values for encoding are in file src/image_encodings.cpp\n\
00219 # If you want to standardize a new string format, join\n\
00220 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\
00221 \n\
00222 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\
00223 # taken from the list of strings in src/image_encodings.cpp\n\
00224 \n\
00225 uint8 is_bigendian # is this data bigendian?\n\
00226 uint32 step # Full row length in bytes\n\
00227 uint8[] data # actual matrix data, size is (step * rows)\n\
00228 \n\
00229 ================================================================================\n\
00230 MSG: std_msgs/Header\n\
00231 # Standard metadata for higher-level stamped data types.\n\
00232 # This is generally used to communicate timestamped data \n\
00233 # in a particular coordinate frame.\n\
00234 # \n\
00235 # sequence ID: consecutively increasing ID \n\
00236 uint32 seq\n\
00237 #Two-integer timestamp that is expressed as:\n\
00238 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00239 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00240 # time-handling sugar is provided by the client library\n\
00241 time stamp\n\
00242 #Frame this data is associated with\n\
00243 # 0: no frame\n\
00244 # 1: global frame\n\
00245 string frame_id\n\
00246 \n\
00247 ";
00248 }
00249
00250 static const char* value(const ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> &) { return value(); }
00251 };
00252
00253 }
00254 }
00255
00256 namespace ros
00257 {
00258 namespace serialization
00259 {
00260
00261 template<class ContainerAllocator> struct Serializer< ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> >
00262 {
00263 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00264 {
00265 stream.next(m.model_ids);
00266 stream.next(m.type);
00267 }
00268
00269 ROS_DECLARE_ALLINONE_SERIALIZER;
00270 };
00271 }
00272 }
00273
00274
00275 namespace ros
00276 {
00277 namespace serialization
00278 {
00279
00280 template<class ContainerAllocator> struct Serializer< ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> >
00281 {
00282 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00283 {
00284 stream.next(m.return_response);
00285 stream.next(m.msg);
00286 }
00287
00288 ROS_DECLARE_ALLINONE_SERIALIZER;
00289 };
00290 }
00291 }
00292
00293 namespace ros
00294 {
00295 namespace service_traits
00296 {
00297 template<>
00298 struct MD5Sum<srs_object_database_msgs::GetImg> {
00299 static const char* value()
00300 {
00301 return "537c22f986e5f0ba96c82f56b48af61b";
00302 }
00303
00304 static const char* value(const srs_object_database_msgs::GetImg&) { return value(); }
00305 };
00306
00307 template<>
00308 struct DataType<srs_object_database_msgs::GetImg> {
00309 static const char* value()
00310 {
00311 return "srs_object_database_msgs/GetImg";
00312 }
00313
00314 static const char* value(const srs_object_database_msgs::GetImg&) { return value(); }
00315 };
00316
00317 template<class ContainerAllocator>
00318 struct MD5Sum<srs_object_database_msgs::GetImgRequest_<ContainerAllocator> > {
00319 static const char* value()
00320 {
00321 return "537c22f986e5f0ba96c82f56b48af61b";
00322 }
00323
00324 static const char* value(const srs_object_database_msgs::GetImgRequest_<ContainerAllocator> &) { return value(); }
00325 };
00326
00327 template<class ContainerAllocator>
00328 struct DataType<srs_object_database_msgs::GetImgRequest_<ContainerAllocator> > {
00329 static const char* value()
00330 {
00331 return "srs_object_database_msgs/GetImg";
00332 }
00333
00334 static const char* value(const srs_object_database_msgs::GetImgRequest_<ContainerAllocator> &) { return value(); }
00335 };
00336
00337 template<class ContainerAllocator>
00338 struct MD5Sum<srs_object_database_msgs::GetImgResponse_<ContainerAllocator> > {
00339 static const char* value()
00340 {
00341 return "537c22f986e5f0ba96c82f56b48af61b";
00342 }
00343
00344 static const char* value(const srs_object_database_msgs::GetImgResponse_<ContainerAllocator> &) { return value(); }
00345 };
00346
00347 template<class ContainerAllocator>
00348 struct DataType<srs_object_database_msgs::GetImgResponse_<ContainerAllocator> > {
00349 static const char* value()
00350 {
00351 return "srs_object_database_msgs/GetImg";
00352 }
00353
00354 static const char* value(const srs_object_database_msgs::GetImgResponse_<ContainerAllocator> &) { return value(); }
00355 };
00356
00357 }
00358 }
00359
00360 #endif // SRS_OBJECT_DATABASE_MSGS_SERVICE_GETIMG_H
00361