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