$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_object_manipulation/doc_stacks/2013-03-05_12-10-38.333207/pr2_object_manipulation/manipulation/pr2_gripper_grasp_planner_cluster/srv/SetPointClusterGraspParams.srv */ 00002 #ifndef PR2_GRIPPER_GRASP_PLANNER_CLUSTER_SERVICE_SETPOINTCLUSTERGRASPPARAMS_H 00003 #define PR2_GRIPPER_GRASP_PLANNER_CLUSTER_SERVICE_SETPOINTCLUSTERGRASPPARAMS_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 00022 namespace pr2_gripper_grasp_planner_cluster 00023 { 00024 template <class ContainerAllocator> 00025 struct SetPointClusterGraspParamsRequest_ { 00026 typedef SetPointClusterGraspParamsRequest_<ContainerAllocator> Type; 00027 00028 SetPointClusterGraspParamsRequest_() 00029 : height_good_for_side_grasps(0.0) 00030 , gripper_opening(0.0) 00031 , side_step(0.0) 00032 , palm_step(0.0) 00033 , overhead_grasps_only(false) 00034 , side_grasps_only(false) 00035 , include_high_point_grasps(false) 00036 , pregrasp_just_outside_box(false) 00037 , backoff_depth_steps(0) 00038 , disable_grasp_neighbor_check(false) 00039 , randomize_grasps(false) 00040 { 00041 } 00042 00043 SetPointClusterGraspParamsRequest_(const ContainerAllocator& _alloc) 00044 : height_good_for_side_grasps(0.0) 00045 , gripper_opening(0.0) 00046 , side_step(0.0) 00047 , palm_step(0.0) 00048 , overhead_grasps_only(false) 00049 , side_grasps_only(false) 00050 , include_high_point_grasps(false) 00051 , pregrasp_just_outside_box(false) 00052 , backoff_depth_steps(0) 00053 , disable_grasp_neighbor_check(false) 00054 , randomize_grasps(false) 00055 { 00056 } 00057 00058 typedef double _height_good_for_side_grasps_type; 00059 double height_good_for_side_grasps; 00060 00061 typedef double _gripper_opening_type; 00062 double gripper_opening; 00063 00064 typedef double _side_step_type; 00065 double side_step; 00066 00067 typedef double _palm_step_type; 00068 double palm_step; 00069 00070 typedef uint8_t _overhead_grasps_only_type; 00071 uint8_t overhead_grasps_only; 00072 00073 typedef uint8_t _side_grasps_only_type; 00074 uint8_t side_grasps_only; 00075 00076 typedef uint8_t _include_high_point_grasps_type; 00077 uint8_t include_high_point_grasps; 00078 00079 typedef uint8_t _pregrasp_just_outside_box_type; 00080 uint8_t pregrasp_just_outside_box; 00081 00082 typedef int32_t _backoff_depth_steps_type; 00083 int32_t backoff_depth_steps; 00084 00085 typedef uint8_t _disable_grasp_neighbor_check_type; 00086 uint8_t disable_grasp_neighbor_check; 00087 00088 typedef uint8_t _randomize_grasps_type; 00089 uint8_t randomize_grasps; 00090 00091 00092 private: 00093 static const char* __s_getDataType_() { return "pr2_gripper_grasp_planner_cluster/SetPointClusterGraspParamsRequest"; } 00094 public: 00095 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00096 00097 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00098 00099 private: 00100 static const char* __s_getMD5Sum_() { return "176c495282fca5febd8468900b9ef915"; } 00101 public: 00102 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00103 00104 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00105 00106 private: 00107 static const char* __s_getServerMD5Sum_() { return "176c495282fca5febd8468900b9ef915"; } 00108 public: 00109 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00110 00111 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00112 00113 private: 00114 static const char* __s_getMessageDefinition_() { return "\n\ 00115 float64 height_good_for_side_grasps\n\ 00116 \n\ 00117 \n\ 00118 float64 gripper_opening\n\ 00119 \n\ 00120 \n\ 00121 float64 side_step\n\ 00122 \n\ 00123 \n\ 00124 float64 palm_step\n\ 00125 \n\ 00126 \n\ 00127 bool overhead_grasps_only\n\ 00128 \n\ 00129 \n\ 00130 bool side_grasps_only\n\ 00131 \n\ 00132 \n\ 00133 bool include_high_point_grasps\n\ 00134 \n\ 00135 \n\ 00136 bool pregrasp_just_outside_box\n\ 00137 \n\ 00138 \n\ 00139 int32 backoff_depth_steps\n\ 00140 \n\ 00141 \n\ 00142 bool disable_grasp_neighbor_check\n\ 00143 \n\ 00144 \n\ 00145 bool randomize_grasps\n\ 00146 \n\ 00147 \n\ 00148 "; } 00149 public: 00150 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00151 00152 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00153 00154 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00155 { 00156 ros::serialization::OStream stream(write_ptr, 1000000000); 00157 ros::serialization::serialize(stream, height_good_for_side_grasps); 00158 ros::serialization::serialize(stream, gripper_opening); 00159 ros::serialization::serialize(stream, side_step); 00160 ros::serialization::serialize(stream, palm_step); 00161 ros::serialization::serialize(stream, overhead_grasps_only); 00162 ros::serialization::serialize(stream, side_grasps_only); 00163 ros::serialization::serialize(stream, include_high_point_grasps); 00164 ros::serialization::serialize(stream, pregrasp_just_outside_box); 00165 ros::serialization::serialize(stream, backoff_depth_steps); 00166 ros::serialization::serialize(stream, disable_grasp_neighbor_check); 00167 ros::serialization::serialize(stream, randomize_grasps); 00168 return stream.getData(); 00169 } 00170 00171 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00172 { 00173 ros::serialization::IStream stream(read_ptr, 1000000000); 00174 ros::serialization::deserialize(stream, height_good_for_side_grasps); 00175 ros::serialization::deserialize(stream, gripper_opening); 00176 ros::serialization::deserialize(stream, side_step); 00177 ros::serialization::deserialize(stream, palm_step); 00178 ros::serialization::deserialize(stream, overhead_grasps_only); 00179 ros::serialization::deserialize(stream, side_grasps_only); 00180 ros::serialization::deserialize(stream, include_high_point_grasps); 00181 ros::serialization::deserialize(stream, pregrasp_just_outside_box); 00182 ros::serialization::deserialize(stream, backoff_depth_steps); 00183 ros::serialization::deserialize(stream, disable_grasp_neighbor_check); 00184 ros::serialization::deserialize(stream, randomize_grasps); 00185 return stream.getData(); 00186 } 00187 00188 ROS_DEPRECATED virtual uint32_t serializationLength() const 00189 { 00190 uint32_t size = 0; 00191 size += ros::serialization::serializationLength(height_good_for_side_grasps); 00192 size += ros::serialization::serializationLength(gripper_opening); 00193 size += ros::serialization::serializationLength(side_step); 00194 size += ros::serialization::serializationLength(palm_step); 00195 size += ros::serialization::serializationLength(overhead_grasps_only); 00196 size += ros::serialization::serializationLength(side_grasps_only); 00197 size += ros::serialization::serializationLength(include_high_point_grasps); 00198 size += ros::serialization::serializationLength(pregrasp_just_outside_box); 00199 size += ros::serialization::serializationLength(backoff_depth_steps); 00200 size += ros::serialization::serializationLength(disable_grasp_neighbor_check); 00201 size += ros::serialization::serializationLength(randomize_grasps); 00202 return size; 00203 } 00204 00205 typedef boost::shared_ptr< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> > Ptr; 00206 typedef boost::shared_ptr< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> const> ConstPtr; 00207 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00208 }; // struct SetPointClusterGraspParamsRequest 00209 typedef ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<std::allocator<void> > SetPointClusterGraspParamsRequest; 00210 00211 typedef boost::shared_ptr< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest> SetPointClusterGraspParamsRequestPtr; 00212 typedef boost::shared_ptr< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest const> SetPointClusterGraspParamsRequestConstPtr; 00213 00214 00215 template <class ContainerAllocator> 00216 struct SetPointClusterGraspParamsResponse_ { 00217 typedef SetPointClusterGraspParamsResponse_<ContainerAllocator> Type; 00218 00219 SetPointClusterGraspParamsResponse_() 00220 { 00221 } 00222 00223 SetPointClusterGraspParamsResponse_(const ContainerAllocator& _alloc) 00224 { 00225 } 00226 00227 00228 private: 00229 static const char* __s_getDataType_() { return "pr2_gripper_grasp_planner_cluster/SetPointClusterGraspParamsResponse"; } 00230 public: 00231 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00232 00233 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00234 00235 private: 00236 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; } 00237 public: 00238 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00239 00240 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00241 00242 private: 00243 static const char* __s_getServerMD5Sum_() { return "176c495282fca5febd8468900b9ef915"; } 00244 public: 00245 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00246 00247 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00248 00249 private: 00250 static const char* __s_getMessageDefinition_() { return "\n\ 00251 "; } 00252 public: 00253 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00254 00255 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00256 00257 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00258 { 00259 ros::serialization::OStream stream(write_ptr, 1000000000); 00260 return stream.getData(); 00261 } 00262 00263 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00264 { 00265 ros::serialization::IStream stream(read_ptr, 1000000000); 00266 return stream.getData(); 00267 } 00268 00269 ROS_DEPRECATED virtual uint32_t serializationLength() const 00270 { 00271 uint32_t size = 0; 00272 return size; 00273 } 00274 00275 typedef boost::shared_ptr< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> > Ptr; 00276 typedef boost::shared_ptr< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> const> ConstPtr; 00277 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00278 }; // struct SetPointClusterGraspParamsResponse 00279 typedef ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<std::allocator<void> > SetPointClusterGraspParamsResponse; 00280 00281 typedef boost::shared_ptr< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse> SetPointClusterGraspParamsResponsePtr; 00282 typedef boost::shared_ptr< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse const> SetPointClusterGraspParamsResponseConstPtr; 00283 00284 struct SetPointClusterGraspParams 00285 { 00286 00287 typedef SetPointClusterGraspParamsRequest Request; 00288 typedef SetPointClusterGraspParamsResponse Response; 00289 Request request; 00290 Response response; 00291 00292 typedef Request RequestType; 00293 typedef Response ResponseType; 00294 }; // struct SetPointClusterGraspParams 00295 } // namespace pr2_gripper_grasp_planner_cluster 00296 00297 namespace ros 00298 { 00299 namespace message_traits 00300 { 00301 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> > : public TrueType {}; 00302 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> const> : public TrueType {}; 00303 template<class ContainerAllocator> 00304 struct MD5Sum< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> > { 00305 static const char* value() 00306 { 00307 return "176c495282fca5febd8468900b9ef915"; 00308 } 00309 00310 static const char* value(const ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> &) { return value(); } 00311 static const uint64_t static_value1 = 0x176c495282fca5feULL; 00312 static const uint64_t static_value2 = 0xbd8468900b9ef915ULL; 00313 }; 00314 00315 template<class ContainerAllocator> 00316 struct DataType< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> > { 00317 static const char* value() 00318 { 00319 return "pr2_gripper_grasp_planner_cluster/SetPointClusterGraspParamsRequest"; 00320 } 00321 00322 static const char* value(const ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> &) { return value(); } 00323 }; 00324 00325 template<class ContainerAllocator> 00326 struct Definition< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> > { 00327 static const char* value() 00328 { 00329 return "\n\ 00330 float64 height_good_for_side_grasps\n\ 00331 \n\ 00332 \n\ 00333 float64 gripper_opening\n\ 00334 \n\ 00335 \n\ 00336 float64 side_step\n\ 00337 \n\ 00338 \n\ 00339 float64 palm_step\n\ 00340 \n\ 00341 \n\ 00342 bool overhead_grasps_only\n\ 00343 \n\ 00344 \n\ 00345 bool side_grasps_only\n\ 00346 \n\ 00347 \n\ 00348 bool include_high_point_grasps\n\ 00349 \n\ 00350 \n\ 00351 bool pregrasp_just_outside_box\n\ 00352 \n\ 00353 \n\ 00354 int32 backoff_depth_steps\n\ 00355 \n\ 00356 \n\ 00357 bool disable_grasp_neighbor_check\n\ 00358 \n\ 00359 \n\ 00360 bool randomize_grasps\n\ 00361 \n\ 00362 \n\ 00363 "; 00364 } 00365 00366 static const char* value(const ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> &) { return value(); } 00367 }; 00368 00369 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> > : public TrueType {}; 00370 } // namespace message_traits 00371 } // namespace ros 00372 00373 00374 namespace ros 00375 { 00376 namespace message_traits 00377 { 00378 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> > : public TrueType {}; 00379 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> const> : public TrueType {}; 00380 template<class ContainerAllocator> 00381 struct MD5Sum< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> > { 00382 static const char* value() 00383 { 00384 return "d41d8cd98f00b204e9800998ecf8427e"; 00385 } 00386 00387 static const char* value(const ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> &) { return value(); } 00388 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL; 00389 static const uint64_t static_value2 = 0xe9800998ecf8427eULL; 00390 }; 00391 00392 template<class ContainerAllocator> 00393 struct DataType< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> > { 00394 static const char* value() 00395 { 00396 return "pr2_gripper_grasp_planner_cluster/SetPointClusterGraspParamsResponse"; 00397 } 00398 00399 static const char* value(const ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> &) { return value(); } 00400 }; 00401 00402 template<class ContainerAllocator> 00403 struct Definition< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> > { 00404 static const char* value() 00405 { 00406 return "\n\ 00407 "; 00408 } 00409 00410 static const char* value(const ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> &) { return value(); } 00411 }; 00412 00413 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> > : public TrueType {}; 00414 } // namespace message_traits 00415 } // namespace ros 00416 00417 namespace ros 00418 { 00419 namespace serialization 00420 { 00421 00422 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> > 00423 { 00424 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00425 { 00426 stream.next(m.height_good_for_side_grasps); 00427 stream.next(m.gripper_opening); 00428 stream.next(m.side_step); 00429 stream.next(m.palm_step); 00430 stream.next(m.overhead_grasps_only); 00431 stream.next(m.side_grasps_only); 00432 stream.next(m.include_high_point_grasps); 00433 stream.next(m.pregrasp_just_outside_box); 00434 stream.next(m.backoff_depth_steps); 00435 stream.next(m.disable_grasp_neighbor_check); 00436 stream.next(m.randomize_grasps); 00437 } 00438 00439 ROS_DECLARE_ALLINONE_SERIALIZER; 00440 }; // struct SetPointClusterGraspParamsRequest_ 00441 } // namespace serialization 00442 } // namespace ros 00443 00444 00445 namespace ros 00446 { 00447 namespace serialization 00448 { 00449 00450 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> > 00451 { 00452 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00453 { 00454 } 00455 00456 ROS_DECLARE_ALLINONE_SERIALIZER; 00457 }; // struct SetPointClusterGraspParamsResponse_ 00458 } // namespace serialization 00459 } // namespace ros 00460 00461 namespace ros 00462 { 00463 namespace service_traits 00464 { 00465 template<> 00466 struct MD5Sum<pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParams> { 00467 static const char* value() 00468 { 00469 return "176c495282fca5febd8468900b9ef915"; 00470 } 00471 00472 static const char* value(const pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParams&) { return value(); } 00473 }; 00474 00475 template<> 00476 struct DataType<pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParams> { 00477 static const char* value() 00478 { 00479 return "pr2_gripper_grasp_planner_cluster/SetPointClusterGraspParams"; 00480 } 00481 00482 static const char* value(const pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParams&) { return value(); } 00483 }; 00484 00485 template<class ContainerAllocator> 00486 struct MD5Sum<pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> > { 00487 static const char* value() 00488 { 00489 return "176c495282fca5febd8468900b9ef915"; 00490 } 00491 00492 static const char* value(const pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> &) { return value(); } 00493 }; 00494 00495 template<class ContainerAllocator> 00496 struct DataType<pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> > { 00497 static const char* value() 00498 { 00499 return "pr2_gripper_grasp_planner_cluster/SetPointClusterGraspParams"; 00500 } 00501 00502 static const char* value(const pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> &) { return value(); } 00503 }; 00504 00505 template<class ContainerAllocator> 00506 struct MD5Sum<pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> > { 00507 static const char* value() 00508 { 00509 return "176c495282fca5febd8468900b9ef915"; 00510 } 00511 00512 static const char* value(const pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> &) { return value(); } 00513 }; 00514 00515 template<class ContainerAllocator> 00516 struct DataType<pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> > { 00517 static const char* value() 00518 { 00519 return "pr2_gripper_grasp_planner_cluster/SetPointClusterGraspParams"; 00520 } 00521 00522 static const char* value(const pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> &) { return value(); } 00523 }; 00524 00525 } // namespace service_traits 00526 } // namespace ros 00527 00528 #endif // PR2_GRIPPER_GRASP_PLANNER_CLUSTER_SERVICE_SETPOINTCLUSTERGRASPPARAMS_H 00529