Go to the documentation of this file.00001
00002 #ifndef OBJECT_MANIPULATION_MSGS_SERVICE_FINDCLUSTERBOUNDINGBOX_H
00003 #define OBJECT_MANIPULATION_MSGS_SERVICE_FINDCLUSTERBOUNDINGBOX_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 "sensor_msgs/PointCloud.h"
00020
00021
00022 #include "geometry_msgs/PoseStamped.h"
00023 #include "geometry_msgs/Vector3.h"
00024
00025 namespace object_manipulation_msgs
00026 {
00027 template <class ContainerAllocator>
00028 struct FindClusterBoundingBoxRequest_ {
00029 typedef FindClusterBoundingBoxRequest_<ContainerAllocator> Type;
00030
00031 FindClusterBoundingBoxRequest_()
00032 : cluster()
00033 {
00034 }
00035
00036 FindClusterBoundingBoxRequest_(const ContainerAllocator& _alloc)
00037 : cluster(_alloc)
00038 {
00039 }
00040
00041 typedef ::sensor_msgs::PointCloud_<ContainerAllocator> _cluster_type;
00042 ::sensor_msgs::PointCloud_<ContainerAllocator> cluster;
00043
00044
00045 typedef boost::shared_ptr< ::object_manipulation_msgs::FindClusterBoundingBoxRequest_<ContainerAllocator> > Ptr;
00046 typedef boost::shared_ptr< ::object_manipulation_msgs::FindClusterBoundingBoxRequest_<ContainerAllocator> const> ConstPtr;
00047 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 };
00049 typedef ::object_manipulation_msgs::FindClusterBoundingBoxRequest_<std::allocator<void> > FindClusterBoundingBoxRequest;
00050
00051 typedef boost::shared_ptr< ::object_manipulation_msgs::FindClusterBoundingBoxRequest> FindClusterBoundingBoxRequestPtr;
00052 typedef boost::shared_ptr< ::object_manipulation_msgs::FindClusterBoundingBoxRequest const> FindClusterBoundingBoxRequestConstPtr;
00053
00054
00055
00056 template <class ContainerAllocator>
00057 struct FindClusterBoundingBoxResponse_ {
00058 typedef FindClusterBoundingBoxResponse_<ContainerAllocator> Type;
00059
00060 FindClusterBoundingBoxResponse_()
00061 : pose()
00062 , box_dims()
00063 , error_code(0)
00064 {
00065 }
00066
00067 FindClusterBoundingBoxResponse_(const ContainerAllocator& _alloc)
00068 : pose(_alloc)
00069 , box_dims(_alloc)
00070 , error_code(0)
00071 {
00072 }
00073
00074 typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _pose_type;
00075 ::geometry_msgs::PoseStamped_<ContainerAllocator> pose;
00076
00077 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _box_dims_type;
00078 ::geometry_msgs::Vector3_<ContainerAllocator> box_dims;
00079
00080 typedef int32_t _error_code_type;
00081 int32_t error_code;
00082
00083 enum { SUCCESS = 0 };
00084 enum { TF_ERROR = 1 };
00085
00086 typedef boost::shared_ptr< ::object_manipulation_msgs::FindClusterBoundingBoxResponse_<ContainerAllocator> > Ptr;
00087 typedef boost::shared_ptr< ::object_manipulation_msgs::FindClusterBoundingBoxResponse_<ContainerAllocator> const> ConstPtr;
00088 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00089 };
00090 typedef ::object_manipulation_msgs::FindClusterBoundingBoxResponse_<std::allocator<void> > FindClusterBoundingBoxResponse;
00091
00092 typedef boost::shared_ptr< ::object_manipulation_msgs::FindClusterBoundingBoxResponse> FindClusterBoundingBoxResponsePtr;
00093 typedef boost::shared_ptr< ::object_manipulation_msgs::FindClusterBoundingBoxResponse const> FindClusterBoundingBoxResponseConstPtr;
00094
00095
00096 struct FindClusterBoundingBox
00097 {
00098
00099 typedef FindClusterBoundingBoxRequest Request;
00100 typedef FindClusterBoundingBoxResponse Response;
00101 Request request;
00102 Response response;
00103
00104 typedef Request RequestType;
00105 typedef Response ResponseType;
00106 };
00107 }
00108
00109 namespace ros
00110 {
00111 namespace message_traits
00112 {
00113 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::FindClusterBoundingBoxRequest_<ContainerAllocator> > : public TrueType {};
00114 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::FindClusterBoundingBoxRequest_<ContainerAllocator> const> : public TrueType {};
00115 template<class ContainerAllocator>
00116 struct MD5Sum< ::object_manipulation_msgs::FindClusterBoundingBoxRequest_<ContainerAllocator> > {
00117 static const char* value()
00118 {
00119 return "c9b8a24dd6ede958d3710cdb47643a01";
00120 }
00121
00122 static const char* value(const ::object_manipulation_msgs::FindClusterBoundingBoxRequest_<ContainerAllocator> &) { return value(); }
00123 static const uint64_t static_value1 = 0xc9b8a24dd6ede958ULL;
00124 static const uint64_t static_value2 = 0xd3710cdb47643a01ULL;
00125 };
00126
00127 template<class ContainerAllocator>
00128 struct DataType< ::object_manipulation_msgs::FindClusterBoundingBoxRequest_<ContainerAllocator> > {
00129 static const char* value()
00130 {
00131 return "object_manipulation_msgs/FindClusterBoundingBoxRequest";
00132 }
00133
00134 static const char* value(const ::object_manipulation_msgs::FindClusterBoundingBoxRequest_<ContainerAllocator> &) { return value(); }
00135 };
00136
00137 template<class ContainerAllocator>
00138 struct Definition< ::object_manipulation_msgs::FindClusterBoundingBoxRequest_<ContainerAllocator> > {
00139 static const char* value()
00140 {
00141 return "sensor_msgs/PointCloud cluster\n\
00142 \n\
00143 \n\
00144 ================================================================================\n\
00145 MSG: sensor_msgs/PointCloud\n\
00146 # This message holds a collection of 3d points, plus optional additional\n\
00147 # information about each point.\n\
00148 \n\
00149 # Time of sensor data acquisition, coordinate frame ID.\n\
00150 Header header\n\
00151 \n\
00152 # Array of 3d points. Each Point32 should be interpreted as a 3d point\n\
00153 # in the frame given in the header.\n\
00154 geometry_msgs/Point32[] points\n\
00155 \n\
00156 # Each channel should have the same number of elements as points array,\n\
00157 # and the data in each channel should correspond 1:1 with each point.\n\
00158 # Channel names in common practice are listed in ChannelFloat32.msg.\n\
00159 ChannelFloat32[] channels\n\
00160 \n\
00161 ================================================================================\n\
00162 MSG: std_msgs/Header\n\
00163 # Standard metadata for higher-level stamped data types.\n\
00164 # This is generally used to communicate timestamped data \n\
00165 # in a particular coordinate frame.\n\
00166 # \n\
00167 # sequence ID: consecutively increasing ID \n\
00168 uint32 seq\n\
00169 #Two-integer timestamp that is expressed as:\n\
00170 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00171 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00172 # time-handling sugar is provided by the client library\n\
00173 time stamp\n\
00174 #Frame this data is associated with\n\
00175 # 0: no frame\n\
00176 # 1: global frame\n\
00177 string frame_id\n\
00178 \n\
00179 ================================================================================\n\
00180 MSG: geometry_msgs/Point32\n\
00181 # This contains the position of a point in free space(with 32 bits of precision).\n\
00182 # It is recommeded to use Point wherever possible instead of Point32. \n\
00183 # \n\
00184 # This recommendation is to promote interoperability. \n\
00185 #\n\
00186 # This message is designed to take up less space when sending\n\
00187 # lots of points at once, as in the case of a PointCloud. \n\
00188 \n\
00189 float32 x\n\
00190 float32 y\n\
00191 float32 z\n\
00192 ================================================================================\n\
00193 MSG: sensor_msgs/ChannelFloat32\n\
00194 # This message is used by the PointCloud message to hold optional data\n\
00195 # associated with each point in the cloud. The length of the values\n\
00196 # array should be the same as the length of the points array in the\n\
00197 # PointCloud, and each value should be associated with the corresponding\n\
00198 # point.\n\
00199 \n\
00200 # Channel names in existing practice include:\n\
00201 # \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
00202 # This is opposite to usual conventions but remains for\n\
00203 # historical reasons. The newer PointCloud2 message has no\n\
00204 # such problem.\n\
00205 # \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
00206 # (R,G,B) values packed into the least significant 24 bits,\n\
00207 # in order.\n\
00208 # \"intensity\" - laser or pixel intensity.\n\
00209 # \"distance\"\n\
00210 \n\
00211 # The channel name should give semantics of the channel (e.g.\n\
00212 # \"intensity\" instead of \"value\").\n\
00213 string name\n\
00214 \n\
00215 # The values array should be 1-1 with the elements of the associated\n\
00216 # PointCloud.\n\
00217 float32[] values\n\
00218 \n\
00219 ";
00220 }
00221
00222 static const char* value(const ::object_manipulation_msgs::FindClusterBoundingBoxRequest_<ContainerAllocator> &) { return value(); }
00223 };
00224
00225 }
00226 }
00227
00228
00229 namespace ros
00230 {
00231 namespace message_traits
00232 {
00233 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::FindClusterBoundingBoxResponse_<ContainerAllocator> > : public TrueType {};
00234 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::FindClusterBoundingBoxResponse_<ContainerAllocator> const> : public TrueType {};
00235 template<class ContainerAllocator>
00236 struct MD5Sum< ::object_manipulation_msgs::FindClusterBoundingBoxResponse_<ContainerAllocator> > {
00237 static const char* value()
00238 {
00239 return "981e2c8ffa160e77589dcf98a63a81cd";
00240 }
00241
00242 static const char* value(const ::object_manipulation_msgs::FindClusterBoundingBoxResponse_<ContainerAllocator> &) { return value(); }
00243 static const uint64_t static_value1 = 0x981e2c8ffa160e77ULL;
00244 static const uint64_t static_value2 = 0x589dcf98a63a81cdULL;
00245 };
00246
00247 template<class ContainerAllocator>
00248 struct DataType< ::object_manipulation_msgs::FindClusterBoundingBoxResponse_<ContainerAllocator> > {
00249 static const char* value()
00250 {
00251 return "object_manipulation_msgs/FindClusterBoundingBoxResponse";
00252 }
00253
00254 static const char* value(const ::object_manipulation_msgs::FindClusterBoundingBoxResponse_<ContainerAllocator> &) { return value(); }
00255 };
00256
00257 template<class ContainerAllocator>
00258 struct Definition< ::object_manipulation_msgs::FindClusterBoundingBoxResponse_<ContainerAllocator> > {
00259 static const char* value()
00260 {
00261 return "\n\
00262 \n\
00263 geometry_msgs/PoseStamped pose\n\
00264 \n\
00265 \n\
00266 geometry_msgs/Vector3 box_dims\n\
00267 \n\
00268 \n\
00269 int32 SUCCESS=0\n\
00270 int32 TF_ERROR=1\n\
00271 int32 error_code\n\
00272 \n\
00273 ================================================================================\n\
00274 MSG: geometry_msgs/PoseStamped\n\
00275 # A Pose with reference coordinate frame and timestamp\n\
00276 Header header\n\
00277 Pose pose\n\
00278 \n\
00279 ================================================================================\n\
00280 MSG: std_msgs/Header\n\
00281 # Standard metadata for higher-level stamped data types.\n\
00282 # This is generally used to communicate timestamped data \n\
00283 # in a particular coordinate frame.\n\
00284 # \n\
00285 # sequence ID: consecutively increasing ID \n\
00286 uint32 seq\n\
00287 #Two-integer timestamp that is expressed as:\n\
00288 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00289 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00290 # time-handling sugar is provided by the client library\n\
00291 time stamp\n\
00292 #Frame this data is associated with\n\
00293 # 0: no frame\n\
00294 # 1: global frame\n\
00295 string frame_id\n\
00296 \n\
00297 ================================================================================\n\
00298 MSG: geometry_msgs/Pose\n\
00299 # A representation of pose in free space, composed of postion and orientation. \n\
00300 Point position\n\
00301 Quaternion orientation\n\
00302 \n\
00303 ================================================================================\n\
00304 MSG: geometry_msgs/Point\n\
00305 # This contains the position of a point in free space\n\
00306 float64 x\n\
00307 float64 y\n\
00308 float64 z\n\
00309 \n\
00310 ================================================================================\n\
00311 MSG: geometry_msgs/Quaternion\n\
00312 # This represents an orientation in free space in quaternion form.\n\
00313 \n\
00314 float64 x\n\
00315 float64 y\n\
00316 float64 z\n\
00317 float64 w\n\
00318 \n\
00319 ================================================================================\n\
00320 MSG: geometry_msgs/Vector3\n\
00321 # This represents a vector in free space. \n\
00322 \n\
00323 float64 x\n\
00324 float64 y\n\
00325 float64 z\n\
00326 ";
00327 }
00328
00329 static const char* value(const ::object_manipulation_msgs::FindClusterBoundingBoxResponse_<ContainerAllocator> &) { return value(); }
00330 };
00331
00332 }
00333 }
00334
00335 namespace ros
00336 {
00337 namespace serialization
00338 {
00339
00340 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::FindClusterBoundingBoxRequest_<ContainerAllocator> >
00341 {
00342 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00343 {
00344 stream.next(m.cluster);
00345 }
00346
00347 ROS_DECLARE_ALLINONE_SERIALIZER;
00348 };
00349 }
00350 }
00351
00352
00353 namespace ros
00354 {
00355 namespace serialization
00356 {
00357
00358 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::FindClusterBoundingBoxResponse_<ContainerAllocator> >
00359 {
00360 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00361 {
00362 stream.next(m.pose);
00363 stream.next(m.box_dims);
00364 stream.next(m.error_code);
00365 }
00366
00367 ROS_DECLARE_ALLINONE_SERIALIZER;
00368 };
00369 }
00370 }
00371
00372 namespace ros
00373 {
00374 namespace service_traits
00375 {
00376 template<>
00377 struct MD5Sum<object_manipulation_msgs::FindClusterBoundingBox> {
00378 static const char* value()
00379 {
00380 return "b3e1553121201f262f1cdaafb1409115";
00381 }
00382
00383 static const char* value(const object_manipulation_msgs::FindClusterBoundingBox&) { return value(); }
00384 };
00385
00386 template<>
00387 struct DataType<object_manipulation_msgs::FindClusterBoundingBox> {
00388 static const char* value()
00389 {
00390 return "object_manipulation_msgs/FindClusterBoundingBox";
00391 }
00392
00393 static const char* value(const object_manipulation_msgs::FindClusterBoundingBox&) { return value(); }
00394 };
00395
00396 template<class ContainerAllocator>
00397 struct MD5Sum<object_manipulation_msgs::FindClusterBoundingBoxRequest_<ContainerAllocator> > {
00398 static const char* value()
00399 {
00400 return "b3e1553121201f262f1cdaafb1409115";
00401 }
00402
00403 static const char* value(const object_manipulation_msgs::FindClusterBoundingBoxRequest_<ContainerAllocator> &) { return value(); }
00404 };
00405
00406 template<class ContainerAllocator>
00407 struct DataType<object_manipulation_msgs::FindClusterBoundingBoxRequest_<ContainerAllocator> > {
00408 static const char* value()
00409 {
00410 return "object_manipulation_msgs/FindClusterBoundingBox";
00411 }
00412
00413 static const char* value(const object_manipulation_msgs::FindClusterBoundingBoxRequest_<ContainerAllocator> &) { return value(); }
00414 };
00415
00416 template<class ContainerAllocator>
00417 struct MD5Sum<object_manipulation_msgs::FindClusterBoundingBoxResponse_<ContainerAllocator> > {
00418 static const char* value()
00419 {
00420 return "b3e1553121201f262f1cdaafb1409115";
00421 }
00422
00423 static const char* value(const object_manipulation_msgs::FindClusterBoundingBoxResponse_<ContainerAllocator> &) { return value(); }
00424 };
00425
00426 template<class ContainerAllocator>
00427 struct DataType<object_manipulation_msgs::FindClusterBoundingBoxResponse_<ContainerAllocator> > {
00428 static const char* value()
00429 {
00430 return "object_manipulation_msgs/FindClusterBoundingBox";
00431 }
00432
00433 static const char* value(const object_manipulation_msgs::FindClusterBoundingBoxResponse_<ContainerAllocator> &) { return value(); }
00434 };
00435
00436 }
00437 }
00438
00439 #endif // OBJECT_MANIPULATION_MSGS_SERVICE_FINDCLUSTERBOUNDINGBOX_H
00440