$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/GetGrasp.srv */ 00002 #ifndef SRS_OBJECT_DATABASE_MSGS_SERVICE_GETGRASP_H 00003 #define SRS_OBJECT_DATABASE_MSGS_SERVICE_GETGRASP_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/grasp.h" 00022 00023 namespace srs_object_database_msgs 00024 { 00025 template <class ContainerAllocator> 00026 struct GetGraspRequest_ { 00027 typedef GetGraspRequest_<ContainerAllocator> Type; 00028 00029 GetGraspRequest_() 00030 : model_ids() 00031 { 00032 } 00033 00034 GetGraspRequest_(const ContainerAllocator& _alloc) 00035 : model_ids(_alloc) 00036 { 00037 } 00038 00039 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _model_ids_type; 00040 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > model_ids; 00041 00042 00043 ROS_DEPRECATED uint32_t get_model_ids_size() const { return (uint32_t)model_ids.size(); } 00044 ROS_DEPRECATED void set_model_ids_size(uint32_t size) { model_ids.resize((size_t)size); } 00045 ROS_DEPRECATED void get_model_ids_vec(std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) const { vec = this->model_ids; } 00046 ROS_DEPRECATED void set_model_ids_vec(const std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > & vec) { this->model_ids = vec; } 00047 private: 00048 static const char* __s_getDataType_() { return "srs_object_database_msgs/GetGraspRequest"; } 00049 public: 00050 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00051 00052 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00053 00054 private: 00055 static const char* __s_getMD5Sum_() { return "80afe6caba30c992d2e7ff6ff0e0d51e"; } 00056 public: 00057 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00058 00059 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00060 00061 private: 00062 static const char* __s_getServerMD5Sum_() { return "c0202fe21a6c8d396a99038df29693dc"; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00065 00066 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00067 00068 private: 00069 static const char* __s_getMessageDefinition_() { return "\n\ 00070 \n\ 00071 \n\ 00072 \n\ 00073 int32[] model_ids\n\ 00074 \n\ 00075 \n\ 00076 "; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00079 00080 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00081 00082 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00083 { 00084 ros::serialization::OStream stream(write_ptr, 1000000000); 00085 ros::serialization::serialize(stream, model_ids); 00086 return stream.getData(); 00087 } 00088 00089 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00090 { 00091 ros::serialization::IStream stream(read_ptr, 1000000000); 00092 ros::serialization::deserialize(stream, model_ids); 00093 return stream.getData(); 00094 } 00095 00096 ROS_DEPRECATED virtual uint32_t serializationLength() const 00097 { 00098 uint32_t size = 0; 00099 size += ros::serialization::serializationLength(model_ids); 00100 return size; 00101 } 00102 00103 typedef boost::shared_ptr< ::srs_object_database_msgs::GetGraspRequest_<ContainerAllocator> > Ptr; 00104 typedef boost::shared_ptr< ::srs_object_database_msgs::GetGraspRequest_<ContainerAllocator> const> ConstPtr; 00105 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00106 }; // struct GetGraspRequest 00107 typedef ::srs_object_database_msgs::GetGraspRequest_<std::allocator<void> > GetGraspRequest; 00108 00109 typedef boost::shared_ptr< ::srs_object_database_msgs::GetGraspRequest> GetGraspRequestPtr; 00110 typedef boost::shared_ptr< ::srs_object_database_msgs::GetGraspRequest const> GetGraspRequestConstPtr; 00111 00112 00113 template <class ContainerAllocator> 00114 struct GetGraspResponse_ { 00115 typedef GetGraspResponse_<ContainerAllocator> Type; 00116 00117 GetGraspResponse_() 00118 : return_response() 00119 , msg() 00120 { 00121 } 00122 00123 GetGraspResponse_(const ContainerAllocator& _alloc) 00124 : return_response(_alloc) 00125 , msg(_alloc) 00126 { 00127 } 00128 00129 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _return_response_type; 00130 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > return_response; 00131 00132 typedef std::vector< ::srs_object_database_msgs::grasp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_object_database_msgs::grasp_<ContainerAllocator> >::other > _msg_type; 00133 std::vector< ::srs_object_database_msgs::grasp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_object_database_msgs::grasp_<ContainerAllocator> >::other > msg; 00134 00135 00136 ROS_DEPRECATED uint32_t get_msg_size() const { return (uint32_t)msg.size(); } 00137 ROS_DEPRECATED void set_msg_size(uint32_t size) { msg.resize((size_t)size); } 00138 ROS_DEPRECATED void get_msg_vec(std::vector< ::srs_object_database_msgs::grasp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_object_database_msgs::grasp_<ContainerAllocator> >::other > & vec) const { vec = this->msg; } 00139 ROS_DEPRECATED void set_msg_vec(const std::vector< ::srs_object_database_msgs::grasp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_object_database_msgs::grasp_<ContainerAllocator> >::other > & vec) { this->msg = vec; } 00140 private: 00141 static const char* __s_getDataType_() { return "srs_object_database_msgs/GetGraspResponse"; } 00142 public: 00143 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00144 00145 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00146 00147 private: 00148 static const char* __s_getMD5Sum_() { return "ceb53febd9683791f1b348a4d33610eb"; } 00149 public: 00150 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00151 00152 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00153 00154 private: 00155 static const char* __s_getServerMD5Sum_() { return "c0202fe21a6c8d396a99038df29693dc"; } 00156 public: 00157 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00158 00159 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00160 00161 private: 00162 static const char* __s_getMessageDefinition_() { return "\n\ 00163 \n\ 00164 string return_response\n\ 00165 \n\ 00166 srs_object_database_msgs/grasp[] msg\n\ 00167 \n\ 00168 \n\ 00169 \n\ 00170 \n\ 00171 ================================================================================\n\ 00172 MSG: srs_object_database_msgs/grasp\n\ 00173 int32 objectId\n\ 00174 string Objecttype\n\ 00175 string pose\n\ 00176 string fileDescription\n\ 00177 uint8[] bs\n\ 00178 int32 size\n\ 00179 \n\ 00180 "; } 00181 public: 00182 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00183 00184 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00185 00186 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00187 { 00188 ros::serialization::OStream stream(write_ptr, 1000000000); 00189 ros::serialization::serialize(stream, return_response); 00190 ros::serialization::serialize(stream, msg); 00191 return stream.getData(); 00192 } 00193 00194 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00195 { 00196 ros::serialization::IStream stream(read_ptr, 1000000000); 00197 ros::serialization::deserialize(stream, return_response); 00198 ros::serialization::deserialize(stream, msg); 00199 return stream.getData(); 00200 } 00201 00202 ROS_DEPRECATED virtual uint32_t serializationLength() const 00203 { 00204 uint32_t size = 0; 00205 size += ros::serialization::serializationLength(return_response); 00206 size += ros::serialization::serializationLength(msg); 00207 return size; 00208 } 00209 00210 typedef boost::shared_ptr< ::srs_object_database_msgs::GetGraspResponse_<ContainerAllocator> > Ptr; 00211 typedef boost::shared_ptr< ::srs_object_database_msgs::GetGraspResponse_<ContainerAllocator> const> ConstPtr; 00212 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00213 }; // struct GetGraspResponse 00214 typedef ::srs_object_database_msgs::GetGraspResponse_<std::allocator<void> > GetGraspResponse; 00215 00216 typedef boost::shared_ptr< ::srs_object_database_msgs::GetGraspResponse> GetGraspResponsePtr; 00217 typedef boost::shared_ptr< ::srs_object_database_msgs::GetGraspResponse const> GetGraspResponseConstPtr; 00218 00219 struct GetGrasp 00220 { 00221 00222 typedef GetGraspRequest Request; 00223 typedef GetGraspResponse Response; 00224 Request request; 00225 Response response; 00226 00227 typedef Request RequestType; 00228 typedef Response ResponseType; 00229 }; // struct GetGrasp 00230 } // namespace srs_object_database_msgs 00231 00232 namespace ros 00233 { 00234 namespace message_traits 00235 { 00236 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetGraspRequest_<ContainerAllocator> > : public TrueType {}; 00237 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetGraspRequest_<ContainerAllocator> const> : public TrueType {}; 00238 template<class ContainerAllocator> 00239 struct MD5Sum< ::srs_object_database_msgs::GetGraspRequest_<ContainerAllocator> > { 00240 static const char* value() 00241 { 00242 return "80afe6caba30c992d2e7ff6ff0e0d51e"; 00243 } 00244 00245 static const char* value(const ::srs_object_database_msgs::GetGraspRequest_<ContainerAllocator> &) { return value(); } 00246 static const uint64_t static_value1 = 0x80afe6caba30c992ULL; 00247 static const uint64_t static_value2 = 0xd2e7ff6ff0e0d51eULL; 00248 }; 00249 00250 template<class ContainerAllocator> 00251 struct DataType< ::srs_object_database_msgs::GetGraspRequest_<ContainerAllocator> > { 00252 static const char* value() 00253 { 00254 return "srs_object_database_msgs/GetGraspRequest"; 00255 } 00256 00257 static const char* value(const ::srs_object_database_msgs::GetGraspRequest_<ContainerAllocator> &) { return value(); } 00258 }; 00259 00260 template<class ContainerAllocator> 00261 struct Definition< ::srs_object_database_msgs::GetGraspRequest_<ContainerAllocator> > { 00262 static const char* value() 00263 { 00264 return "\n\ 00265 \n\ 00266 \n\ 00267 \n\ 00268 int32[] model_ids\n\ 00269 \n\ 00270 \n\ 00271 "; 00272 } 00273 00274 static const char* value(const ::srs_object_database_msgs::GetGraspRequest_<ContainerAllocator> &) { return value(); } 00275 }; 00276 00277 } // namespace message_traits 00278 } // namespace ros 00279 00280 00281 namespace ros 00282 { 00283 namespace message_traits 00284 { 00285 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetGraspResponse_<ContainerAllocator> > : public TrueType {}; 00286 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::GetGraspResponse_<ContainerAllocator> const> : public TrueType {}; 00287 template<class ContainerAllocator> 00288 struct MD5Sum< ::srs_object_database_msgs::GetGraspResponse_<ContainerAllocator> > { 00289 static const char* value() 00290 { 00291 return "ceb53febd9683791f1b348a4d33610eb"; 00292 } 00293 00294 static const char* value(const ::srs_object_database_msgs::GetGraspResponse_<ContainerAllocator> &) { return value(); } 00295 static const uint64_t static_value1 = 0xceb53febd9683791ULL; 00296 static const uint64_t static_value2 = 0xf1b348a4d33610ebULL; 00297 }; 00298 00299 template<class ContainerAllocator> 00300 struct DataType< ::srs_object_database_msgs::GetGraspResponse_<ContainerAllocator> > { 00301 static const char* value() 00302 { 00303 return "srs_object_database_msgs/GetGraspResponse"; 00304 } 00305 00306 static const char* value(const ::srs_object_database_msgs::GetGraspResponse_<ContainerAllocator> &) { return value(); } 00307 }; 00308 00309 template<class ContainerAllocator> 00310 struct Definition< ::srs_object_database_msgs::GetGraspResponse_<ContainerAllocator> > { 00311 static const char* value() 00312 { 00313 return "\n\ 00314 \n\ 00315 string return_response\n\ 00316 \n\ 00317 srs_object_database_msgs/grasp[] msg\n\ 00318 \n\ 00319 \n\ 00320 \n\ 00321 \n\ 00322 ================================================================================\n\ 00323 MSG: srs_object_database_msgs/grasp\n\ 00324 int32 objectId\n\ 00325 string Objecttype\n\ 00326 string pose\n\ 00327 string fileDescription\n\ 00328 uint8[] bs\n\ 00329 int32 size\n\ 00330 \n\ 00331 "; 00332 } 00333 00334 static const char* value(const ::srs_object_database_msgs::GetGraspResponse_<ContainerAllocator> &) { return value(); } 00335 }; 00336 00337 } // namespace message_traits 00338 } // namespace ros 00339 00340 namespace ros 00341 { 00342 namespace serialization 00343 { 00344 00345 template<class ContainerAllocator> struct Serializer< ::srs_object_database_msgs::GetGraspRequest_<ContainerAllocator> > 00346 { 00347 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00348 { 00349 stream.next(m.model_ids); 00350 } 00351 00352 ROS_DECLARE_ALLINONE_SERIALIZER; 00353 }; // struct GetGraspRequest_ 00354 } // namespace serialization 00355 } // namespace ros 00356 00357 00358 namespace ros 00359 { 00360 namespace serialization 00361 { 00362 00363 template<class ContainerAllocator> struct Serializer< ::srs_object_database_msgs::GetGraspResponse_<ContainerAllocator> > 00364 { 00365 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00366 { 00367 stream.next(m.return_response); 00368 stream.next(m.msg); 00369 } 00370 00371 ROS_DECLARE_ALLINONE_SERIALIZER; 00372 }; // struct GetGraspResponse_ 00373 } // namespace serialization 00374 } // namespace ros 00375 00376 namespace ros 00377 { 00378 namespace service_traits 00379 { 00380 template<> 00381 struct MD5Sum<srs_object_database_msgs::GetGrasp> { 00382 static const char* value() 00383 { 00384 return "c0202fe21a6c8d396a99038df29693dc"; 00385 } 00386 00387 static const char* value(const srs_object_database_msgs::GetGrasp&) { return value(); } 00388 }; 00389 00390 template<> 00391 struct DataType<srs_object_database_msgs::GetGrasp> { 00392 static const char* value() 00393 { 00394 return "srs_object_database_msgs/GetGrasp"; 00395 } 00396 00397 static const char* value(const srs_object_database_msgs::GetGrasp&) { return value(); } 00398 }; 00399 00400 template<class ContainerAllocator> 00401 struct MD5Sum<srs_object_database_msgs::GetGraspRequest_<ContainerAllocator> > { 00402 static const char* value() 00403 { 00404 return "c0202fe21a6c8d396a99038df29693dc"; 00405 } 00406 00407 static const char* value(const srs_object_database_msgs::GetGraspRequest_<ContainerAllocator> &) { return value(); } 00408 }; 00409 00410 template<class ContainerAllocator> 00411 struct DataType<srs_object_database_msgs::GetGraspRequest_<ContainerAllocator> > { 00412 static const char* value() 00413 { 00414 return "srs_object_database_msgs/GetGrasp"; 00415 } 00416 00417 static const char* value(const srs_object_database_msgs::GetGraspRequest_<ContainerAllocator> &) { return value(); } 00418 }; 00419 00420 template<class ContainerAllocator> 00421 struct MD5Sum<srs_object_database_msgs::GetGraspResponse_<ContainerAllocator> > { 00422 static const char* value() 00423 { 00424 return "c0202fe21a6c8d396a99038df29693dc"; 00425 } 00426 00427 static const char* value(const srs_object_database_msgs::GetGraspResponse_<ContainerAllocator> &) { return value(); } 00428 }; 00429 00430 template<class ContainerAllocator> 00431 struct DataType<srs_object_database_msgs::GetGraspResponse_<ContainerAllocator> > { 00432 static const char* value() 00433 { 00434 return "srs_object_database_msgs/GetGrasp"; 00435 } 00436 00437 static const char* value(const srs_object_database_msgs::GetGraspResponse_<ContainerAllocator> &) { return value(); } 00438 }; 00439 00440 } // namespace service_traits 00441 } // namespace ros 00442 00443 #endif // SRS_OBJECT_DATABASE_MSGS_SERVICE_GETGRASP_H 00444