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