00001
00002 #ifndef TABLETOP_OBJECT_DETECTOR_SERVICE_SEGMENTOBJECTINHAND_H
00003 #define TABLETOP_OBJECT_DETECTOR_SERVICE_SEGMENTOBJECTINHAND_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 "sensor_msgs/PointCloud2.h"
00018
00019 namespace tabletop_object_detector
00020 {
00021 template <class ContainerAllocator>
00022 struct SegmentObjectInHandRequest_ : public ros::Message
00023 {
00024 typedef SegmentObjectInHandRequest_<ContainerAllocator> Type;
00025
00026 SegmentObjectInHandRequest_()
00027 : wrist_frame()
00028 {
00029 }
00030
00031 SegmentObjectInHandRequest_(const ContainerAllocator& _alloc)
00032 : wrist_frame(_alloc)
00033 {
00034 }
00035
00036 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _wrist_frame_type;
00037 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > wrist_frame;
00038
00039
00040 private:
00041 static const char* __s_getDataType_() { return "tabletop_object_detector/SegmentObjectInHandRequest"; }
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 "5653c37b6f08aa700c4b89db4ec53db6"; }
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 "3ce40b2b26a5a7d08d4f8e1e350c63f7"; }
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 string wrist_frame\n\
00064 \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, wrist_frame);
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, wrist_frame);
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(wrist_frame);
00090 return size;
00091 }
00092
00093 typedef boost::shared_ptr< ::tabletop_object_detector::SegmentObjectInHandRequest_<ContainerAllocator> > Ptr;
00094 typedef boost::shared_ptr< ::tabletop_object_detector::SegmentObjectInHandRequest_<ContainerAllocator> const> ConstPtr;
00095 };
00096 typedef ::tabletop_object_detector::SegmentObjectInHandRequest_<std::allocator<void> > SegmentObjectInHandRequest;
00097
00098 typedef boost::shared_ptr< ::tabletop_object_detector::SegmentObjectInHandRequest> SegmentObjectInHandRequestPtr;
00099 typedef boost::shared_ptr< ::tabletop_object_detector::SegmentObjectInHandRequest const> SegmentObjectInHandRequestConstPtr;
00100
00101
00102 template <class ContainerAllocator>
00103 struct SegmentObjectInHandResponse_ : public ros::Message
00104 {
00105 typedef SegmentObjectInHandResponse_<ContainerAllocator> Type;
00106
00107 SegmentObjectInHandResponse_()
00108 : cluster()
00109 , result(0)
00110 {
00111 }
00112
00113 SegmentObjectInHandResponse_(const ContainerAllocator& _alloc)
00114 : cluster(_alloc)
00115 , result(0)
00116 {
00117 }
00118
00119 typedef ::sensor_msgs::PointCloud2_<ContainerAllocator> _cluster_type;
00120 ::sensor_msgs::PointCloud2_<ContainerAllocator> cluster;
00121
00122 typedef int32_t _result_type;
00123 int32_t result;
00124
00125 enum { SUCCESS = 0 };
00126 enum { NO_CLOUD_RECEIVED = 1 };
00127 enum { TF_ERROR = 2 };
00128 enum { OTHER_ERROR = 3 };
00129
00130 private:
00131 static const char* __s_getDataType_() { return "tabletop_object_detector/SegmentObjectInHandResponse"; }
00132 public:
00133 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00134
00135 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00136
00137 private:
00138 static const char* __s_getMD5Sum_() { return "9503d54a94abc90c0593a7f7530fb70e"; }
00139 public:
00140 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00141
00142 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00143
00144 private:
00145 static const char* __s_getServerMD5Sum_() { return "3ce40b2b26a5a7d08d4f8e1e350c63f7"; }
00146 public:
00147 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00148
00149 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00150
00151 private:
00152 static const char* __s_getMessageDefinition_() { return "\n\
00153 \n\
00154 sensor_msgs/PointCloud2 cluster\n\
00155 \n\
00156 \n\
00157 int32 SUCCESS = 0\n\
00158 int32 NO_CLOUD_RECEIVED = 1\n\
00159 int32 TF_ERROR = 2\n\
00160 int32 OTHER_ERROR = 3\n\
00161 int32 result\n\
00162 \n\
00163 \n\
00164 ================================================================================\n\
00165 MSG: sensor_msgs/PointCloud2\n\
00166 # This message holds a collection of N-dimensional points, which may\n\
00167 # contain additional information such as normals, intensity, etc. The\n\
00168 # point data is stored as a binary blob, its layout described by the\n\
00169 # contents of the \"fields\" array.\n\
00170 \n\
00171 # The point cloud data may be organized 2d (image-like) or 1d\n\
00172 # (unordered). Point clouds organized as 2d images may be produced by\n\
00173 # camera depth sensors such as stereo or time-of-flight.\n\
00174 \n\
00175 # Time of sensor data acquisition, and the coordinate frame ID (for 3d\n\
00176 # points).\n\
00177 Header header\n\
00178 \n\
00179 # 2D structure of the point cloud. If the cloud is unordered, height is\n\
00180 # 1 and width is the length of the point cloud.\n\
00181 uint32 height\n\
00182 uint32 width\n\
00183 \n\
00184 # Describes the channels and their layout in the binary data blob.\n\
00185 PointField[] fields\n\
00186 \n\
00187 bool is_bigendian # Is this data bigendian?\n\
00188 uint32 point_step # Length of a point in bytes\n\
00189 uint32 row_step # Length of a row in bytes\n\
00190 uint8[] data # Actual point data, size is (row_step*height)\n\
00191 \n\
00192 bool is_dense # True if there are no invalid points\n\
00193 \n\
00194 ================================================================================\n\
00195 MSG: std_msgs/Header\n\
00196 # Standard metadata for higher-level stamped data types.\n\
00197 # This is generally used to communicate timestamped data \n\
00198 # in a particular coordinate frame.\n\
00199 # \n\
00200 # sequence ID: consecutively increasing ID \n\
00201 uint32 seq\n\
00202 #Two-integer timestamp that is expressed as:\n\
00203 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00204 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00205 # time-handling sugar is provided by the client library\n\
00206 time stamp\n\
00207 #Frame this data is associated with\n\
00208 # 0: no frame\n\
00209 # 1: global frame\n\
00210 string frame_id\n\
00211 \n\
00212 ================================================================================\n\
00213 MSG: sensor_msgs/PointField\n\
00214 # This message holds the description of one point entry in the\n\
00215 # PointCloud2 message format.\n\
00216 uint8 INT8 = 1\n\
00217 uint8 UINT8 = 2\n\
00218 uint8 INT16 = 3\n\
00219 uint8 UINT16 = 4\n\
00220 uint8 INT32 = 5\n\
00221 uint8 UINT32 = 6\n\
00222 uint8 FLOAT32 = 7\n\
00223 uint8 FLOAT64 = 8\n\
00224 \n\
00225 string name # Name of field\n\
00226 uint32 offset # Offset from start of point struct\n\
00227 uint8 datatype # Datatype enumeration, see above\n\
00228 uint32 count # How many elements in the field\n\
00229 \n\
00230 "; }
00231 public:
00232 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00233
00234 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00235
00236 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00237 {
00238 ros::serialization::OStream stream(write_ptr, 1000000000);
00239 ros::serialization::serialize(stream, cluster);
00240 ros::serialization::serialize(stream, result);
00241 return stream.getData();
00242 }
00243
00244 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00245 {
00246 ros::serialization::IStream stream(read_ptr, 1000000000);
00247 ros::serialization::deserialize(stream, cluster);
00248 ros::serialization::deserialize(stream, result);
00249 return stream.getData();
00250 }
00251
00252 ROS_DEPRECATED virtual uint32_t serializationLength() const
00253 {
00254 uint32_t size = 0;
00255 size += ros::serialization::serializationLength(cluster);
00256 size += ros::serialization::serializationLength(result);
00257 return size;
00258 }
00259
00260 typedef boost::shared_ptr< ::tabletop_object_detector::SegmentObjectInHandResponse_<ContainerAllocator> > Ptr;
00261 typedef boost::shared_ptr< ::tabletop_object_detector::SegmentObjectInHandResponse_<ContainerAllocator> const> ConstPtr;
00262 };
00263 typedef ::tabletop_object_detector::SegmentObjectInHandResponse_<std::allocator<void> > SegmentObjectInHandResponse;
00264
00265 typedef boost::shared_ptr< ::tabletop_object_detector::SegmentObjectInHandResponse> SegmentObjectInHandResponsePtr;
00266 typedef boost::shared_ptr< ::tabletop_object_detector::SegmentObjectInHandResponse const> SegmentObjectInHandResponseConstPtr;
00267
00268 struct SegmentObjectInHand
00269 {
00270
00271 typedef SegmentObjectInHandRequest Request;
00272 typedef SegmentObjectInHandResponse Response;
00273 Request request;
00274 Response response;
00275
00276 typedef Request RequestType;
00277 typedef Response ResponseType;
00278 };
00279 }
00280
00281 namespace ros
00282 {
00283 namespace message_traits
00284 {
00285 template<class ContainerAllocator>
00286 struct MD5Sum< ::tabletop_object_detector::SegmentObjectInHandRequest_<ContainerAllocator> > {
00287 static const char* value()
00288 {
00289 return "5653c37b6f08aa700c4b89db4ec53db6";
00290 }
00291
00292 static const char* value(const ::tabletop_object_detector::SegmentObjectInHandRequest_<ContainerAllocator> &) { return value(); }
00293 static const uint64_t static_value1 = 0x5653c37b6f08aa70ULL;
00294 static const uint64_t static_value2 = 0x0c4b89db4ec53db6ULL;
00295 };
00296
00297 template<class ContainerAllocator>
00298 struct DataType< ::tabletop_object_detector::SegmentObjectInHandRequest_<ContainerAllocator> > {
00299 static const char* value()
00300 {
00301 return "tabletop_object_detector/SegmentObjectInHandRequest";
00302 }
00303
00304 static const char* value(const ::tabletop_object_detector::SegmentObjectInHandRequest_<ContainerAllocator> &) { return value(); }
00305 };
00306
00307 template<class ContainerAllocator>
00308 struct Definition< ::tabletop_object_detector::SegmentObjectInHandRequest_<ContainerAllocator> > {
00309 static const char* value()
00310 {
00311 return "\n\
00312 string wrist_frame\n\
00313 \n\
00314 \n\
00315 ";
00316 }
00317
00318 static const char* value(const ::tabletop_object_detector::SegmentObjectInHandRequest_<ContainerAllocator> &) { return value(); }
00319 };
00320
00321 }
00322 }
00323
00324
00325 namespace ros
00326 {
00327 namespace message_traits
00328 {
00329 template<class ContainerAllocator>
00330 struct MD5Sum< ::tabletop_object_detector::SegmentObjectInHandResponse_<ContainerAllocator> > {
00331 static const char* value()
00332 {
00333 return "9503d54a94abc90c0593a7f7530fb70e";
00334 }
00335
00336 static const char* value(const ::tabletop_object_detector::SegmentObjectInHandResponse_<ContainerAllocator> &) { return value(); }
00337 static const uint64_t static_value1 = 0x9503d54a94abc90cULL;
00338 static const uint64_t static_value2 = 0x0593a7f7530fb70eULL;
00339 };
00340
00341 template<class ContainerAllocator>
00342 struct DataType< ::tabletop_object_detector::SegmentObjectInHandResponse_<ContainerAllocator> > {
00343 static const char* value()
00344 {
00345 return "tabletop_object_detector/SegmentObjectInHandResponse";
00346 }
00347
00348 static const char* value(const ::tabletop_object_detector::SegmentObjectInHandResponse_<ContainerAllocator> &) { return value(); }
00349 };
00350
00351 template<class ContainerAllocator>
00352 struct Definition< ::tabletop_object_detector::SegmentObjectInHandResponse_<ContainerAllocator> > {
00353 static const char* value()
00354 {
00355 return "\n\
00356 \n\
00357 sensor_msgs/PointCloud2 cluster\n\
00358 \n\
00359 \n\
00360 int32 SUCCESS = 0\n\
00361 int32 NO_CLOUD_RECEIVED = 1\n\
00362 int32 TF_ERROR = 2\n\
00363 int32 OTHER_ERROR = 3\n\
00364 int32 result\n\
00365 \n\
00366 \n\
00367 ================================================================================\n\
00368 MSG: sensor_msgs/PointCloud2\n\
00369 # This message holds a collection of N-dimensional points, which may\n\
00370 # contain additional information such as normals, intensity, etc. The\n\
00371 # point data is stored as a binary blob, its layout described by the\n\
00372 # contents of the \"fields\" array.\n\
00373 \n\
00374 # The point cloud data may be organized 2d (image-like) or 1d\n\
00375 # (unordered). Point clouds organized as 2d images may be produced by\n\
00376 # camera depth sensors such as stereo or time-of-flight.\n\
00377 \n\
00378 # Time of sensor data acquisition, and the coordinate frame ID (for 3d\n\
00379 # points).\n\
00380 Header header\n\
00381 \n\
00382 # 2D structure of the point cloud. If the cloud is unordered, height is\n\
00383 # 1 and width is the length of the point cloud.\n\
00384 uint32 height\n\
00385 uint32 width\n\
00386 \n\
00387 # Describes the channels and their layout in the binary data blob.\n\
00388 PointField[] fields\n\
00389 \n\
00390 bool is_bigendian # Is this data bigendian?\n\
00391 uint32 point_step # Length of a point in bytes\n\
00392 uint32 row_step # Length of a row in bytes\n\
00393 uint8[] data # Actual point data, size is (row_step*height)\n\
00394 \n\
00395 bool is_dense # True if there are no invalid points\n\
00396 \n\
00397 ================================================================================\n\
00398 MSG: std_msgs/Header\n\
00399 # Standard metadata for higher-level stamped data types.\n\
00400 # This is generally used to communicate timestamped data \n\
00401 # in a particular coordinate frame.\n\
00402 # \n\
00403 # sequence ID: consecutively increasing ID \n\
00404 uint32 seq\n\
00405 #Two-integer timestamp that is expressed as:\n\
00406 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00407 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00408 # time-handling sugar is provided by the client library\n\
00409 time stamp\n\
00410 #Frame this data is associated with\n\
00411 # 0: no frame\n\
00412 # 1: global frame\n\
00413 string frame_id\n\
00414 \n\
00415 ================================================================================\n\
00416 MSG: sensor_msgs/PointField\n\
00417 # This message holds the description of one point entry in the\n\
00418 # PointCloud2 message format.\n\
00419 uint8 INT8 = 1\n\
00420 uint8 UINT8 = 2\n\
00421 uint8 INT16 = 3\n\
00422 uint8 UINT16 = 4\n\
00423 uint8 INT32 = 5\n\
00424 uint8 UINT32 = 6\n\
00425 uint8 FLOAT32 = 7\n\
00426 uint8 FLOAT64 = 8\n\
00427 \n\
00428 string name # Name of field\n\
00429 uint32 offset # Offset from start of point struct\n\
00430 uint8 datatype # Datatype enumeration, see above\n\
00431 uint32 count # How many elements in the field\n\
00432 \n\
00433 ";
00434 }
00435
00436 static const char* value(const ::tabletop_object_detector::SegmentObjectInHandResponse_<ContainerAllocator> &) { return value(); }
00437 };
00438
00439 }
00440 }
00441
00442 namespace ros
00443 {
00444 namespace serialization
00445 {
00446
00447 template<class ContainerAllocator> struct Serializer< ::tabletop_object_detector::SegmentObjectInHandRequest_<ContainerAllocator> >
00448 {
00449 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00450 {
00451 stream.next(m.wrist_frame);
00452 }
00453
00454 ROS_DECLARE_ALLINONE_SERIALIZER;
00455 };
00456 }
00457 }
00458
00459
00460 namespace ros
00461 {
00462 namespace serialization
00463 {
00464
00465 template<class ContainerAllocator> struct Serializer< ::tabletop_object_detector::SegmentObjectInHandResponse_<ContainerAllocator> >
00466 {
00467 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00468 {
00469 stream.next(m.cluster);
00470 stream.next(m.result);
00471 }
00472
00473 ROS_DECLARE_ALLINONE_SERIALIZER;
00474 };
00475 }
00476 }
00477
00478 namespace ros
00479 {
00480 namespace service_traits
00481 {
00482 template<>
00483 struct MD5Sum<tabletop_object_detector::SegmentObjectInHand> {
00484 static const char* value()
00485 {
00486 return "3ce40b2b26a5a7d08d4f8e1e350c63f7";
00487 }
00488
00489 static const char* value(const tabletop_object_detector::SegmentObjectInHand&) { return value(); }
00490 };
00491
00492 template<>
00493 struct DataType<tabletop_object_detector::SegmentObjectInHand> {
00494 static const char* value()
00495 {
00496 return "tabletop_object_detector/SegmentObjectInHand";
00497 }
00498
00499 static const char* value(const tabletop_object_detector::SegmentObjectInHand&) { return value(); }
00500 };
00501
00502 template<class ContainerAllocator>
00503 struct MD5Sum<tabletop_object_detector::SegmentObjectInHandRequest_<ContainerAllocator> > {
00504 static const char* value()
00505 {
00506 return "3ce40b2b26a5a7d08d4f8e1e350c63f7";
00507 }
00508
00509 static const char* value(const tabletop_object_detector::SegmentObjectInHandRequest_<ContainerAllocator> &) { return value(); }
00510 };
00511
00512 template<class ContainerAllocator>
00513 struct DataType<tabletop_object_detector::SegmentObjectInHandRequest_<ContainerAllocator> > {
00514 static const char* value()
00515 {
00516 return "tabletop_object_detector/SegmentObjectInHand";
00517 }
00518
00519 static const char* value(const tabletop_object_detector::SegmentObjectInHandRequest_<ContainerAllocator> &) { return value(); }
00520 };
00521
00522 template<class ContainerAllocator>
00523 struct MD5Sum<tabletop_object_detector::SegmentObjectInHandResponse_<ContainerAllocator> > {
00524 static const char* value()
00525 {
00526 return "3ce40b2b26a5a7d08d4f8e1e350c63f7";
00527 }
00528
00529 static const char* value(const tabletop_object_detector::SegmentObjectInHandResponse_<ContainerAllocator> &) { return value(); }
00530 };
00531
00532 template<class ContainerAllocator>
00533 struct DataType<tabletop_object_detector::SegmentObjectInHandResponse_<ContainerAllocator> > {
00534 static const char* value()
00535 {
00536 return "tabletop_object_detector/SegmentObjectInHand";
00537 }
00538
00539 static const char* value(const tabletop_object_detector::SegmentObjectInHandResponse_<ContainerAllocator> &) { return value(); }
00540 };
00541
00542 }
00543 }
00544
00545 #endif // TABLETOP_OBJECT_DETECTOR_SERVICE_SEGMENTOBJECTINHAND_H
00546