Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> > Ptr;
00044 typedef boost::shared_ptr< ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> const> ConstPtr;
00045 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00046 };
00047 typedef ::vision_srvs::cop_get_object_shapeRequest_<std::allocator<void> > cop_get_object_shapeRequest;
00048
00049 typedef boost::shared_ptr< ::vision_srvs::cop_get_object_shapeRequest> cop_get_object_shapeRequestPtr;
00050 typedef boost::shared_ptr< ::vision_srvs::cop_get_object_shapeRequest const> cop_get_object_shapeRequestConstPtr;
00051
00052
00053
00054 template <class ContainerAllocator>
00055 struct cop_get_object_shapeResponse_ {
00056 typedef cop_get_object_shapeResponse_<ContainerAllocator> Type;
00057
00058 cop_get_object_shapeResponse_()
00059 : shape()
00060 {
00061 }
00062
00063 cop_get_object_shapeResponse_(const ContainerAllocator& _alloc)
00064 : shape(_alloc)
00065 {
00066 }
00067
00068 typedef ::arm_navigation_msgs::Shape_<ContainerAllocator> _shape_type;
00069 ::arm_navigation_msgs::Shape_<ContainerAllocator> shape;
00070
00071
00072 typedef boost::shared_ptr< ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> > Ptr;
00073 typedef boost::shared_ptr< ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> const> ConstPtr;
00074 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00075 };
00076 typedef ::vision_srvs::cop_get_object_shapeResponse_<std::allocator<void> > cop_get_object_shapeResponse;
00077
00078 typedef boost::shared_ptr< ::vision_srvs::cop_get_object_shapeResponse> cop_get_object_shapeResponsePtr;
00079 typedef boost::shared_ptr< ::vision_srvs::cop_get_object_shapeResponse const> cop_get_object_shapeResponseConstPtr;
00080
00081
00082 struct cop_get_object_shape
00083 {
00084
00085 typedef cop_get_object_shapeRequest Request;
00086 typedef cop_get_object_shapeResponse Response;
00087 Request request;
00088 Response response;
00089
00090 typedef Request RequestType;
00091 typedef Response ResponseType;
00092 };
00093 }
00094
00095 namespace ros
00096 {
00097 namespace message_traits
00098 {
00099 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> > : public TrueType {};
00100 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> const> : public TrueType {};
00101 template<class ContainerAllocator>
00102 struct MD5Sum< ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> > {
00103 static const char* value()
00104 {
00105 return "039cdc2e4e021929b349f87d86d0ea70";
00106 }
00107
00108 static const char* value(const ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> &) { return value(); }
00109 static const uint64_t static_value1 = 0x039cdc2e4e021929ULL;
00110 static const uint64_t static_value2 = 0xb349f87d86d0ea70ULL;
00111 };
00112
00113 template<class ContainerAllocator>
00114 struct DataType< ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> > {
00115 static const char* value()
00116 {
00117 return "vision_srvs/cop_get_object_shapeRequest";
00118 }
00119
00120 static const char* value(const ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> &) { return value(); }
00121 };
00122
00123 template<class ContainerAllocator>
00124 struct Definition< ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> > {
00125 static const char* value()
00126 {
00127 return "\n\
00128 \n\
00129 uint64 object_id\n\
00130 \n\
00131 ";
00132 }
00133
00134 static const char* value(const ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> &) { return value(); }
00135 };
00136
00137 template<class ContainerAllocator> struct IsFixedSize< ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> > : public TrueType {};
00138 }
00139 }
00140
00141
00142 namespace ros
00143 {
00144 namespace message_traits
00145 {
00146 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> > : public TrueType {};
00147 template<class ContainerAllocator> struct IsMessage< ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> const> : public TrueType {};
00148 template<class ContainerAllocator>
00149 struct MD5Sum< ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> > {
00150 static const char* value()
00151 {
00152 return "54b403d09f468fc327f67c2993792640";
00153 }
00154
00155 static const char* value(const ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> &) { return value(); }
00156 static const uint64_t static_value1 = 0x54b403d09f468fc3ULL;
00157 static const uint64_t static_value2 = 0x27f67c2993792640ULL;
00158 };
00159
00160 template<class ContainerAllocator>
00161 struct DataType< ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> > {
00162 static const char* value()
00163 {
00164 return "vision_srvs/cop_get_object_shapeResponse";
00165 }
00166
00167 static const char* value(const ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> &) { return value(); }
00168 };
00169
00170 template<class ContainerAllocator>
00171 struct Definition< ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> > {
00172 static const char* value()
00173 {
00174 return "arm_navigation_msgs/Shape shape\n\
00175 \n\
00176 \n\
00177 ================================================================================\n\
00178 MSG: arm_navigation_msgs/Shape\n\
00179 byte SPHERE=0\n\
00180 byte BOX=1\n\
00181 byte CYLINDER=2\n\
00182 byte MESH=3\n\
00183 \n\
00184 byte type\n\
00185 \n\
00186 \n\
00187 #### define sphere, box, cylinder ####\n\
00188 # the origin of each shape is considered at the shape's center\n\
00189 \n\
00190 # for sphere\n\
00191 # radius := dimensions[0]\n\
00192 \n\
00193 # for cylinder\n\
00194 # radius := dimensions[0]\n\
00195 # length := dimensions[1]\n\
00196 # the length is along the Z axis\n\
00197 \n\
00198 # for box\n\
00199 # size_x := dimensions[0]\n\
00200 # size_y := dimensions[1]\n\
00201 # size_z := dimensions[2]\n\
00202 float64[] dimensions\n\
00203 \n\
00204 \n\
00205 #### define mesh ####\n\
00206 \n\
00207 # list of triangles; triangle k is defined by tre vertices located\n\
00208 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\
00209 int32[] triangles\n\
00210 geometry_msgs/Point[] vertices\n\
00211 \n\
00212 ================================================================================\n\
00213 MSG: geometry_msgs/Point\n\
00214 # This contains the position of a point in free space\n\
00215 float64 x\n\
00216 float64 y\n\
00217 float64 z\n\
00218 \n\
00219 ";
00220 }
00221
00222 static const char* value(const ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> &) { return value(); }
00223 };
00224
00225 }
00226 }
00227
00228 namespace ros
00229 {
00230 namespace serialization
00231 {
00232
00233 template<class ContainerAllocator> struct Serializer< ::vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> >
00234 {
00235 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00236 {
00237 stream.next(m.object_id);
00238 }
00239
00240 ROS_DECLARE_ALLINONE_SERIALIZER;
00241 };
00242 }
00243 }
00244
00245
00246 namespace ros
00247 {
00248 namespace serialization
00249 {
00250
00251 template<class ContainerAllocator> struct Serializer< ::vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> >
00252 {
00253 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00254 {
00255 stream.next(m.shape);
00256 }
00257
00258 ROS_DECLARE_ALLINONE_SERIALIZER;
00259 };
00260 }
00261 }
00262
00263 namespace ros
00264 {
00265 namespace service_traits
00266 {
00267 template<>
00268 struct MD5Sum<vision_srvs::cop_get_object_shape> {
00269 static const char* value()
00270 {
00271 return "132d121b47840325dd1e8dd0ce3c372d";
00272 }
00273
00274 static const char* value(const vision_srvs::cop_get_object_shape&) { return value(); }
00275 };
00276
00277 template<>
00278 struct DataType<vision_srvs::cop_get_object_shape> {
00279 static const char* value()
00280 {
00281 return "vision_srvs/cop_get_object_shape";
00282 }
00283
00284 static const char* value(const vision_srvs::cop_get_object_shape&) { return value(); }
00285 };
00286
00287 template<class ContainerAllocator>
00288 struct MD5Sum<vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> > {
00289 static const char* value()
00290 {
00291 return "132d121b47840325dd1e8dd0ce3c372d";
00292 }
00293
00294 static const char* value(const vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> &) { return value(); }
00295 };
00296
00297 template<class ContainerAllocator>
00298 struct DataType<vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> > {
00299 static const char* value()
00300 {
00301 return "vision_srvs/cop_get_object_shape";
00302 }
00303
00304 static const char* value(const vision_srvs::cop_get_object_shapeRequest_<ContainerAllocator> &) { return value(); }
00305 };
00306
00307 template<class ContainerAllocator>
00308 struct MD5Sum<vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> > {
00309 static const char* value()
00310 {
00311 return "132d121b47840325dd1e8dd0ce3c372d";
00312 }
00313
00314 static const char* value(const vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> &) { return value(); }
00315 };
00316
00317 template<class ContainerAllocator>
00318 struct DataType<vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> > {
00319 static const char* value()
00320 {
00321 return "vision_srvs/cop_get_object_shape";
00322 }
00323
00324 static const char* value(const vision_srvs::cop_get_object_shapeResponse_<ContainerAllocator> &) { return value(); }
00325 };
00326
00327 }
00328 }
00329
00330 #endif // VISION_SRVS_SERVICE_COP_GET_OBJECT_SHAPE_H
00331