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