00001
00002 #ifndef PHOTO_SERVICE_CAPTURE_H
00003 #define PHOTO_SERVICE_CAPTURE_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/service_traits.h"
00014
00015
00016
00017 #include "sensor_msgs/Image.h"
00018
00019 namespace photo
00020 {
00021 template <class ContainerAllocator>
00022 struct CaptureRequest_ : public ros::Message
00023 {
00024 typedef CaptureRequest_<ContainerAllocator> Type;
00025
00026 CaptureRequest_()
00027 {
00028 }
00029
00030 CaptureRequest_(const ContainerAllocator& _alloc)
00031 {
00032 }
00033
00034
00035 private:
00036 static const char* __s_getDataType_() { return "photo/CaptureRequest"; }
00037 public:
00038 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00039
00040 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00041
00042 private:
00043 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00046
00047 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00048
00049 private:
00050 static const char* __s_getServerMD5Sum_() { return "b13d2865c5af2a64e6e30ab1b56e1dd5"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00053
00054 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00055
00056 private:
00057 static const char* __s_getMessageDefinition_() { return "\n\
00058 "; }
00059 public:
00060 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00061
00062 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00063
00064 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00065 {
00066 ros::serialization::OStream stream(write_ptr, 1000000000);
00067 return stream.getData();
00068 }
00069
00070 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00071 {
00072 ros::serialization::IStream stream(read_ptr, 1000000000);
00073 return stream.getData();
00074 }
00075
00076 ROS_DEPRECATED virtual uint32_t serializationLength() const
00077 {
00078 uint32_t size = 0;
00079 return size;
00080 }
00081
00082 typedef boost::shared_ptr< ::photo::CaptureRequest_<ContainerAllocator> > Ptr;
00083 typedef boost::shared_ptr< ::photo::CaptureRequest_<ContainerAllocator> const> ConstPtr;
00084 };
00085 typedef ::photo::CaptureRequest_<std::allocator<void> > CaptureRequest;
00086
00087 typedef boost::shared_ptr< ::photo::CaptureRequest> CaptureRequestPtr;
00088 typedef boost::shared_ptr< ::photo::CaptureRequest const> CaptureRequestConstPtr;
00089
00090
00091 template <class ContainerAllocator>
00092 struct CaptureResponse_ : public ros::Message
00093 {
00094 typedef CaptureResponse_<ContainerAllocator> Type;
00095
00096 CaptureResponse_()
00097 : image()
00098 {
00099 }
00100
00101 CaptureResponse_(const ContainerAllocator& _alloc)
00102 : image(_alloc)
00103 {
00104 }
00105
00106 typedef ::sensor_msgs::Image_<ContainerAllocator> _image_type;
00107 ::sensor_msgs::Image_<ContainerAllocator> image;
00108
00109
00110 private:
00111 static const char* __s_getDataType_() { return "photo/CaptureResponse"; }
00112 public:
00113 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00114
00115 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00116
00117 private:
00118 static const char* __s_getMD5Sum_() { return "b13d2865c5af2a64e6e30ab1b56e1dd5"; }
00119 public:
00120 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00121
00122 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00123
00124 private:
00125 static const char* __s_getServerMD5Sum_() { return "b13d2865c5af2a64e6e30ab1b56e1dd5"; }
00126 public:
00127 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00128
00129 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00130
00131 private:
00132 static const char* __s_getMessageDefinition_() { return "sensor_msgs/Image image\n\
00133 \n\
00134 \n\
00135 ================================================================================\n\
00136 MSG: sensor_msgs/Image\n\
00137 # This message contains an uncompressed image\n\
00138 # (0, 0) is at top-left corner of image\n\
00139 #\n\
00140 \n\
00141 Header header # Header timestamp should be acquisition time of image\n\
00142 # Header frame_id should be optical frame of camera\n\
00143 # origin of frame should be optical center of cameara\n\
00144 # +x should point to the right in the image\n\
00145 # +y should point down in the image\n\
00146 # +z should point into to plane of the image\n\
00147 # If the frame_id here and the frame_id of the CameraInfo\n\
00148 # message associated with the image conflict\n\
00149 # the behavior is undefined\n\
00150 \n\
00151 uint32 height # image height, that is, number of rows\n\
00152 uint32 width # image width, that is, number of columns\n\
00153 \n\
00154 # The legal values for encoding are in file src/image_encodings.cpp\n\
00155 # If you want to standardize a new string format, join\n\
00156 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\
00157 \n\
00158 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\
00159 # taken from the list of strings in src/image_encodings.cpp\n\
00160 \n\
00161 uint8 is_bigendian # is this data bigendian?\n\
00162 uint32 step # Full row length in bytes\n\
00163 uint8[] data # actual matrix data, size is (step * rows)\n\
00164 \n\
00165 ================================================================================\n\
00166 MSG: std_msgs/Header\n\
00167 # Standard metadata for higher-level stamped data types.\n\
00168 # This is generally used to communicate timestamped data \n\
00169 # in a particular coordinate frame.\n\
00170 # \n\
00171 # sequence ID: consecutively increasing ID \n\
00172 uint32 seq\n\
00173 #Two-integer timestamp that is expressed as:\n\
00174 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00175 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00176 # time-handling sugar is provided by the client library\n\
00177 time stamp\n\
00178 #Frame this data is associated with\n\
00179 # 0: no frame\n\
00180 # 1: global frame\n\
00181 string frame_id\n\
00182 \n\
00183 "; }
00184 public:
00185 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00186
00187 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00188
00189 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00190 {
00191 ros::serialization::OStream stream(write_ptr, 1000000000);
00192 ros::serialization::serialize(stream, image);
00193 return stream.getData();
00194 }
00195
00196 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00197 {
00198 ros::serialization::IStream stream(read_ptr, 1000000000);
00199 ros::serialization::deserialize(stream, image);
00200 return stream.getData();
00201 }
00202
00203 ROS_DEPRECATED virtual uint32_t serializationLength() const
00204 {
00205 uint32_t size = 0;
00206 size += ros::serialization::serializationLength(image);
00207 return size;
00208 }
00209
00210 typedef boost::shared_ptr< ::photo::CaptureResponse_<ContainerAllocator> > Ptr;
00211 typedef boost::shared_ptr< ::photo::CaptureResponse_<ContainerAllocator> const> ConstPtr;
00212 };
00213 typedef ::photo::CaptureResponse_<std::allocator<void> > CaptureResponse;
00214
00215 typedef boost::shared_ptr< ::photo::CaptureResponse> CaptureResponsePtr;
00216 typedef boost::shared_ptr< ::photo::CaptureResponse const> CaptureResponseConstPtr;
00217
00218 struct Capture
00219 {
00220
00221 typedef CaptureRequest Request;
00222 typedef CaptureResponse Response;
00223 Request request;
00224 Response response;
00225
00226 typedef Request RequestType;
00227 typedef Response ResponseType;
00228 };
00229 }
00230
00231 namespace ros
00232 {
00233 namespace message_traits
00234 {
00235 template<class ContainerAllocator>
00236 struct MD5Sum< ::photo::CaptureRequest_<ContainerAllocator> > {
00237 static const char* value()
00238 {
00239 return "d41d8cd98f00b204e9800998ecf8427e";
00240 }
00241
00242 static const char* value(const ::photo::CaptureRequest_<ContainerAllocator> &) { return value(); }
00243 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00244 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00245 };
00246
00247 template<class ContainerAllocator>
00248 struct DataType< ::photo::CaptureRequest_<ContainerAllocator> > {
00249 static const char* value()
00250 {
00251 return "photo/CaptureRequest";
00252 }
00253
00254 static const char* value(const ::photo::CaptureRequest_<ContainerAllocator> &) { return value(); }
00255 };
00256
00257 template<class ContainerAllocator>
00258 struct Definition< ::photo::CaptureRequest_<ContainerAllocator> > {
00259 static const char* value()
00260 {
00261 return "\n\
00262 ";
00263 }
00264
00265 static const char* value(const ::photo::CaptureRequest_<ContainerAllocator> &) { return value(); }
00266 };
00267
00268 template<class ContainerAllocator> struct IsFixedSize< ::photo::CaptureRequest_<ContainerAllocator> > : public TrueType {};
00269 }
00270 }
00271
00272
00273 namespace ros
00274 {
00275 namespace message_traits
00276 {
00277 template<class ContainerAllocator>
00278 struct MD5Sum< ::photo::CaptureResponse_<ContainerAllocator> > {
00279 static const char* value()
00280 {
00281 return "b13d2865c5af2a64e6e30ab1b56e1dd5";
00282 }
00283
00284 static const char* value(const ::photo::CaptureResponse_<ContainerAllocator> &) { return value(); }
00285 static const uint64_t static_value1 = 0xb13d2865c5af2a64ULL;
00286 static const uint64_t static_value2 = 0xe6e30ab1b56e1dd5ULL;
00287 };
00288
00289 template<class ContainerAllocator>
00290 struct DataType< ::photo::CaptureResponse_<ContainerAllocator> > {
00291 static const char* value()
00292 {
00293 return "photo/CaptureResponse";
00294 }
00295
00296 static const char* value(const ::photo::CaptureResponse_<ContainerAllocator> &) { return value(); }
00297 };
00298
00299 template<class ContainerAllocator>
00300 struct Definition< ::photo::CaptureResponse_<ContainerAllocator> > {
00301 static const char* value()
00302 {
00303 return "sensor_msgs/Image image\n\
00304 \n\
00305 \n\
00306 ================================================================================\n\
00307 MSG: sensor_msgs/Image\n\
00308 # This message contains an uncompressed image\n\
00309 # (0, 0) is at top-left corner of image\n\
00310 #\n\
00311 \n\
00312 Header header # Header timestamp should be acquisition time of image\n\
00313 # Header frame_id should be optical frame of camera\n\
00314 # origin of frame should be optical center of cameara\n\
00315 # +x should point to the right in the image\n\
00316 # +y should point down in the image\n\
00317 # +z should point into to plane of the image\n\
00318 # If the frame_id here and the frame_id of the CameraInfo\n\
00319 # message associated with the image conflict\n\
00320 # the behavior is undefined\n\
00321 \n\
00322 uint32 height # image height, that is, number of rows\n\
00323 uint32 width # image width, that is, number of columns\n\
00324 \n\
00325 # The legal values for encoding are in file src/image_encodings.cpp\n\
00326 # If you want to standardize a new string format, join\n\
00327 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\
00328 \n\
00329 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\
00330 # taken from the list of strings in src/image_encodings.cpp\n\
00331 \n\
00332 uint8 is_bigendian # is this data bigendian?\n\
00333 uint32 step # Full row length in bytes\n\
00334 uint8[] data # actual matrix data, size is (step * rows)\n\
00335 \n\
00336 ================================================================================\n\
00337 MSG: std_msgs/Header\n\
00338 # Standard metadata for higher-level stamped data types.\n\
00339 # This is generally used to communicate timestamped data \n\
00340 # in a particular coordinate frame.\n\
00341 # \n\
00342 # sequence ID: consecutively increasing ID \n\
00343 uint32 seq\n\
00344 #Two-integer timestamp that is expressed as:\n\
00345 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00346 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00347 # time-handling sugar is provided by the client library\n\
00348 time stamp\n\
00349 #Frame this data is associated with\n\
00350 # 0: no frame\n\
00351 # 1: global frame\n\
00352 string frame_id\n\
00353 \n\
00354 ";
00355 }
00356
00357 static const char* value(const ::photo::CaptureResponse_<ContainerAllocator> &) { return value(); }
00358 };
00359
00360 }
00361 }
00362
00363 namespace ros
00364 {
00365 namespace serialization
00366 {
00367
00368 template<class ContainerAllocator> struct Serializer< ::photo::CaptureRequest_<ContainerAllocator> >
00369 {
00370 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00371 {
00372 }
00373
00374 ROS_DECLARE_ALLINONE_SERIALIZER;
00375 };
00376 }
00377 }
00378
00379
00380 namespace ros
00381 {
00382 namespace serialization
00383 {
00384
00385 template<class ContainerAllocator> struct Serializer< ::photo::CaptureResponse_<ContainerAllocator> >
00386 {
00387 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00388 {
00389 stream.next(m.image);
00390 }
00391
00392 ROS_DECLARE_ALLINONE_SERIALIZER;
00393 };
00394 }
00395 }
00396
00397 namespace ros
00398 {
00399 namespace service_traits
00400 {
00401 template<>
00402 struct MD5Sum<photo::Capture> {
00403 static const char* value()
00404 {
00405 return "b13d2865c5af2a64e6e30ab1b56e1dd5";
00406 }
00407
00408 static const char* value(const photo::Capture&) { return value(); }
00409 };
00410
00411 template<>
00412 struct DataType<photo::Capture> {
00413 static const char* value()
00414 {
00415 return "photo/Capture";
00416 }
00417
00418 static const char* value(const photo::Capture&) { return value(); }
00419 };
00420
00421 template<class ContainerAllocator>
00422 struct MD5Sum<photo::CaptureRequest_<ContainerAllocator> > {
00423 static const char* value()
00424 {
00425 return "b13d2865c5af2a64e6e30ab1b56e1dd5";
00426 }
00427
00428 static const char* value(const photo::CaptureRequest_<ContainerAllocator> &) { return value(); }
00429 };
00430
00431 template<class ContainerAllocator>
00432 struct DataType<photo::CaptureRequest_<ContainerAllocator> > {
00433 static const char* value()
00434 {
00435 return "photo/Capture";
00436 }
00437
00438 static const char* value(const photo::CaptureRequest_<ContainerAllocator> &) { return value(); }
00439 };
00440
00441 template<class ContainerAllocator>
00442 struct MD5Sum<photo::CaptureResponse_<ContainerAllocator> > {
00443 static const char* value()
00444 {
00445 return "b13d2865c5af2a64e6e30ab1b56e1dd5";
00446 }
00447
00448 static const char* value(const photo::CaptureResponse_<ContainerAllocator> &) { return value(); }
00449 };
00450
00451 template<class ContainerAllocator>
00452 struct DataType<photo::CaptureResponse_<ContainerAllocator> > {
00453 static const char* value()
00454 {
00455 return "photo/Capture";
00456 }
00457
00458 static const char* value(const photo::CaptureResponse_<ContainerAllocator> &) { return value(); }
00459 };
00460
00461 }
00462 }
00463
00464 #endif // PHOTO_SERVICE_CAPTURE_H
00465