$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/cop_get_object_shape.srv */ 00002 #ifndef VISION_SRVS_SERVICE_COP_GET_OBJECT_SHAPE_H 00003 #define VISION_SRVS_SERVICE_COP_GET_OBJECT_SHAPE_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 "arm_navigation_msgs/Shape.h" 00022 00023 namespace vision_srvs 00024 { 00025 template <class ContainerAllocator> 00026 struct cop_get_object_shapeRequest_ { 00027 typedef cop_get_object_shapeRequest_<ContainerAllocator> Type; 00028 00029 cop_get_object_shapeRequest_() 00030 : object_id(0) 00031 { 00032 } 00033 00034 cop_get_object_shapeRequest_(const ContainerAllocator& _alloc) 00035 : object_id(0) 00036 { 00037 } 00038 00039 typedef uint64_t _object_id_type; 00040 uint64_t object_id; 00041 00042 00043 private: 00044 static const char* __s_getDataType_() { return "vision_srvs/cop_get_object_shapeRequest"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "039cdc2e4e021929b349f87d86d0ea70"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getServerMD5Sum_() { return "132d121b47840325dd1e8dd0ce3c372d"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00061 00062 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00063 00064 private: 00065 static const char* __s_getMessageDefinition_() { return "\n\ 00066 \n\ 00067 uint64 object_id\n\ 00068 \n\ 00069 "; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00072 00073 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00074 00075 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00076 { 00077 ros::serialization::OStream stream(write_ptr, 1000000000); 00078 ros::serialization::serialize(stream, object_id); 00079 return stream.getData(); 00080 } 00081 00082 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00083 { 00084 ros::serialization::IStream stream(read_ptr, 1000000000); 00085 ros::serialization::deserialize(stream, object_id); 00086 return stream.getData(); 00087 } 00088 00089 ROS_DEPRECATED virtual uint32_t serializationLength() const 00090 { 00091 uint32_t size = 0; 00092 size += ros::serialization::serializationLength(object_id); 00093 return size; 00094 } 00095 00096 typedef boost::shared_ptr< ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> > Ptr; 00097 typedef boost::shared_ptr< ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> const> ConstPtr; 00098 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00099 }; // struct cop_get_object_shapeRequest 00100 typedef ::vision_srvs::cop_get_object_shapeRequest_<std::allocator<void> > cop_get_object_shapeRequest; 00101 00102 typedef boost::shared_ptr< ::vision_srvs::cop_get_object_shapeRequest> cop_get_object_shapeRequestPtr; 00103 typedef boost::shared_ptr< ::vision_srvs::cop_get_object_shapeRequest const> cop_get_object_shapeRequestConstPtr; 00104 00105 00106 template <class ContainerAllocator> 00107 struct cop_get_object_shapeResponse_ { 00108 typedef cop_get_object_shapeResponse_<ContainerAllocator> Type; 00109 00110 cop_get_object_shapeResponse_() 00111 : shape() 00112 { 00113 } 00114 00115 cop_get_object_shapeResponse_(const ContainerAllocator& _alloc) 00116 : shape(_alloc) 00117 { 00118 } 00119 00120 typedef ::arm_navigation_msgs::Shape_<ContainerAllocator> _shape_type; 00121 ::arm_navigation_msgs::Shape_<ContainerAllocator> shape; 00122 00123 00124 private: 00125 static const char* __s_getDataType_() { return "vision_srvs/cop_get_object_shapeResponse"; } 00126 public: 00127 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00128 00129 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00130 00131 private: 00132 static const char* __s_getMD5Sum_() { return "54b403d09f468fc327f67c2993792640"; } 00133 public: 00134 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00135 00136 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00137 00138 private: 00139 static const char* __s_getServerMD5Sum_() { return "132d121b47840325dd1e8dd0ce3c372d"; } 00140 public: 00141 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00142 00143 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00144 00145 private: 00146 static const char* __s_getMessageDefinition_() { return "arm_navigation_msgs/Shape shape\n\ 00147 \n\ 00148 \n\ 00149 ================================================================================\n\ 00150 MSG: arm_navigation_msgs/Shape\n\ 00151 byte SPHERE=0\n\ 00152 byte BOX=1\n\ 00153 byte CYLINDER=2\n\ 00154 byte MESH=3\n\ 00155 \n\ 00156 byte type\n\ 00157 \n\ 00158 \n\ 00159 #### define sphere, box, cylinder ####\n\ 00160 # the origin of each shape is considered at the shape's center\n\ 00161 \n\ 00162 # for sphere\n\ 00163 # radius := dimensions[0]\n\ 00164 \n\ 00165 # for cylinder\n\ 00166 # radius := dimensions[0]\n\ 00167 # length := dimensions[1]\n\ 00168 # the length is along the Z axis\n\ 00169 \n\ 00170 # for box\n\ 00171 # size_x := dimensions[0]\n\ 00172 # size_y := dimensions[1]\n\ 00173 # size_z := dimensions[2]\n\ 00174 float64[] dimensions\n\ 00175 \n\ 00176 \n\ 00177 #### define mesh ####\n\ 00178 \n\ 00179 # list of triangles; triangle k is defined by tre vertices located\n\ 00180 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\ 00181 int32[] triangles\n\ 00182 geometry_msgs/Point[] vertices\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 "; } 00192 public: 00193 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00194 00195 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00196 00197 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00198 { 00199 ros::serialization::OStream stream(write_ptr, 1000000000); 00200 ros::serialization::serialize(stream, shape); 00201 return stream.getData(); 00202 } 00203 00204 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00205 { 00206 ros::serialization::IStream stream(read_ptr, 1000000000); 00207 ros::serialization::deserialize(stream, shape); 00208 return stream.getData(); 00209 } 00210 00211 ROS_DEPRECATED virtual uint32_t serializationLength() const 00212 { 00213 uint32_t size = 0; 00214 size += ros::serialization::serializationLength(shape); 00215 return size; 00216 } 00217 00218 typedef boost::shared_ptr< ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> > Ptr; 00219 typedef boost::shared_ptr< ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> const> ConstPtr; 00220 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00221 }; // struct cop_get_object_shapeResponse 00222 typedef ::vision_srvs::cop_get_object_shapeResponse_<std::allocator<void> > cop_get_object_shapeResponse; 00223 00224 typedef boost::shared_ptr< ::vision_srvs::cop_get_object_shapeResponse> cop_get_object_shapeResponsePtr; 00225 typedef boost::shared_ptr< ::vision_srvs::cop_get_object_shapeResponse const> cop_get_object_shapeResponseConstPtr; 00226 00227 struct cop_get_object_shape 00228 { 00229 00230 typedef cop_get_object_shapeRequest Request; 00231 typedef cop_get_object_shapeResponse Response; 00232 Request request; 00233 Response response; 00234 00235 typedef Request RequestType; 00236 typedef Response ResponseType; 00237 }; // struct cop_get_object_shape 00238 } // namespace vision_srvs 00239 00240 namespace ros 00241 { 00242 namespace message_traits 00243 { 00244 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> > : public TrueType {}; 00245 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> const> : public TrueType {}; 00246 template<class ContainerAllocator> 00247 struct MD5Sum< ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> > { 00248 static const char* value() 00249 { 00250 return "039cdc2e4e021929b349f87d86d0ea70"; 00251 } 00252 00253 static const char* value(const ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> &) { return value(); } 00254 static const uint64_t static_value1 = 0x039cdc2e4e021929ULL; 00255 static const uint64_t static_value2 = 0xb349f87d86d0ea70ULL; 00256 }; 00257 00258 template<class ContainerAllocator> 00259 struct DataType< ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> > { 00260 static const char* value() 00261 { 00262 return "vision_srvs/cop_get_object_shapeRequest"; 00263 } 00264 00265 static const char* value(const ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> &) { return value(); } 00266 }; 00267 00268 template<class ContainerAllocator> 00269 struct Definition< ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> > { 00270 static const char* value() 00271 { 00272 return "\n\ 00273 \n\ 00274 uint64 object_id\n\ 00275 \n\ 00276 "; 00277 } 00278 00279 static const char* value(const ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> &) { return value(); } 00280 }; 00281 00282 template<class ContainerAllocator> struct IsFixedSize< ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> > : public TrueType {}; 00283 } // namespace message_traits 00284 } // namespace ros 00285 00286 00287 namespace ros 00288 { 00289 namespace message_traits 00290 { 00291 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> > : public TrueType {}; 00292 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> const> : public TrueType {}; 00293 template<class ContainerAllocator> 00294 struct MD5Sum< ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> > { 00295 static const char* value() 00296 { 00297 return "54b403d09f468fc327f67c2993792640"; 00298 } 00299 00300 static const char* value(const ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> &) { return value(); } 00301 static const uint64_t static_value1 = 0x54b403d09f468fc3ULL; 00302 static const uint64_t static_value2 = 0x27f67c2993792640ULL; 00303 }; 00304 00305 template<class ContainerAllocator> 00306 struct DataType< ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> > { 00307 static const char* value() 00308 { 00309 return "vision_srvs/cop_get_object_shapeResponse"; 00310 } 00311 00312 static const char* value(const ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> &) { return value(); } 00313 }; 00314 00315 template<class ContainerAllocator> 00316 struct Definition< ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> > { 00317 static const char* value() 00318 { 00319 return "arm_navigation_msgs/Shape shape\n\ 00320 \n\ 00321 \n\ 00322 ================================================================================\n\ 00323 MSG: arm_navigation_msgs/Shape\n\ 00324 byte SPHERE=0\n\ 00325 byte BOX=1\n\ 00326 byte CYLINDER=2\n\ 00327 byte MESH=3\n\ 00328 \n\ 00329 byte type\n\ 00330 \n\ 00331 \n\ 00332 #### define sphere, box, cylinder ####\n\ 00333 # the origin of each shape is considered at the shape's center\n\ 00334 \n\ 00335 # for sphere\n\ 00336 # radius := dimensions[0]\n\ 00337 \n\ 00338 # for cylinder\n\ 00339 # radius := dimensions[0]\n\ 00340 # length := dimensions[1]\n\ 00341 # the length is along the Z axis\n\ 00342 \n\ 00343 # for box\n\ 00344 # size_x := dimensions[0]\n\ 00345 # size_y := dimensions[1]\n\ 00346 # size_z := dimensions[2]\n\ 00347 float64[] dimensions\n\ 00348 \n\ 00349 \n\ 00350 #### define mesh ####\n\ 00351 \n\ 00352 # list of triangles; triangle k is defined by tre vertices located\n\ 00353 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\ 00354 int32[] triangles\n\ 00355 geometry_msgs/Point[] vertices\n\ 00356 \n\ 00357 ================================================================================\n\ 00358 MSG: geometry_msgs/Point\n\ 00359 # This contains the position of a point in free space\n\ 00360 float64 x\n\ 00361 float64 y\n\ 00362 float64 z\n\ 00363 \n\ 00364 "; 00365 } 00366 00367 static const char* value(const ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> &) { return value(); } 00368 }; 00369 00370 } // namespace message_traits 00371 } // namespace ros 00372 00373 namespace ros 00374 { 00375 namespace serialization 00376 { 00377 00378 template<class ContainerAllocator> struct Serializer< ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> > 00379 { 00380 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00381 { 00382 stream.next(m.object_id); 00383 } 00384 00385 ROS_DECLARE_ALLINONE_SERIALIZER; 00386 }; // struct cop_get_object_shapeRequest_ 00387 } // namespace serialization 00388 } // namespace ros 00389 00390 00391 namespace ros 00392 { 00393 namespace serialization 00394 { 00395 00396 template<class ContainerAllocator> struct Serializer< ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> > 00397 { 00398 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00399 { 00400 stream.next(m.shape); 00401 } 00402 00403 ROS_DECLARE_ALLINONE_SERIALIZER; 00404 }; // struct cop_get_object_shapeResponse_ 00405 } // namespace serialization 00406 } // namespace ros 00407 00408 namespace ros 00409 { 00410 namespace service_traits 00411 { 00412 template<> 00413 struct MD5Sum<vision_srvs::cop_get_object_shape> { 00414 static const char* value() 00415 { 00416 return "132d121b47840325dd1e8dd0ce3c372d"; 00417 } 00418 00419 static const char* value(const vision_srvs::cop_get_object_shape&) { return value(); } 00420 }; 00421 00422 template<> 00423 struct DataType<vision_srvs::cop_get_object_shape> { 00424 static const char* value() 00425 { 00426 return "vision_srvs/cop_get_object_shape"; 00427 } 00428 00429 static const char* value(const vision_srvs::cop_get_object_shape&) { return value(); } 00430 }; 00431 00432 template<class ContainerAllocator> 00433 struct MD5Sum<vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> > { 00434 static const char* value() 00435 { 00436 return "132d121b47840325dd1e8dd0ce3c372d"; 00437 } 00438 00439 static const char* value(const vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> &) { return value(); } 00440 }; 00441 00442 template<class ContainerAllocator> 00443 struct DataType<vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> > { 00444 static const char* value() 00445 { 00446 return "vision_srvs/cop_get_object_shape"; 00447 } 00448 00449 static const char* value(const vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> &) { return value(); } 00450 }; 00451 00452 template<class ContainerAllocator> 00453 struct MD5Sum<vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> > { 00454 static const char* value() 00455 { 00456 return "132d121b47840325dd1e8dd0ce3c372d"; 00457 } 00458 00459 static const char* value(const vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> &) { return value(); } 00460 }; 00461 00462 template<class ContainerAllocator> 00463 struct DataType<vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> > { 00464 static const char* value() 00465 { 00466 return "vision_srvs/cop_get_object_shape"; 00467 } 00468 00469 static const char* value(const vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> &) { return value(); } 00470 }; 00471 00472 } // namespace service_traits 00473 } // namespace ros 00474 00475 #endif // VISION_SRVS_SERVICE_COP_GET_OBJECT_SHAPE_H 00476