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