$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_grasping/srv/GetDBGrasps.srv */ 00002 #ifndef SRS_GRASPING_SERVICE_GETDBGRASPS_H 00003 #define SRS_GRASPING_SERVICE_GETDBGRASPS_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_msgs/DBGrasp.h" 00022 #include "srs_msgs/GraspingErrorCodes.h" 00023 00024 namespace srs_grasping 00025 { 00026 template <class ContainerAllocator> 00027 struct GetDBGraspsRequest_ { 00028 typedef GetDBGraspsRequest_<ContainerAllocator> Type; 00029 00030 GetDBGraspsRequest_() 00031 : object_id(0) 00032 { 00033 } 00034 00035 GetDBGraspsRequest_(const ContainerAllocator& _alloc) 00036 : object_id(0) 00037 { 00038 } 00039 00040 typedef int32_t _object_id_type; 00041 int32_t object_id; 00042 00043 00044 private: 00045 static const char* __s_getDataType_() { return "srs_grasping/GetDBGraspsRequest"; } 00046 public: 00047 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00048 00049 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00050 00051 private: 00052 static const char* __s_getMD5Sum_() { return "d6a7063359b15cbc8bac77de0a1cc2cb"; } 00053 public: 00054 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00055 00056 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00057 00058 private: 00059 static const char* __s_getServerMD5Sum_() { return "05192f3c2e8ac20ce03b65b2c74f6edc"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00062 00063 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00064 00065 private: 00066 static const char* __s_getMessageDefinition_() { return "int32 object_id\n\ 00067 \n\ 00068 "; } 00069 public: 00070 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00071 00072 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00073 00074 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00075 { 00076 ros::serialization::OStream stream(write_ptr, 1000000000); 00077 ros::serialization::serialize(stream, object_id); 00078 return stream.getData(); 00079 } 00080 00081 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00082 { 00083 ros::serialization::IStream stream(read_ptr, 1000000000); 00084 ros::serialization::deserialize(stream, object_id); 00085 return stream.getData(); 00086 } 00087 00088 ROS_DEPRECATED virtual uint32_t serializationLength() const 00089 { 00090 uint32_t size = 0; 00091 size += ros::serialization::serializationLength(object_id); 00092 return size; 00093 } 00094 00095 typedef boost::shared_ptr< ::srs_grasping::GetDBGraspsRequest_<ContainerAllocator> > Ptr; 00096 typedef boost::shared_ptr< ::srs_grasping::GetDBGraspsRequest_<ContainerAllocator> const> ConstPtr; 00097 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00098 }; // struct GetDBGraspsRequest 00099 typedef ::srs_grasping::GetDBGraspsRequest_<std::allocator<void> > GetDBGraspsRequest; 00100 00101 typedef boost::shared_ptr< ::srs_grasping::GetDBGraspsRequest> GetDBGraspsRequestPtr; 00102 typedef boost::shared_ptr< ::srs_grasping::GetDBGraspsRequest const> GetDBGraspsRequestConstPtr; 00103 00104 00105 template <class ContainerAllocator> 00106 struct GetDBGraspsResponse_ { 00107 typedef GetDBGraspsResponse_<ContainerAllocator> Type; 00108 00109 GetDBGraspsResponse_() 00110 : grasp_configuration() 00111 , error_code() 00112 { 00113 } 00114 00115 GetDBGraspsResponse_(const ContainerAllocator& _alloc) 00116 : grasp_configuration(_alloc) 00117 , error_code(_alloc) 00118 { 00119 } 00120 00121 typedef std::vector< ::srs_msgs::DBGrasp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_msgs::DBGrasp_<ContainerAllocator> >::other > _grasp_configuration_type; 00122 std::vector< ::srs_msgs::DBGrasp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_msgs::DBGrasp_<ContainerAllocator> >::other > grasp_configuration; 00123 00124 typedef ::srs_msgs::GraspingErrorCodes_<ContainerAllocator> _error_code_type; 00125 ::srs_msgs::GraspingErrorCodes_<ContainerAllocator> error_code; 00126 00127 00128 ROS_DEPRECATED uint32_t get_grasp_configuration_size() const { return (uint32_t)grasp_configuration.size(); } 00129 ROS_DEPRECATED void set_grasp_configuration_size(uint32_t size) { grasp_configuration.resize((size_t)size); } 00130 ROS_DEPRECATED void get_grasp_configuration_vec(std::vector< ::srs_msgs::DBGrasp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_msgs::DBGrasp_<ContainerAllocator> >::other > & vec) const { vec = this->grasp_configuration; } 00131 ROS_DEPRECATED void set_grasp_configuration_vec(const std::vector< ::srs_msgs::DBGrasp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_msgs::DBGrasp_<ContainerAllocator> >::other > & vec) { this->grasp_configuration = vec; } 00132 private: 00133 static const char* __s_getDataType_() { return "srs_grasping/GetDBGraspsResponse"; } 00134 public: 00135 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00136 00137 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00138 00139 private: 00140 static const char* __s_getMD5Sum_() { return "724fab534f45bd149d08d0add7703059"; } 00141 public: 00142 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00143 00144 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00145 00146 private: 00147 static const char* __s_getServerMD5Sum_() { return "05192f3c2e8ac20ce03b65b2c74f6edc"; } 00148 public: 00149 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00150 00151 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00152 00153 private: 00154 static const char* __s_getMessageDefinition_() { return "srs_msgs/DBGrasp[] grasp_configuration\n\ 00155 srs_msgs/GraspingErrorCodes error_code\n\ 00156 \n\ 00157 \n\ 00158 ================================================================================\n\ 00159 MSG: srs_msgs/DBGrasp\n\ 00160 int32 object_id\n\ 00161 string hand_type\n\ 00162 float64[] sdh_joint_values\n\ 00163 geometry_msgs/PoseStamped pre_grasp\n\ 00164 geometry_msgs/PoseStamped grasp\n\ 00165 string category\n\ 00166 \n\ 00167 ================================================================================\n\ 00168 MSG: geometry_msgs/PoseStamped\n\ 00169 # A Pose with reference coordinate frame and timestamp\n\ 00170 Header header\n\ 00171 Pose pose\n\ 00172 \n\ 00173 ================================================================================\n\ 00174 MSG: std_msgs/Header\n\ 00175 # Standard metadata for higher-level stamped data types.\n\ 00176 # This is generally used to communicate timestamped data \n\ 00177 # in a particular coordinate frame.\n\ 00178 # \n\ 00179 # sequence ID: consecutively increasing ID \n\ 00180 uint32 seq\n\ 00181 #Two-integer timestamp that is expressed as:\n\ 00182 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00183 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00184 # time-handling sugar is provided by the client library\n\ 00185 time stamp\n\ 00186 #Frame this data is associated with\n\ 00187 # 0: no frame\n\ 00188 # 1: global frame\n\ 00189 string frame_id\n\ 00190 \n\ 00191 ================================================================================\n\ 00192 MSG: geometry_msgs/Pose\n\ 00193 # A representation of pose in free space, composed of postion and orientation. \n\ 00194 Point position\n\ 00195 Quaternion orientation\n\ 00196 \n\ 00197 ================================================================================\n\ 00198 MSG: geometry_msgs/Point\n\ 00199 # This contains the position of a point in free space\n\ 00200 float64 x\n\ 00201 float64 y\n\ 00202 float64 z\n\ 00203 \n\ 00204 ================================================================================\n\ 00205 MSG: geometry_msgs/Quaternion\n\ 00206 # This represents an orientation in free space in quaternion form.\n\ 00207 \n\ 00208 float64 x\n\ 00209 float64 y\n\ 00210 float64 z\n\ 00211 float64 w\n\ 00212 \n\ 00213 ================================================================================\n\ 00214 MSG: srs_msgs/GraspingErrorCodes\n\ 00215 int32 val\n\ 00216 \n\ 00217 int32 SUCCESS=1\n\ 00218 int32 SERVICE_DID_NOT_PROCESS_REQUEST=-1\n\ 00219 int32 UNKNOWN_OBJECT=-2\n\ 00220 int32 CORRUPTED_MESH_FILE=-3\n\ 00221 int32 CORRUPTED_ROBOT_MESH_FILE=-4\n\ 00222 int32 CORRUPTED_GRASP_FILE=-5\n\ 00223 int32 NON_GENERATED_INFO=-6\n\ 00224 int32 OBJECT_INFO_NOT_FOUND=-7\n\ 00225 int32 UNKNOWN_CATEGORY=-8\n\ 00226 int32 GOAL_UNREACHABLE=-9\n\ 00227 \n\ 00228 "; } 00229 public: 00230 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00231 00232 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00233 00234 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00235 { 00236 ros::serialization::OStream stream(write_ptr, 1000000000); 00237 ros::serialization::serialize(stream, grasp_configuration); 00238 ros::serialization::serialize(stream, error_code); 00239 return stream.getData(); 00240 } 00241 00242 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00243 { 00244 ros::serialization::IStream stream(read_ptr, 1000000000); 00245 ros::serialization::deserialize(stream, grasp_configuration); 00246 ros::serialization::deserialize(stream, error_code); 00247 return stream.getData(); 00248 } 00249 00250 ROS_DEPRECATED virtual uint32_t serializationLength() const 00251 { 00252 uint32_t size = 0; 00253 size += ros::serialization::serializationLength(grasp_configuration); 00254 size += ros::serialization::serializationLength(error_code); 00255 return size; 00256 } 00257 00258 typedef boost::shared_ptr< ::srs_grasping::GetDBGraspsResponse_<ContainerAllocator> > Ptr; 00259 typedef boost::shared_ptr< ::srs_grasping::GetDBGraspsResponse_<ContainerAllocator> const> ConstPtr; 00260 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00261 }; // struct GetDBGraspsResponse 00262 typedef ::srs_grasping::GetDBGraspsResponse_<std::allocator<void> > GetDBGraspsResponse; 00263 00264 typedef boost::shared_ptr< ::srs_grasping::GetDBGraspsResponse> GetDBGraspsResponsePtr; 00265 typedef boost::shared_ptr< ::srs_grasping::GetDBGraspsResponse const> GetDBGraspsResponseConstPtr; 00266 00267 struct GetDBGrasps 00268 { 00269 00270 typedef GetDBGraspsRequest Request; 00271 typedef GetDBGraspsResponse Response; 00272 Request request; 00273 Response response; 00274 00275 typedef Request RequestType; 00276 typedef Response ResponseType; 00277 }; // struct GetDBGrasps 00278 } // namespace srs_grasping 00279 00280 namespace ros 00281 { 00282 namespace message_traits 00283 { 00284 template<class ContainerAllocator> struct IsMessage< ::srs_grasping::GetDBGraspsRequest_<ContainerAllocator> > : public TrueType {}; 00285 template<class ContainerAllocator> struct IsMessage< ::srs_grasping::GetDBGraspsRequest_<ContainerAllocator> const> : public TrueType {}; 00286 template<class ContainerAllocator> 00287 struct MD5Sum< ::srs_grasping::GetDBGraspsRequest_<ContainerAllocator> > { 00288 static const char* value() 00289 { 00290 return "d6a7063359b15cbc8bac77de0a1cc2cb"; 00291 } 00292 00293 static const char* value(const ::srs_grasping::GetDBGraspsRequest_<ContainerAllocator> &) { return value(); } 00294 static const uint64_t static_value1 = 0xd6a7063359b15cbcULL; 00295 static const uint64_t static_value2 = 0x8bac77de0a1cc2cbULL; 00296 }; 00297 00298 template<class ContainerAllocator> 00299 struct DataType< ::srs_grasping::GetDBGraspsRequest_<ContainerAllocator> > { 00300 static const char* value() 00301 { 00302 return "srs_grasping/GetDBGraspsRequest"; 00303 } 00304 00305 static const char* value(const ::srs_grasping::GetDBGraspsRequest_<ContainerAllocator> &) { return value(); } 00306 }; 00307 00308 template<class ContainerAllocator> 00309 struct Definition< ::srs_grasping::GetDBGraspsRequest_<ContainerAllocator> > { 00310 static const char* value() 00311 { 00312 return "int32 object_id\n\ 00313 \n\ 00314 "; 00315 } 00316 00317 static const char* value(const ::srs_grasping::GetDBGraspsRequest_<ContainerAllocator> &) { return value(); } 00318 }; 00319 00320 template<class ContainerAllocator> struct IsFixedSize< ::srs_grasping::GetDBGraspsRequest_<ContainerAllocator> > : public TrueType {}; 00321 } // namespace message_traits 00322 } // namespace ros 00323 00324 00325 namespace ros 00326 { 00327 namespace message_traits 00328 { 00329 template<class ContainerAllocator> struct IsMessage< ::srs_grasping::GetDBGraspsResponse_<ContainerAllocator> > : public TrueType {}; 00330 template<class ContainerAllocator> struct IsMessage< ::srs_grasping::GetDBGraspsResponse_<ContainerAllocator> const> : public TrueType {}; 00331 template<class ContainerAllocator> 00332 struct MD5Sum< ::srs_grasping::GetDBGraspsResponse_<ContainerAllocator> > { 00333 static const char* value() 00334 { 00335 return "724fab534f45bd149d08d0add7703059"; 00336 } 00337 00338 static const char* value(const ::srs_grasping::GetDBGraspsResponse_<ContainerAllocator> &) { return value(); } 00339 static const uint64_t static_value1 = 0x724fab534f45bd14ULL; 00340 static const uint64_t static_value2 = 0x9d08d0add7703059ULL; 00341 }; 00342 00343 template<class ContainerAllocator> 00344 struct DataType< ::srs_grasping::GetDBGraspsResponse_<ContainerAllocator> > { 00345 static const char* value() 00346 { 00347 return "srs_grasping/GetDBGraspsResponse"; 00348 } 00349 00350 static const char* value(const ::srs_grasping::GetDBGraspsResponse_<ContainerAllocator> &) { return value(); } 00351 }; 00352 00353 template<class ContainerAllocator> 00354 struct Definition< ::srs_grasping::GetDBGraspsResponse_<ContainerAllocator> > { 00355 static const char* value() 00356 { 00357 return "srs_msgs/DBGrasp[] grasp_configuration\n\ 00358 srs_msgs/GraspingErrorCodes error_code\n\ 00359 \n\ 00360 \n\ 00361 ================================================================================\n\ 00362 MSG: srs_msgs/DBGrasp\n\ 00363 int32 object_id\n\ 00364 string hand_type\n\ 00365 float64[] sdh_joint_values\n\ 00366 geometry_msgs/PoseStamped pre_grasp\n\ 00367 geometry_msgs/PoseStamped grasp\n\ 00368 string category\n\ 00369 \n\ 00370 ================================================================================\n\ 00371 MSG: geometry_msgs/PoseStamped\n\ 00372 # A Pose with reference coordinate frame and timestamp\n\ 00373 Header header\n\ 00374 Pose pose\n\ 00375 \n\ 00376 ================================================================================\n\ 00377 MSG: std_msgs/Header\n\ 00378 # Standard metadata for higher-level stamped data types.\n\ 00379 # This is generally used to communicate timestamped data \n\ 00380 # in a particular coordinate frame.\n\ 00381 # \n\ 00382 # sequence ID: consecutively increasing ID \n\ 00383 uint32 seq\n\ 00384 #Two-integer timestamp that is expressed as:\n\ 00385 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00386 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00387 # time-handling sugar is provided by the client library\n\ 00388 time stamp\n\ 00389 #Frame this data is associated with\n\ 00390 # 0: no frame\n\ 00391 # 1: global frame\n\ 00392 string frame_id\n\ 00393 \n\ 00394 ================================================================================\n\ 00395 MSG: geometry_msgs/Pose\n\ 00396 # A representation of pose in free space, composed of postion and orientation. \n\ 00397 Point position\n\ 00398 Quaternion orientation\n\ 00399 \n\ 00400 ================================================================================\n\ 00401 MSG: geometry_msgs/Point\n\ 00402 # This contains the position of a point in free space\n\ 00403 float64 x\n\ 00404 float64 y\n\ 00405 float64 z\n\ 00406 \n\ 00407 ================================================================================\n\ 00408 MSG: geometry_msgs/Quaternion\n\ 00409 # This represents an orientation in free space in quaternion form.\n\ 00410 \n\ 00411 float64 x\n\ 00412 float64 y\n\ 00413 float64 z\n\ 00414 float64 w\n\ 00415 \n\ 00416 ================================================================================\n\ 00417 MSG: srs_msgs/GraspingErrorCodes\n\ 00418 int32 val\n\ 00419 \n\ 00420 int32 SUCCESS=1\n\ 00421 int32 SERVICE_DID_NOT_PROCESS_REQUEST=-1\n\ 00422 int32 UNKNOWN_OBJECT=-2\n\ 00423 int32 CORRUPTED_MESH_FILE=-3\n\ 00424 int32 CORRUPTED_ROBOT_MESH_FILE=-4\n\ 00425 int32 CORRUPTED_GRASP_FILE=-5\n\ 00426 int32 NON_GENERATED_INFO=-6\n\ 00427 int32 OBJECT_INFO_NOT_FOUND=-7\n\ 00428 int32 UNKNOWN_CATEGORY=-8\n\ 00429 int32 GOAL_UNREACHABLE=-9\n\ 00430 \n\ 00431 "; 00432 } 00433 00434 static const char* value(const ::srs_grasping::GetDBGraspsResponse_<ContainerAllocator> &) { return value(); } 00435 }; 00436 00437 } // namespace message_traits 00438 } // namespace ros 00439 00440 namespace ros 00441 { 00442 namespace serialization 00443 { 00444 00445 template<class ContainerAllocator> struct Serializer< ::srs_grasping::GetDBGraspsRequest_<ContainerAllocator> > 00446 { 00447 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00448 { 00449 stream.next(m.object_id); 00450 } 00451 00452 ROS_DECLARE_ALLINONE_SERIALIZER; 00453 }; // struct GetDBGraspsRequest_ 00454 } // namespace serialization 00455 } // namespace ros 00456 00457 00458 namespace ros 00459 { 00460 namespace serialization 00461 { 00462 00463 template<class ContainerAllocator> struct Serializer< ::srs_grasping::GetDBGraspsResponse_<ContainerAllocator> > 00464 { 00465 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00466 { 00467 stream.next(m.grasp_configuration); 00468 stream.next(m.error_code); 00469 } 00470 00471 ROS_DECLARE_ALLINONE_SERIALIZER; 00472 }; // struct GetDBGraspsResponse_ 00473 } // namespace serialization 00474 } // namespace ros 00475 00476 namespace ros 00477 { 00478 namespace service_traits 00479 { 00480 template<> 00481 struct MD5Sum<srs_grasping::GetDBGrasps> { 00482 static const char* value() 00483 { 00484 return "05192f3c2e8ac20ce03b65b2c74f6edc"; 00485 } 00486 00487 static const char* value(const srs_grasping::GetDBGrasps&) { return value(); } 00488 }; 00489 00490 template<> 00491 struct DataType<srs_grasping::GetDBGrasps> { 00492 static const char* value() 00493 { 00494 return "srs_grasping/GetDBGrasps"; 00495 } 00496 00497 static const char* value(const srs_grasping::GetDBGrasps&) { return value(); } 00498 }; 00499 00500 template<class ContainerAllocator> 00501 struct MD5Sum<srs_grasping::GetDBGraspsRequest_<ContainerAllocator> > { 00502 static const char* value() 00503 { 00504 return "05192f3c2e8ac20ce03b65b2c74f6edc"; 00505 } 00506 00507 static const char* value(const srs_grasping::GetDBGraspsRequest_<ContainerAllocator> &) { return value(); } 00508 }; 00509 00510 template<class ContainerAllocator> 00511 struct DataType<srs_grasping::GetDBGraspsRequest_<ContainerAllocator> > { 00512 static const char* value() 00513 { 00514 return "srs_grasping/GetDBGrasps"; 00515 } 00516 00517 static const char* value(const srs_grasping::GetDBGraspsRequest_<ContainerAllocator> &) { return value(); } 00518 }; 00519 00520 template<class ContainerAllocator> 00521 struct MD5Sum<srs_grasping::GetDBGraspsResponse_<ContainerAllocator> > { 00522 static const char* value() 00523 { 00524 return "05192f3c2e8ac20ce03b65b2c74f6edc"; 00525 } 00526 00527 static const char* value(const srs_grasping::GetDBGraspsResponse_<ContainerAllocator> &) { return value(); } 00528 }; 00529 00530 template<class ContainerAllocator> 00531 struct DataType<srs_grasping::GetDBGraspsResponse_<ContainerAllocator> > { 00532 static const char* value() 00533 { 00534 return "srs_grasping/GetDBGrasps"; 00535 } 00536 00537 static const char* value(const srs_grasping::GetDBGraspsResponse_<ContainerAllocator> &) { return value(); } 00538 }; 00539 00540 } // namespace service_traits 00541 } // namespace ros 00542 00543 #endif // SRS_GRASPING_SERVICE_GETDBGRASPS_H 00544