Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> > Ptr;
00093 typedef boost::shared_ptr< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> const> ConstPtr;
00094 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00095 };
00096 typedef ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<std::allocator<void> > SetPointClusterGraspParamsRequest;
00097
00098 typedef boost::shared_ptr< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest> SetPointClusterGraspParamsRequestPtr;
00099 typedef boost::shared_ptr< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest const> SetPointClusterGraspParamsRequestConstPtr;
00100
00101
00102 template <class ContainerAllocator>
00103 struct SetPointClusterGraspParamsResponse_ {
00104 typedef SetPointClusterGraspParamsResponse_<ContainerAllocator> Type;
00105
00106 SetPointClusterGraspParamsResponse_()
00107 {
00108 }
00109
00110 SetPointClusterGraspParamsResponse_(const ContainerAllocator& _alloc)
00111 {
00112 }
00113
00114
00115 typedef boost::shared_ptr< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> > Ptr;
00116 typedef boost::shared_ptr< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> const> ConstPtr;
00117 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00118 };
00119 typedef ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<std::allocator<void> > SetPointClusterGraspParamsResponse;
00120
00121 typedef boost::shared_ptr< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse> SetPointClusterGraspParamsResponsePtr;
00122 typedef boost::shared_ptr< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse const> SetPointClusterGraspParamsResponseConstPtr;
00123
00124 struct SetPointClusterGraspParams
00125 {
00126
00127 typedef SetPointClusterGraspParamsRequest Request;
00128 typedef SetPointClusterGraspParamsResponse Response;
00129 Request request;
00130 Response response;
00131
00132 typedef Request RequestType;
00133 typedef Response ResponseType;
00134 };
00135 }
00136
00137 namespace ros
00138 {
00139 namespace message_traits
00140 {
00141 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> > : public TrueType {};
00142 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> const> : public TrueType {};
00143 template<class ContainerAllocator>
00144 struct MD5Sum< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> > {
00145 static const char* value()
00146 {
00147 return "176c495282fca5febd8468900b9ef915";
00148 }
00149
00150 static const char* value(const ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> &) { return value(); }
00151 static const uint64_t static_value1 = 0x176c495282fca5feULL;
00152 static const uint64_t static_value2 = 0xbd8468900b9ef915ULL;
00153 };
00154
00155 template<class ContainerAllocator>
00156 struct DataType< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> > {
00157 static const char* value()
00158 {
00159 return "pr2_gripper_grasp_planner_cluster/SetPointClusterGraspParamsRequest";
00160 }
00161
00162 static const char* value(const ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> &) { return value(); }
00163 };
00164
00165 template<class ContainerAllocator>
00166 struct Definition< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> > {
00167 static const char* value()
00168 {
00169 return "\n\
00170 float64 height_good_for_side_grasps\n\
00171 \n\
00172 \n\
00173 float64 gripper_opening\n\
00174 \n\
00175 \n\
00176 float64 side_step\n\
00177 \n\
00178 \n\
00179 float64 palm_step\n\
00180 \n\
00181 \n\
00182 bool overhead_grasps_only\n\
00183 \n\
00184 \n\
00185 bool side_grasps_only\n\
00186 \n\
00187 \n\
00188 bool include_high_point_grasps\n\
00189 \n\
00190 \n\
00191 bool pregrasp_just_outside_box\n\
00192 \n\
00193 \n\
00194 int32 backoff_depth_steps\n\
00195 \n\
00196 \n\
00197 bool disable_grasp_neighbor_check\n\
00198 \n\
00199 \n\
00200 bool randomize_grasps\n\
00201 \n\
00202 \n\
00203 ";
00204 }
00205
00206 static const char* value(const ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> &) { return value(); }
00207 };
00208
00209 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> > : public TrueType {};
00210 }
00211 }
00212
00213
00214 namespace ros
00215 {
00216 namespace message_traits
00217 {
00218 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> > : public TrueType {};
00219 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> const> : public TrueType {};
00220 template<class ContainerAllocator>
00221 struct MD5Sum< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> > {
00222 static const char* value()
00223 {
00224 return "d41d8cd98f00b204e9800998ecf8427e";
00225 }
00226
00227 static const char* value(const ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> &) { return value(); }
00228 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00229 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00230 };
00231
00232 template<class ContainerAllocator>
00233 struct DataType< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> > {
00234 static const char* value()
00235 {
00236 return "pr2_gripper_grasp_planner_cluster/SetPointClusterGraspParamsResponse";
00237 }
00238
00239 static const char* value(const ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> &) { return value(); }
00240 };
00241
00242 template<class ContainerAllocator>
00243 struct Definition< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> > {
00244 static const char* value()
00245 {
00246 return "\n\
00247 ";
00248 }
00249
00250 static const char* value(const ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> &) { return value(); }
00251 };
00252
00253 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> > : public TrueType {};
00254 }
00255 }
00256
00257 namespace ros
00258 {
00259 namespace serialization
00260 {
00261
00262 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> >
00263 {
00264 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00265 {
00266 stream.next(m.height_good_for_side_grasps);
00267 stream.next(m.gripper_opening);
00268 stream.next(m.side_step);
00269 stream.next(m.palm_step);
00270 stream.next(m.overhead_grasps_only);
00271 stream.next(m.side_grasps_only);
00272 stream.next(m.include_high_point_grasps);
00273 stream.next(m.pregrasp_just_outside_box);
00274 stream.next(m.backoff_depth_steps);
00275 stream.next(m.disable_grasp_neighbor_check);
00276 stream.next(m.randomize_grasps);
00277 }
00278
00279 ROS_DECLARE_ALLINONE_SERIALIZER;
00280 };
00281 }
00282 }
00283
00284
00285 namespace ros
00286 {
00287 namespace serialization
00288 {
00289
00290 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> >
00291 {
00292 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00293 {
00294 }
00295
00296 ROS_DECLARE_ALLINONE_SERIALIZER;
00297 };
00298 }
00299 }
00300
00301 namespace ros
00302 {
00303 namespace service_traits
00304 {
00305 template<>
00306 struct MD5Sum<pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParams> {
00307 static const char* value()
00308 {
00309 return "176c495282fca5febd8468900b9ef915";
00310 }
00311
00312 static const char* value(const pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParams&) { return value(); }
00313 };
00314
00315 template<>
00316 struct DataType<pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParams> {
00317 static const char* value()
00318 {
00319 return "pr2_gripper_grasp_planner_cluster/SetPointClusterGraspParams";
00320 }
00321
00322 static const char* value(const pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParams&) { return value(); }
00323 };
00324
00325 template<class ContainerAllocator>
00326 struct MD5Sum<pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> > {
00327 static const char* value()
00328 {
00329 return "176c495282fca5febd8468900b9ef915";
00330 }
00331
00332 static const char* value(const pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> &) { return value(); }
00333 };
00334
00335 template<class ContainerAllocator>
00336 struct DataType<pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> > {
00337 static const char* value()
00338 {
00339 return "pr2_gripper_grasp_planner_cluster/SetPointClusterGraspParams";
00340 }
00341
00342 static const char* value(const pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsRequest_<ContainerAllocator> &) { return value(); }
00343 };
00344
00345 template<class ContainerAllocator>
00346 struct MD5Sum<pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> > {
00347 static const char* value()
00348 {
00349 return "176c495282fca5febd8468900b9ef915";
00350 }
00351
00352 static const char* value(const pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> &) { return value(); }
00353 };
00354
00355 template<class ContainerAllocator>
00356 struct DataType<pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> > {
00357 static const char* value()
00358 {
00359 return "pr2_gripper_grasp_planner_cluster/SetPointClusterGraspParams";
00360 }
00361
00362 static const char* value(const pr2_gripper_grasp_planner_cluster::SetPointClusterGraspParamsResponse_<ContainerAllocator> &) { return value(); }
00363 };
00364
00365 }
00366 }
00367
00368 #endif // PR2_GRIPPER_GRASP_PLANNER_CLUSTER_SERVICE_SETPOINTCLUSTERGRASPPARAMS_H
00369