$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_common/doc_stacks/2013-03-02_13-44-44.967682/srs_common/srs_object_database_msgs/srv/GetImg.srv */ 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 ROS_DEPRECATED uint32_t get_model_ids_size() const { return (uint32_t)model_ids.size(); } 00049 ROS_DEPRECATED void set_model_ids_size(uint32_t size) { model_ids.resize((size_t)size); } 00050 ROS_DEPRECATED void get_model_ids_vec(std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) const { vec = this->model_ids; } 00051 ROS_DEPRECATED void set_model_ids_vec(const std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) { this->model_ids = vec; } 00052 private: 00053 static const char* __s_getDataType_() { return "srs_object_database_msgs/GetImgRequest"; } 00054 public: 00055 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00056 00057 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00058 00059 private: 00060 static const char* __s_getMD5Sum_() { return "77cd1e697fb96aaf550cf17b213846ac"; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00063 00064 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00065 00066 private: 00067 static const char* __s_getServerMD5Sum_() { return "537c22f986e5f0ba96c82f56b48af61b"; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00070 00071 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00072 00073 private: 00074 static const char* __s_getMessageDefinition_() { return "\n\ 00075 \n\ 00076 \n\ 00077 \n\ 00078 int32[] model_ids\n\ 00079 \n\ 00080 \n\ 00081 string type\n\ 00082 \n\ 00083 \n\ 00084 "; } 00085 public: 00086 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00087 00088 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00089 00090 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00091 { 00092 ros::serialization::OStream stream(write_ptr, 1000000000); 00093 ros::serialization::serialize(stream, model_ids); 00094 ros::serialization::serialize(stream, type); 00095 return stream.getData(); 00096 } 00097 00098 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00099 { 00100 ros::serialization::IStream stream(read_ptr, 1000000000); 00101 ros::serialization::deserialize(stream, model_ids); 00102 ros::serialization::deserialize(stream, type); 00103 return stream.getData(); 00104 } 00105 00106 ROS_DEPRECATED virtual uint32_t serializationLength() const 00107 { 00108 uint32_t size = 0; 00109 size += ros::serialization::serializationLength(model_ids); 00110 size += ros::serialization::serializationLength(type); 00111 return size; 00112 } 00113 00114 typedef boost::shared_ptr< ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> > Ptr; 00115 typedef boost::shared_ptr< ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> const> ConstPtr; 00116 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00117 }; // struct GetImgRequest 00118 typedef ::srs_object_database_msgs::GetImgRequest_<std::allocator<void> > GetImgRequest; 00119 00120 typedef boost::shared_ptr< ::srs_object_database_msgs::GetImgRequest> GetImgRequestPtr; 00121 typedef boost::shared_ptr< ::srs_object_database_msgs::GetImgRequest const> GetImgRequestConstPtr; 00122 00123 00124 template <class ContainerAllocator> 00125 struct GetImgResponse_ { 00126 typedef GetImgResponse_<ContainerAllocator> Type; 00127 00128 GetImgResponse_() 00129 : return_response() 00130 , msg() 00131 { 00132 } 00133 00134 GetImgResponse_(const ContainerAllocator& _alloc) 00135 : return_response(_alloc) 00136 , msg(_alloc) 00137 { 00138 } 00139 00140 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _return_response_type; 00141 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > return_response; 00142 00143 typedef std::vector< ::srs_object_database_msgs::img_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_object_database_msgs::img_<ContainerAllocator> >::other > _msg_type; 00144 std::vector< ::srs_object_database_msgs::img_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_object_database_msgs::img_<ContainerAllocator> >::other > msg; 00145 00146 00147 ROS_DEPRECATED uint32_t get_msg_size() const { return (uint32_t)msg.size(); } 00148 ROS_DEPRECATED void set_msg_size(uint32_t size) { msg.resize((size_t)size); } 00149 ROS_DEPRECATED void get_msg_vec(std::vector< ::srs_object_database_msgs::img_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_object_database_msgs::img_<ContainerAllocator> >::other > & vec) const { vec = this->msg; } 00150 ROS_DEPRECATED void set_msg_vec(const std::vector< ::srs_object_database_msgs::img_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_object_database_msgs::img_<ContainerAllocator> >::other > & vec) { this->msg = vec; } 00151 private: 00152 static const char* __s_getDataType_() { return "srs_object_database_msgs/GetImgResponse"; } 00153 public: 00154 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00155 00156 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00157 00158 private: 00159 static const char* __s_getMD5Sum_() { return "f16e1f5f36fac921d1c918ee40af6ecb"; } 00160 public: 00161 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00162 00163 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00164 00165 private: 00166 static const char* __s_getServerMD5Sum_() { return "537c22f986e5f0ba96c82f56b48af61b"; } 00167 public: 00168 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00169 00170 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00171 00172 private: 00173 static const char* __s_getMessageDefinition_() { return "\n\ 00174 \n\ 00175 string return_response\n\ 00176 srs_object_database_msgs/img[] msg\n\ 00177 \n\ 00178 \n\ 00179 \n\ 00180 ================================================================================\n\ 00181 MSG: srs_object_database_msgs/img\n\ 00182 int32 objectId\n\ 00183 string description\n\ 00184 sensor_msgs/Image image\n\ 00185 ================================================================================\n\ 00186 MSG: sensor_msgs/Image\n\ 00187 # This message contains an uncompressed image\n\ 00188 # (0, 0) is at top-left corner of image\n\ 00189 #\n\ 00190 \n\ 00191 Header header # Header timestamp should be acquisition time of image\n\ 00192 # Header frame_id should be optical frame of camera\n\ 00193 # origin of frame should be optical center of cameara\n\ 00194 # +x should point to the right in the image\n\ 00195 # +y should point down in the image\n\ 00196 # +z should point into to plane of the image\n\ 00197 # If the frame_id here and the frame_id of the CameraInfo\n\ 00198 # message associated with the image conflict\n\ 00199 # the behavior is undefined\n\ 00200 \n\ 00201 uint32 height # image height, that is, number of rows\n\ 00202 uint32 width # image width, that is, number of columns\n\ 00203 \n\ 00204 # The legal values for encoding are in file src/image_encodings.cpp\n\ 00205 # If you want to standardize a new string format, join\n\ 00206 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\ 00207 \n\ 00208 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\ 00209 # taken from the list of strings in src/image_encodings.cpp\n\ 00210 \n\ 00211 uint8 is_bigendian # is this data bigendian?\n\ 00212 uint32 step # Full row length in bytes\n\ 00213 uint8[] data # actual matrix data, size is (step * rows)\n\ 00214 \n\ 00215 ================================================================================\n\ 00216 MSG: std_msgs/Header\n\ 00217 # Standard metadata for higher-level stamped data types.\n\ 00218 # This is generally used to communicate timestamped data \n\ 00219 # in a particular coordinate frame.\n\ 00220 # \n\ 00221 # sequence ID: consecutively increasing ID \n\ 00222 uint32 seq\n\ 00223 #Two-integer timestamp that is expressed as:\n\ 00224 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00225 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00226 # time-handling sugar is provided by the client library\n\ 00227 time stamp\n\ 00228 #Frame this data is associated with\n\ 00229 # 0: no frame\n\ 00230 # 1: global frame\n\ 00231 string frame_id\n\ 00232 \n\ 00233 "; } 00234 public: 00235 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00236 00237 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00238 00239 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00240 { 00241 ros::serialization::OStream stream(write_ptr, 1000000000); 00242 ros::serialization::serialize(stream, return_response); 00243 ros::serialization::serialize(stream, msg); 00244 return stream.getData(); 00245 } 00246 00247 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00248 { 00249 ros::serialization::IStream stream(read_ptr, 1000000000); 00250 ros::serialization::deserialize(stream, return_response); 00251 ros::serialization::deserialize(stream, msg); 00252 return stream.getData(); 00253 } 00254 00255 ROS_DEPRECATED virtual uint32_t serializationLength() const 00256 { 00257 uint32_t size = 0; 00258 size += ros::serialization::serializationLength(return_response); 00259 size += ros::serialization::serializationLength(msg); 00260 return size; 00261 } 00262 00263 typedef boost::shared_ptr< ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> > Ptr; 00264 typedef boost::shared_ptr< ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> const> ConstPtr; 00265 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00266 }; // struct GetImgResponse 00267 typedef ::srs_object_database_msgs::GetImgResponse_<std::allocator<void> > GetImgResponse; 00268 00269 typedef boost::shared_ptr< ::srs_object_database_msgs::GetImgResponse> GetImgResponsePtr; 00270 typedef boost::shared_ptr< ::srs_object_database_msgs::GetImgResponse const> GetImgResponseConstPtr; 00271 00272 struct GetImg 00273 { 00274 00275 typedef GetImgRequest Request; 00276 typedef GetImgResponse Response; 00277 Request request; 00278 Response response; 00279 00280 typedef Request RequestType; 00281 typedef Response ResponseType; 00282 }; // struct GetImg 00283 } // namespace srs_object_database_msgs 00284 00285 namespace ros 00286 { 00287 namespace message_traits 00288 { 00289 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> > : public TrueType {}; 00290 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> const> : public TrueType {}; 00291 template<class ContainerAllocator> 00292 struct MD5Sum< ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> > { 00293 static const char* value() 00294 { 00295 return "77cd1e697fb96aaf550cf17b213846ac"; 00296 } 00297 00298 static const char* value(const ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> &) { return value(); } 00299 static const uint64_t static_value1 = 0x77cd1e697fb96aafULL; 00300 static const uint64_t static_value2 = 0x550cf17b213846acULL; 00301 }; 00302 00303 template<class ContainerAllocator> 00304 struct DataType< ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> > { 00305 static const char* value() 00306 { 00307 return "srs_object_database_msgs/GetImgRequest"; 00308 } 00309 00310 static const char* value(const ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> &) { return value(); } 00311 }; 00312 00313 template<class ContainerAllocator> 00314 struct Definition< ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> > { 00315 static const char* value() 00316 { 00317 return "\n\ 00318 \n\ 00319 \n\ 00320 \n\ 00321 int32[] model_ids\n\ 00322 \n\ 00323 \n\ 00324 string type\n\ 00325 \n\ 00326 \n\ 00327 "; 00328 } 00329 00330 static const char* value(const ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> &) { return value(); } 00331 }; 00332 00333 } // namespace message_traits 00334 } // namespace ros 00335 00336 00337 namespace ros 00338 { 00339 namespace message_traits 00340 { 00341 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> > : public TrueType {}; 00342 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> const> : public TrueType {}; 00343 template<class ContainerAllocator> 00344 struct MD5Sum< ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> > { 00345 static const char* value() 00346 { 00347 return "f16e1f5f36fac921d1c918ee40af6ecb"; 00348 } 00349 00350 static const char* value(const ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> &) { return value(); } 00351 static const uint64_t static_value1 = 0xf16e1f5f36fac921ULL; 00352 static const uint64_t static_value2 = 0xd1c918ee40af6ecbULL; 00353 }; 00354 00355 template<class ContainerAllocator> 00356 struct DataType< ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> > { 00357 static const char* value() 00358 { 00359 return "srs_object_database_msgs/GetImgResponse"; 00360 } 00361 00362 static const char* value(const ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> &) { return value(); } 00363 }; 00364 00365 template<class ContainerAllocator> 00366 struct Definition< ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> > { 00367 static const char* value() 00368 { 00369 return "\n\ 00370 \n\ 00371 string return_response\n\ 00372 srs_object_database_msgs/img[] msg\n\ 00373 \n\ 00374 \n\ 00375 \n\ 00376 ================================================================================\n\ 00377 MSG: srs_object_database_msgs/img\n\ 00378 int32 objectId\n\ 00379 string description\n\ 00380 sensor_msgs/Image image\n\ 00381 ================================================================================\n\ 00382 MSG: sensor_msgs/Image\n\ 00383 # This message contains an uncompressed image\n\ 00384 # (0, 0) is at top-left corner of image\n\ 00385 #\n\ 00386 \n\ 00387 Header header # Header timestamp should be acquisition time of image\n\ 00388 # Header frame_id should be optical frame of camera\n\ 00389 # origin of frame should be optical center of cameara\n\ 00390 # +x should point to the right in the image\n\ 00391 # +y should point down in the image\n\ 00392 # +z should point into to plane of the image\n\ 00393 # If the frame_id here and the frame_id of the CameraInfo\n\ 00394 # message associated with the image conflict\n\ 00395 # the behavior is undefined\n\ 00396 \n\ 00397 uint32 height # image height, that is, number of rows\n\ 00398 uint32 width # image width, that is, number of columns\n\ 00399 \n\ 00400 # The legal values for encoding are in file src/image_encodings.cpp\n\ 00401 # If you want to standardize a new string format, join\n\ 00402 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\ 00403 \n\ 00404 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\ 00405 # taken from the list of strings in src/image_encodings.cpp\n\ 00406 \n\ 00407 uint8 is_bigendian # is this data bigendian?\n\ 00408 uint32 step # Full row length in bytes\n\ 00409 uint8[] data # actual matrix data, size is (step * rows)\n\ 00410 \n\ 00411 ================================================================================\n\ 00412 MSG: std_msgs/Header\n\ 00413 # Standard metadata for higher-level stamped data types.\n\ 00414 # This is generally used to communicate timestamped data \n\ 00415 # in a particular coordinate frame.\n\ 00416 # \n\ 00417 # sequence ID: consecutively increasing ID \n\ 00418 uint32 seq\n\ 00419 #Two-integer timestamp that is expressed as:\n\ 00420 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00421 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00422 # time-handling sugar is provided by the client library\n\ 00423 time stamp\n\ 00424 #Frame this data is associated with\n\ 00425 # 0: no frame\n\ 00426 # 1: global frame\n\ 00427 string frame_id\n\ 00428 \n\ 00429 "; 00430 } 00431 00432 static const char* value(const ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> &) { return value(); } 00433 }; 00434 00435 } // namespace message_traits 00436 } // namespace ros 00437 00438 namespace ros 00439 { 00440 namespace serialization 00441 { 00442 00443 template<class ContainerAllocator> struct Serializer< ::srs_object_database_msgs::GetImgRequest_<ContainerAllocator> > 00444 { 00445 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00446 { 00447 stream.next(m.model_ids); 00448 stream.next(m.type); 00449 } 00450 00451 ROS_DECLARE_ALLINONE_SERIALIZER; 00452 }; // struct GetImgRequest_ 00453 } // namespace serialization 00454 } // namespace ros 00455 00456 00457 namespace ros 00458 { 00459 namespace serialization 00460 { 00461 00462 template<class ContainerAllocator> struct Serializer< ::srs_object_database_msgs::GetImgResponse_<ContainerAllocator> > 00463 { 00464 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00465 { 00466 stream.next(m.return_response); 00467 stream.next(m.msg); 00468 } 00469 00470 ROS_DECLARE_ALLINONE_SERIALIZER; 00471 }; // struct GetImgResponse_ 00472 } // namespace serialization 00473 } // namespace ros 00474 00475 namespace ros 00476 { 00477 namespace service_traits 00478 { 00479 template<> 00480 struct MD5Sum<srs_object_database_msgs::GetImg> { 00481 static const char* value() 00482 { 00483 return "537c22f986e5f0ba96c82f56b48af61b"; 00484 } 00485 00486 static const char* value(const srs_object_database_msgs::GetImg&) { return value(); } 00487 }; 00488 00489 template<> 00490 struct DataType<srs_object_database_msgs::GetImg> { 00491 static const char* value() 00492 { 00493 return "srs_object_database_msgs/GetImg"; 00494 } 00495 00496 static const char* value(const srs_object_database_msgs::GetImg&) { return value(); } 00497 }; 00498 00499 template<class ContainerAllocator> 00500 struct MD5Sum<srs_object_database_msgs::GetImgRequest_<ContainerAllocator> > { 00501 static const char* value() 00502 { 00503 return "537c22f986e5f0ba96c82f56b48af61b"; 00504 } 00505 00506 static const char* value(const srs_object_database_msgs::GetImgRequest_<ContainerAllocator> &) { return value(); } 00507 }; 00508 00509 template<class ContainerAllocator> 00510 struct DataType<srs_object_database_msgs::GetImgRequest_<ContainerAllocator> > { 00511 static const char* value() 00512 { 00513 return "srs_object_database_msgs/GetImg"; 00514 } 00515 00516 static const char* value(const srs_object_database_msgs::GetImgRequest_<ContainerAllocator> &) { return value(); } 00517 }; 00518 00519 template<class ContainerAllocator> 00520 struct MD5Sum<srs_object_database_msgs::GetImgResponse_<ContainerAllocator> > { 00521 static const char* value() 00522 { 00523 return "537c22f986e5f0ba96c82f56b48af61b"; 00524 } 00525 00526 static const char* value(const srs_object_database_msgs::GetImgResponse_<ContainerAllocator> &) { return value(); } 00527 }; 00528 00529 template<class ContainerAllocator> 00530 struct DataType<srs_object_database_msgs::GetImgResponse_<ContainerAllocator> > { 00531 static const char* value() 00532 { 00533 return "srs_object_database_msgs/GetImg"; 00534 } 00535 00536 static const char* value(const srs_object_database_msgs::GetImgResponse_<ContainerAllocator> &) { return value(); } 00537 }; 00538 00539 } // namespace service_traits 00540 } // namespace ros 00541 00542 #endif // SRS_OBJECT_DATABASE_MSGS_SERVICE_GETIMG_H 00543