$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-ias_common/doc_stacks/2013-03-01_15-41-55.252100/ias_common/vision_srvs/srv/clip_polygon.srv */ 00002 #ifndef VISION_SRVS_SERVICE_CLIP_POLYGON_H 00003 #define VISION_SRVS_SERVICE_CLIP_POLYGON_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 #include "geometry_msgs/Polygon.h" 00020 #include "geometry_msgs/Polygon.h" 00021 00022 00023 #include "geometry_msgs/Polygon.h" 00024 00025 namespace vision_srvs 00026 { 00027 template <class ContainerAllocator> 00028 struct clip_polygonRequest_ { 00029 typedef clip_polygonRequest_<ContainerAllocator> Type; 00030 00031 clip_polygonRequest_() 00032 : operation(0) 00033 , poly1() 00034 , poly2() 00035 { 00036 } 00037 00038 clip_polygonRequest_(const ContainerAllocator& _alloc) 00039 : operation(0) 00040 , poly1(_alloc) 00041 , poly2(_alloc) 00042 { 00043 } 00044 00045 typedef uint32_t _operation_type; 00046 uint32_t operation; 00047 00048 typedef ::geometry_msgs::Polygon_<ContainerAllocator> _poly1_type; 00049 ::geometry_msgs::Polygon_<ContainerAllocator> poly1; 00050 00051 typedef ::geometry_msgs::Polygon_<ContainerAllocator> _poly2_type; 00052 ::geometry_msgs::Polygon_<ContainerAllocator> poly2; 00053 00054 enum { UNION = 0 }; 00055 enum { INTERSECTION = 1 }; 00056 00057 private: 00058 static const char* __s_getDataType_() { return "vision_srvs/clip_polygonRequest"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00061 00062 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00063 00064 private: 00065 static const char* __s_getMD5Sum_() { return "90ec19340207537b530d3a37f5d3aaff"; } 00066 public: 00067 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00068 00069 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00070 00071 private: 00072 static const char* __s_getServerMD5Sum_() { return "833de208811dbf84e2b0e6af79d60331"; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00075 00076 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00077 00078 private: 00079 static const char* __s_getMessageDefinition_() { return "uint32 UNION = 0\n\ 00080 uint32 INTERSECTION = 1\n\ 00081 uint32 operation\n\ 00082 geometry_msgs/Polygon poly1\n\ 00083 geometry_msgs/Polygon poly2\n\ 00084 \n\ 00085 ================================================================================\n\ 00086 MSG: geometry_msgs/Polygon\n\ 00087 #A specification of a polygon where the first and last points are assumed to be connected\n\ 00088 geometry_msgs/Point32[] points\n\ 00089 \n\ 00090 ================================================================================\n\ 00091 MSG: geometry_msgs/Point32\n\ 00092 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00093 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00094 # \n\ 00095 # This recommendation is to promote interoperability. \n\ 00096 #\n\ 00097 # This message is designed to take up less space when sending\n\ 00098 # lots of points at once, as in the case of a PointCloud. \n\ 00099 \n\ 00100 float32 x\n\ 00101 float32 y\n\ 00102 float32 z\n\ 00103 "; } 00104 public: 00105 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00106 00107 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00108 00109 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00110 { 00111 ros::serialization::OStream stream(write_ptr, 1000000000); 00112 ros::serialization::serialize(stream, operation); 00113 ros::serialization::serialize(stream, poly1); 00114 ros::serialization::serialize(stream, poly2); 00115 return stream.getData(); 00116 } 00117 00118 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00119 { 00120 ros::serialization::IStream stream(read_ptr, 1000000000); 00121 ros::serialization::deserialize(stream, operation); 00122 ros::serialization::deserialize(stream, poly1); 00123 ros::serialization::deserialize(stream, poly2); 00124 return stream.getData(); 00125 } 00126 00127 ROS_DEPRECATED virtual uint32_t serializationLength() const 00128 { 00129 uint32_t size = 0; 00130 size += ros::serialization::serializationLength(operation); 00131 size += ros::serialization::serializationLength(poly1); 00132 size += ros::serialization::serializationLength(poly2); 00133 return size; 00134 } 00135 00136 typedef boost::shared_ptr< ::vision_srvs::clip_polygonRequest_<ContainerAllocator> > Ptr; 00137 typedef boost::shared_ptr< ::vision_srvs::clip_polygonRequest_<ContainerAllocator> const> ConstPtr; 00138 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00139 }; // struct clip_polygonRequest 00140 typedef ::vision_srvs::clip_polygonRequest_<std::allocator<void> > clip_polygonRequest; 00141 00142 typedef boost::shared_ptr< ::vision_srvs::clip_polygonRequest> clip_polygonRequestPtr; 00143 typedef boost::shared_ptr< ::vision_srvs::clip_polygonRequest const> clip_polygonRequestConstPtr; 00144 00145 00146 template <class ContainerAllocator> 00147 struct clip_polygonResponse_ { 00148 typedef clip_polygonResponse_<ContainerAllocator> Type; 00149 00150 clip_polygonResponse_() 00151 : poly_clip() 00152 { 00153 } 00154 00155 clip_polygonResponse_(const ContainerAllocator& _alloc) 00156 : poly_clip(_alloc) 00157 { 00158 } 00159 00160 typedef ::geometry_msgs::Polygon_<ContainerAllocator> _poly_clip_type; 00161 ::geometry_msgs::Polygon_<ContainerAllocator> poly_clip; 00162 00163 00164 private: 00165 static const char* __s_getDataType_() { return "vision_srvs/clip_polygonResponse"; } 00166 public: 00167 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00168 00169 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00170 00171 private: 00172 static const char* __s_getMD5Sum_() { return "8ac99714bd719c813589b0f74ded28d5"; } 00173 public: 00174 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00175 00176 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00177 00178 private: 00179 static const char* __s_getServerMD5Sum_() { return "833de208811dbf84e2b0e6af79d60331"; } 00180 public: 00181 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00182 00183 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00184 00185 private: 00186 static const char* __s_getMessageDefinition_() { return "geometry_msgs/Polygon poly_clip\n\ 00187 \n\ 00188 \n\ 00189 ================================================================================\n\ 00190 MSG: geometry_msgs/Polygon\n\ 00191 #A specification of a polygon where the first and last points are assumed to be connected\n\ 00192 geometry_msgs/Point32[] points\n\ 00193 \n\ 00194 ================================================================================\n\ 00195 MSG: geometry_msgs/Point32\n\ 00196 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00197 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00198 # \n\ 00199 # This recommendation is to promote interoperability. \n\ 00200 #\n\ 00201 # This message is designed to take up less space when sending\n\ 00202 # lots of points at once, as in the case of a PointCloud. \n\ 00203 \n\ 00204 float32 x\n\ 00205 float32 y\n\ 00206 float32 z\n\ 00207 "; } 00208 public: 00209 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00210 00211 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00212 00213 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00214 { 00215 ros::serialization::OStream stream(write_ptr, 1000000000); 00216 ros::serialization::serialize(stream, poly_clip); 00217 return stream.getData(); 00218 } 00219 00220 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00221 { 00222 ros::serialization::IStream stream(read_ptr, 1000000000); 00223 ros::serialization::deserialize(stream, poly_clip); 00224 return stream.getData(); 00225 } 00226 00227 ROS_DEPRECATED virtual uint32_t serializationLength() const 00228 { 00229 uint32_t size = 0; 00230 size += ros::serialization::serializationLength(poly_clip); 00231 return size; 00232 } 00233 00234 typedef boost::shared_ptr< ::vision_srvs::clip_polygonResponse_<ContainerAllocator> > Ptr; 00235 typedef boost::shared_ptr< ::vision_srvs::clip_polygonResponse_<ContainerAllocator> const> ConstPtr; 00236 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00237 }; // struct clip_polygonResponse 00238 typedef ::vision_srvs::clip_polygonResponse_<std::allocator<void> > clip_polygonResponse; 00239 00240 typedef boost::shared_ptr< ::vision_srvs::clip_polygonResponse> clip_polygonResponsePtr; 00241 typedef boost::shared_ptr< ::vision_srvs::clip_polygonResponse const> clip_polygonResponseConstPtr; 00242 00243 struct clip_polygon 00244 { 00245 00246 typedef clip_polygonRequest Request; 00247 typedef clip_polygonResponse Response; 00248 Request request; 00249 Response response; 00250 00251 typedef Request RequestType; 00252 typedef Response ResponseType; 00253 }; // struct clip_polygon 00254 } // namespace vision_srvs 00255 00256 namespace ros 00257 { 00258 namespace message_traits 00259 { 00260 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::clip_polygonRequest_<ContainerAllocator> > : public TrueType {}; 00261 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::clip_polygonRequest_<ContainerAllocator> const> : public TrueType {}; 00262 template<class ContainerAllocator> 00263 struct MD5Sum< ::vision_srvs::clip_polygonRequest_<ContainerAllocator> > { 00264 static const char* value() 00265 { 00266 return "90ec19340207537b530d3a37f5d3aaff"; 00267 } 00268 00269 static const char* value(const ::vision_srvs::clip_polygonRequest_<ContainerAllocator> &) { return value(); } 00270 static const uint64_t static_value1 = 0x90ec19340207537bULL; 00271 static const uint64_t static_value2 = 0x530d3a37f5d3aaffULL; 00272 }; 00273 00274 template<class ContainerAllocator> 00275 struct DataType< ::vision_srvs::clip_polygonRequest_<ContainerAllocator> > { 00276 static const char* value() 00277 { 00278 return "vision_srvs/clip_polygonRequest"; 00279 } 00280 00281 static const char* value(const ::vision_srvs::clip_polygonRequest_<ContainerAllocator> &) { return value(); } 00282 }; 00283 00284 template<class ContainerAllocator> 00285 struct Definition< ::vision_srvs::clip_polygonRequest_<ContainerAllocator> > { 00286 static const char* value() 00287 { 00288 return "uint32 UNION = 0\n\ 00289 uint32 INTERSECTION = 1\n\ 00290 uint32 operation\n\ 00291 geometry_msgs/Polygon poly1\n\ 00292 geometry_msgs/Polygon poly2\n\ 00293 \n\ 00294 ================================================================================\n\ 00295 MSG: geometry_msgs/Polygon\n\ 00296 #A specification of a polygon where the first and last points are assumed to be connected\n\ 00297 geometry_msgs/Point32[] points\n\ 00298 \n\ 00299 ================================================================================\n\ 00300 MSG: geometry_msgs/Point32\n\ 00301 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00302 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00303 # \n\ 00304 # This recommendation is to promote interoperability. \n\ 00305 #\n\ 00306 # This message is designed to take up less space when sending\n\ 00307 # lots of points at once, as in the case of a PointCloud. \n\ 00308 \n\ 00309 float32 x\n\ 00310 float32 y\n\ 00311 float32 z\n\ 00312 "; 00313 } 00314 00315 static const char* value(const ::vision_srvs::clip_polygonRequest_<ContainerAllocator> &) { return value(); } 00316 }; 00317 00318 } // namespace message_traits 00319 } // namespace ros 00320 00321 00322 namespace ros 00323 { 00324 namespace message_traits 00325 { 00326 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::clip_polygonResponse_<ContainerAllocator> > : public TrueType {}; 00327 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::clip_polygonResponse_<ContainerAllocator> const> : public TrueType {}; 00328 template<class ContainerAllocator> 00329 struct MD5Sum< ::vision_srvs::clip_polygonResponse_<ContainerAllocator> > { 00330 static const char* value() 00331 { 00332 return "8ac99714bd719c813589b0f74ded28d5"; 00333 } 00334 00335 static const char* value(const ::vision_srvs::clip_polygonResponse_<ContainerAllocator> &) { return value(); } 00336 static const uint64_t static_value1 = 0x8ac99714bd719c81ULL; 00337 static const uint64_t static_value2 = 0x3589b0f74ded28d5ULL; 00338 }; 00339 00340 template<class ContainerAllocator> 00341 struct DataType< ::vision_srvs::clip_polygonResponse_<ContainerAllocator> > { 00342 static const char* value() 00343 { 00344 return "vision_srvs/clip_polygonResponse"; 00345 } 00346 00347 static const char* value(const ::vision_srvs::clip_polygonResponse_<ContainerAllocator> &) { return value(); } 00348 }; 00349 00350 template<class ContainerAllocator> 00351 struct Definition< ::vision_srvs::clip_polygonResponse_<ContainerAllocator> > { 00352 static const char* value() 00353 { 00354 return "geometry_msgs/Polygon poly_clip\n\ 00355 \n\ 00356 \n\ 00357 ================================================================================\n\ 00358 MSG: geometry_msgs/Polygon\n\ 00359 #A specification of a polygon where the first and last points are assumed to be connected\n\ 00360 geometry_msgs/Point32[] points\n\ 00361 \n\ 00362 ================================================================================\n\ 00363 MSG: geometry_msgs/Point32\n\ 00364 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00365 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00366 # \n\ 00367 # This recommendation is to promote interoperability. \n\ 00368 #\n\ 00369 # This message is designed to take up less space when sending\n\ 00370 # lots of points at once, as in the case of a PointCloud. \n\ 00371 \n\ 00372 float32 x\n\ 00373 float32 y\n\ 00374 float32 z\n\ 00375 "; 00376 } 00377 00378 static const char* value(const ::vision_srvs::clip_polygonResponse_<ContainerAllocator> &) { return value(); } 00379 }; 00380 00381 } // namespace message_traits 00382 } // namespace ros 00383 00384 namespace ros 00385 { 00386 namespace serialization 00387 { 00388 00389 template<class ContainerAllocator> struct Serializer< ::vision_srvs::clip_polygonRequest_<ContainerAllocator> > 00390 { 00391 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00392 { 00393 stream.next(m.operation); 00394 stream.next(m.poly1); 00395 stream.next(m.poly2); 00396 } 00397 00398 ROS_DECLARE_ALLINONE_SERIALIZER; 00399 }; // struct clip_polygonRequest_ 00400 } // namespace serialization 00401 } // namespace ros 00402 00403 00404 namespace ros 00405 { 00406 namespace serialization 00407 { 00408 00409 template<class ContainerAllocator> struct Serializer< ::vision_srvs::clip_polygonResponse_<ContainerAllocator> > 00410 { 00411 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00412 { 00413 stream.next(m.poly_clip); 00414 } 00415 00416 ROS_DECLARE_ALLINONE_SERIALIZER; 00417 }; // struct clip_polygonResponse_ 00418 } // namespace serialization 00419 } // namespace ros 00420 00421 namespace ros 00422 { 00423 namespace service_traits 00424 { 00425 template<> 00426 struct MD5Sum<vision_srvs::clip_polygon> { 00427 static const char* value() 00428 { 00429 return "833de208811dbf84e2b0e6af79d60331"; 00430 } 00431 00432 static const char* value(const vision_srvs::clip_polygon&) { return value(); } 00433 }; 00434 00435 template<> 00436 struct DataType<vision_srvs::clip_polygon> { 00437 static const char* value() 00438 { 00439 return "vision_srvs/clip_polygon"; 00440 } 00441 00442 static const char* value(const vision_srvs::clip_polygon&) { return value(); } 00443 }; 00444 00445 template<class ContainerAllocator> 00446 struct MD5Sum<vision_srvs::clip_polygonRequest_<ContainerAllocator> > { 00447 static const char* value() 00448 { 00449 return "833de208811dbf84e2b0e6af79d60331"; 00450 } 00451 00452 static const char* value(const vision_srvs::clip_polygonRequest_<ContainerAllocator> &) { return value(); } 00453 }; 00454 00455 template<class ContainerAllocator> 00456 struct DataType<vision_srvs::clip_polygonRequest_<ContainerAllocator> > { 00457 static const char* value() 00458 { 00459 return "vision_srvs/clip_polygon"; 00460 } 00461 00462 static const char* value(const vision_srvs::clip_polygonRequest_<ContainerAllocator> &) { return value(); } 00463 }; 00464 00465 template<class ContainerAllocator> 00466 struct MD5Sum<vision_srvs::clip_polygonResponse_<ContainerAllocator> > { 00467 static const char* value() 00468 { 00469 return "833de208811dbf84e2b0e6af79d60331"; 00470 } 00471 00472 static const char* value(const vision_srvs::clip_polygonResponse_<ContainerAllocator> &) { return value(); } 00473 }; 00474 00475 template<class ContainerAllocator> 00476 struct DataType<vision_srvs::clip_polygonResponse_<ContainerAllocator> > { 00477 static const char* value() 00478 { 00479 return "vision_srvs/clip_polygon"; 00480 } 00481 00482 static const char* value(const vision_srvs::clip_polygonResponse_<ContainerAllocator> &) { return value(); } 00483 }; 00484 00485 } // namespace service_traits 00486 } // namespace ros 00487 00488 #endif // VISION_SRVS_SERVICE_CLIP_POLYGON_H 00489