TabletopDetection.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-pr2_object_manipulation/doc_stacks/2014-01-03_11-39-44.427894/pr2_object_manipulation/perception/tabletop_object_detector/srv/TabletopDetection.srv */
00002 #ifndef TABLETOP_OBJECT_DETECTOR_SERVICE_TABLETOPDETECTION_H
00003 #define TABLETOP_OBJECT_DETECTOR_SERVICE_TABLETOPDETECTION_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 "tabletop_object_detector/TabletopDetectionResult.h"
00022 
00023 namespace tabletop_object_detector
00024 {
00025 template <class ContainerAllocator>
00026 struct TabletopDetectionRequest_ {
00027   typedef TabletopDetectionRequest_<ContainerAllocator> Type;
00028 
00029   TabletopDetectionRequest_()
00030   : return_clusters(false)
00031   , return_models(false)
00032   , num_models(0)
00033   {
00034   }
00035 
00036   TabletopDetectionRequest_(const ContainerAllocator& _alloc)
00037   : return_clusters(false)
00038   , return_models(false)
00039   , num_models(0)
00040   {
00041   }
00042 
00043   typedef uint8_t _return_clusters_type;
00044   uint8_t return_clusters;
00045 
00046   typedef uint8_t _return_models_type;
00047   uint8_t return_models;
00048 
00049   typedef int32_t _num_models_type;
00050   int32_t num_models;
00051 
00052 
00053   typedef boost::shared_ptr< ::tabletop_object_detector::TabletopDetectionRequest_<ContainerAllocator> > Ptr;
00054   typedef boost::shared_ptr< ::tabletop_object_detector::TabletopDetectionRequest_<ContainerAllocator>  const> ConstPtr;
00055   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00056 }; // struct TabletopDetectionRequest
00057 typedef  ::tabletop_object_detector::TabletopDetectionRequest_<std::allocator<void> > TabletopDetectionRequest;
00058 
00059 typedef boost::shared_ptr< ::tabletop_object_detector::TabletopDetectionRequest> TabletopDetectionRequestPtr;
00060 typedef boost::shared_ptr< ::tabletop_object_detector::TabletopDetectionRequest const> TabletopDetectionRequestConstPtr;
00061 
00062 
00063 template <class ContainerAllocator>
00064 struct TabletopDetectionResponse_ {
00065   typedef TabletopDetectionResponse_<ContainerAllocator> Type;
00066 
00067   TabletopDetectionResponse_()
00068   : detection()
00069   {
00070   }
00071 
00072   TabletopDetectionResponse_(const ContainerAllocator& _alloc)
00073   : detection(_alloc)
00074   {
00075   }
00076 
00077   typedef  ::tabletop_object_detector::TabletopDetectionResult_<ContainerAllocator>  _detection_type;
00078    ::tabletop_object_detector::TabletopDetectionResult_<ContainerAllocator>  detection;
00079 
00080 
00081   typedef boost::shared_ptr< ::tabletop_object_detector::TabletopDetectionResponse_<ContainerAllocator> > Ptr;
00082   typedef boost::shared_ptr< ::tabletop_object_detector::TabletopDetectionResponse_<ContainerAllocator>  const> ConstPtr;
00083   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00084 }; // struct TabletopDetectionResponse
00085 typedef  ::tabletop_object_detector::TabletopDetectionResponse_<std::allocator<void> > TabletopDetectionResponse;
00086 
00087 typedef boost::shared_ptr< ::tabletop_object_detector::TabletopDetectionResponse> TabletopDetectionResponsePtr;
00088 typedef boost::shared_ptr< ::tabletop_object_detector::TabletopDetectionResponse const> TabletopDetectionResponseConstPtr;
00089 
00090 struct TabletopDetection
00091 {
00092 
00093 typedef TabletopDetectionRequest Request;
00094 typedef TabletopDetectionResponse Response;
00095 Request request;
00096 Response response;
00097 
00098 typedef Request RequestType;
00099 typedef Response ResponseType;
00100 }; // struct TabletopDetection
00101 } // namespace tabletop_object_detector
00102 
00103 namespace ros
00104 {
00105 namespace message_traits
00106 {
00107 template<class ContainerAllocator> struct IsMessage< ::tabletop_object_detector::TabletopDetectionRequest_<ContainerAllocator> > : public TrueType {};
00108 template<class ContainerAllocator> struct IsMessage< ::tabletop_object_detector::TabletopDetectionRequest_<ContainerAllocator>  const> : public TrueType {};
00109 template<class ContainerAllocator>
00110 struct MD5Sum< ::tabletop_object_detector::TabletopDetectionRequest_<ContainerAllocator> > {
00111   static const char* value() 
00112   {
00113     return "f42d30308c026708dba683b43ccd22b8";
00114   }
00115 
00116   static const char* value(const  ::tabletop_object_detector::TabletopDetectionRequest_<ContainerAllocator> &) { return value(); } 
00117   static const uint64_t static_value1 = 0xf42d30308c026708ULL;
00118   static const uint64_t static_value2 = 0xdba683b43ccd22b8ULL;
00119 };
00120 
00121 template<class ContainerAllocator>
00122 struct DataType< ::tabletop_object_detector::TabletopDetectionRequest_<ContainerAllocator> > {
00123   static const char* value() 
00124   {
00125     return "tabletop_object_detector/TabletopDetectionRequest";
00126   }
00127 
00128   static const char* value(const  ::tabletop_object_detector::TabletopDetectionRequest_<ContainerAllocator> &) { return value(); } 
00129 };
00130 
00131 template<class ContainerAllocator>
00132 struct Definition< ::tabletop_object_detector::TabletopDetectionRequest_<ContainerAllocator> > {
00133   static const char* value() 
00134   {
00135     return "\n\
00136 \n\
00137 \n\
00138 \n\
00139 \n\
00140 bool return_clusters\n\
00141 \n\
00142 \n\
00143 \n\
00144 bool return_models\n\
00145 \n\
00146 \n\
00147 int32 num_models\n\
00148 \n\
00149 ";
00150   }
00151 
00152   static const char* value(const  ::tabletop_object_detector::TabletopDetectionRequest_<ContainerAllocator> &) { return value(); } 
00153 };
00154 
00155 template<class ContainerAllocator> struct IsFixedSize< ::tabletop_object_detector::TabletopDetectionRequest_<ContainerAllocator> > : public TrueType {};
00156 } // namespace message_traits
00157 } // namespace ros
00158 
00159 
00160 namespace ros
00161 {
00162 namespace message_traits
00163 {
00164 template<class ContainerAllocator> struct IsMessage< ::tabletop_object_detector::TabletopDetectionResponse_<ContainerAllocator> > : public TrueType {};
00165 template<class ContainerAllocator> struct IsMessage< ::tabletop_object_detector::TabletopDetectionResponse_<ContainerAllocator>  const> : public TrueType {};
00166 template<class ContainerAllocator>
00167 struct MD5Sum< ::tabletop_object_detector::TabletopDetectionResponse_<ContainerAllocator> > {
00168   static const char* value() 
00169   {
00170     return "1887016fd77eb33b9e6335b14d02b156";
00171   }
00172 
00173   static const char* value(const  ::tabletop_object_detector::TabletopDetectionResponse_<ContainerAllocator> &) { return value(); } 
00174   static const uint64_t static_value1 = 0x1887016fd77eb33bULL;
00175   static const uint64_t static_value2 = 0x9e6335b14d02b156ULL;
00176 };
00177 
00178 template<class ContainerAllocator>
00179 struct DataType< ::tabletop_object_detector::TabletopDetectionResponse_<ContainerAllocator> > {
00180   static const char* value() 
00181   {
00182     return "tabletop_object_detector/TabletopDetectionResponse";
00183   }
00184 
00185   static const char* value(const  ::tabletop_object_detector::TabletopDetectionResponse_<ContainerAllocator> &) { return value(); } 
00186 };
00187 
00188 template<class ContainerAllocator>
00189 struct Definition< ::tabletop_object_detector::TabletopDetectionResponse_<ContainerAllocator> > {
00190   static const char* value() 
00191   {
00192     return "\n\
00193 TabletopDetectionResult detection\n\
00194 \n\
00195 \n\
00196 ================================================================================\n\
00197 MSG: tabletop_object_detector/TabletopDetectionResult\n\
00198 # Contains all the information from one run of the tabletop detection node\n\
00199 \n\
00200 # The information for the plane that has been detected\n\
00201 Table table\n\
00202 \n\
00203 # The raw clusters detected in the scan \n\
00204 sensor_msgs/PointCloud[] clusters\n\
00205 \n\
00206 # The list of potential models that have been detected for each cluster\n\
00207 # An empty list will be returned for a cluster that has no recognition results at all\n\
00208 household_objects_database_msgs/DatabaseModelPoseList[] models\n\
00209 \n\
00210 # For each cluster, the index of the list of models that was fit to that cluster\n\
00211 # keep in mind that multiple raw clusters can correspond to a single fit\n\
00212 int32[] cluster_model_indices\n\
00213 \n\
00214 # Whether the detection has succeeded or failed\n\
00215 int32 NO_CLOUD_RECEIVED = 1\n\
00216 int32 NO_TABLE = 2\n\
00217 int32 OTHER_ERROR = 3\n\
00218 int32 SUCCESS = 4\n\
00219 int32 result\n\
00220 \n\
00221 ================================================================================\n\
00222 MSG: tabletop_object_detector/Table\n\
00223 # Informs that a planar table has been detected at a given location\n\
00224 \n\
00225 # The pose gives you the transform that take you to the coordinate system\n\
00226 # of the table, with the origin somewhere in the table plane and the \n\
00227 # z axis normal to the plane\n\
00228 geometry_msgs/PoseStamped pose\n\
00229 \n\
00230 # These values give you the observed extents of the table, along x and y,\n\
00231 # in the table's own coordinate system (above)\n\
00232 # there is no guarantee that the origin of the table coordinate system is\n\
00233 # inside the boundary defined by these values. \n\
00234 float32 x_min\n\
00235 float32 x_max\n\
00236 float32 y_min\n\
00237 float32 y_max\n\
00238 \n\
00239 # There is no guarantee that the table does NOT extend further than these \n\
00240 # values; this is just as far as we've observed it.\n\
00241 \n\
00242 \n\
00243 # Newer table definition as triangle mesh of convex hull (relative to pose)\n\
00244 arm_navigation_msgs/Shape convex_hull\n\
00245 \n\
00246 ================================================================================\n\
00247 MSG: geometry_msgs/PoseStamped\n\
00248 # A Pose with reference coordinate frame and timestamp\n\
00249 Header header\n\
00250 Pose pose\n\
00251 \n\
00252 ================================================================================\n\
00253 MSG: std_msgs/Header\n\
00254 # Standard metadata for higher-level stamped data types.\n\
00255 # This is generally used to communicate timestamped data \n\
00256 # in a particular coordinate frame.\n\
00257 # \n\
00258 # sequence ID: consecutively increasing ID \n\
00259 uint32 seq\n\
00260 #Two-integer timestamp that is expressed as:\n\
00261 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00262 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00263 # time-handling sugar is provided by the client library\n\
00264 time stamp\n\
00265 #Frame this data is associated with\n\
00266 # 0: no frame\n\
00267 # 1: global frame\n\
00268 string frame_id\n\
00269 \n\
00270 ================================================================================\n\
00271 MSG: geometry_msgs/Pose\n\
00272 # A representation of pose in free space, composed of postion and orientation. \n\
00273 Point position\n\
00274 Quaternion orientation\n\
00275 \n\
00276 ================================================================================\n\
00277 MSG: geometry_msgs/Point\n\
00278 # This contains the position of a point in free space\n\
00279 float64 x\n\
00280 float64 y\n\
00281 float64 z\n\
00282 \n\
00283 ================================================================================\n\
00284 MSG: geometry_msgs/Quaternion\n\
00285 # This represents an orientation in free space in quaternion form.\n\
00286 \n\
00287 float64 x\n\
00288 float64 y\n\
00289 float64 z\n\
00290 float64 w\n\
00291 \n\
00292 ================================================================================\n\
00293 MSG: arm_navigation_msgs/Shape\n\
00294 byte SPHERE=0\n\
00295 byte BOX=1\n\
00296 byte CYLINDER=2\n\
00297 byte MESH=3\n\
00298 \n\
00299 byte type\n\
00300 \n\
00301 \n\
00302 #### define sphere, box, cylinder ####\n\
00303 # the origin of each shape is considered at the shape's center\n\
00304 \n\
00305 # for sphere\n\
00306 # radius := dimensions[0]\n\
00307 \n\
00308 # for cylinder\n\
00309 # radius := dimensions[0]\n\
00310 # length := dimensions[1]\n\
00311 # the length is along the Z axis\n\
00312 \n\
00313 # for box\n\
00314 # size_x := dimensions[0]\n\
00315 # size_y := dimensions[1]\n\
00316 # size_z := dimensions[2]\n\
00317 float64[] dimensions\n\
00318 \n\
00319 \n\
00320 #### define mesh ####\n\
00321 \n\
00322 # list of triangles; triangle k is defined by tre vertices located\n\
00323 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\
00324 int32[] triangles\n\
00325 geometry_msgs/Point[] vertices\n\
00326 \n\
00327 ================================================================================\n\
00328 MSG: sensor_msgs/PointCloud\n\
00329 # This message holds a collection of 3d points, plus optional additional\n\
00330 # information about each point.\n\
00331 \n\
00332 # Time of sensor data acquisition, coordinate frame ID.\n\
00333 Header header\n\
00334 \n\
00335 # Array of 3d points. Each Point32 should be interpreted as a 3d point\n\
00336 # in the frame given in the header.\n\
00337 geometry_msgs/Point32[] points\n\
00338 \n\
00339 # Each channel should have the same number of elements as points array,\n\
00340 # and the data in each channel should correspond 1:1 with each point.\n\
00341 # Channel names in common practice are listed in ChannelFloat32.msg.\n\
00342 ChannelFloat32[] channels\n\
00343 \n\
00344 ================================================================================\n\
00345 MSG: geometry_msgs/Point32\n\
00346 # This contains the position of a point in free space(with 32 bits of precision).\n\
00347 # It is recommeded to use Point wherever possible instead of Point32.  \n\
00348 # \n\
00349 # This recommendation is to promote interoperability.  \n\
00350 #\n\
00351 # This message is designed to take up less space when sending\n\
00352 # lots of points at once, as in the case of a PointCloud.  \n\
00353 \n\
00354 float32 x\n\
00355 float32 y\n\
00356 float32 z\n\
00357 ================================================================================\n\
00358 MSG: sensor_msgs/ChannelFloat32\n\
00359 # This message is used by the PointCloud message to hold optional data\n\
00360 # associated with each point in the cloud. The length of the values\n\
00361 # array should be the same as the length of the points array in the\n\
00362 # PointCloud, and each value should be associated with the corresponding\n\
00363 # point.\n\
00364 \n\
00365 # Channel names in existing practice include:\n\
00366 #   \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
00367 #              This is opposite to usual conventions but remains for\n\
00368 #              historical reasons. The newer PointCloud2 message has no\n\
00369 #              such problem.\n\
00370 #   \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
00371 #           (R,G,B) values packed into the least significant 24 bits,\n\
00372 #           in order.\n\
00373 #   \"intensity\" - laser or pixel intensity.\n\
00374 #   \"distance\"\n\
00375 \n\
00376 # The channel name should give semantics of the channel (e.g.\n\
00377 # \"intensity\" instead of \"value\").\n\
00378 string name\n\
00379 \n\
00380 # The values array should be 1-1 with the elements of the associated\n\
00381 # PointCloud.\n\
00382 float32[] values\n\
00383 \n\
00384 ================================================================================\n\
00385 MSG: household_objects_database_msgs/DatabaseModelPoseList\n\
00386 # stores a list of possible database models recognition results\n\
00387 DatabaseModelPose[] model_list\n\
00388 ================================================================================\n\
00389 MSG: household_objects_database_msgs/DatabaseModelPose\n\
00390 # Informs that a specific model from the Model Database has been \n\
00391 # identified at a certain location\n\
00392 \n\
00393 # the database id of the model\n\
00394 int32 model_id\n\
00395 \n\
00396 # the pose that it can be found in\n\
00397 geometry_msgs/PoseStamped pose\n\
00398 \n\
00399 # a measure of the confidence level in this detection result\n\
00400 float32 confidence\n\
00401 \n\
00402 # the name of the object detector that generated this detection result\n\
00403 string detector_name\n\
00404 \n\
00405 ";
00406   }
00407 
00408   static const char* value(const  ::tabletop_object_detector::TabletopDetectionResponse_<ContainerAllocator> &) { return value(); } 
00409 };
00410 
00411 } // namespace message_traits
00412 } // namespace ros
00413 
00414 namespace ros
00415 {
00416 namespace serialization
00417 {
00418 
00419 template<class ContainerAllocator> struct Serializer< ::tabletop_object_detector::TabletopDetectionRequest_<ContainerAllocator> >
00420 {
00421   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00422   {
00423     stream.next(m.return_clusters);
00424     stream.next(m.return_models);
00425     stream.next(m.num_models);
00426   }
00427 
00428   ROS_DECLARE_ALLINONE_SERIALIZER;
00429 }; // struct TabletopDetectionRequest_
00430 } // namespace serialization
00431 } // namespace ros
00432 
00433 
00434 namespace ros
00435 {
00436 namespace serialization
00437 {
00438 
00439 template<class ContainerAllocator> struct Serializer< ::tabletop_object_detector::TabletopDetectionResponse_<ContainerAllocator> >
00440 {
00441   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00442   {
00443     stream.next(m.detection);
00444   }
00445 
00446   ROS_DECLARE_ALLINONE_SERIALIZER;
00447 }; // struct TabletopDetectionResponse_
00448 } // namespace serialization
00449 } // namespace ros
00450 
00451 namespace ros
00452 {
00453 namespace service_traits
00454 {
00455 template<>
00456 struct MD5Sum<tabletop_object_detector::TabletopDetection> {
00457   static const char* value() 
00458   {
00459     return "2c2af970832ab0ca635bc95df7de690a";
00460   }
00461 
00462   static const char* value(const tabletop_object_detector::TabletopDetection&) { return value(); } 
00463 };
00464 
00465 template<>
00466 struct DataType<tabletop_object_detector::TabletopDetection> {
00467   static const char* value() 
00468   {
00469     return "tabletop_object_detector/TabletopDetection";
00470   }
00471 
00472   static const char* value(const tabletop_object_detector::TabletopDetection&) { return value(); } 
00473 };
00474 
00475 template<class ContainerAllocator>
00476 struct MD5Sum<tabletop_object_detector::TabletopDetectionRequest_<ContainerAllocator> > {
00477   static const char* value() 
00478   {
00479     return "2c2af970832ab0ca635bc95df7de690a";
00480   }
00481 
00482   static const char* value(const tabletop_object_detector::TabletopDetectionRequest_<ContainerAllocator> &) { return value(); } 
00483 };
00484 
00485 template<class ContainerAllocator>
00486 struct DataType<tabletop_object_detector::TabletopDetectionRequest_<ContainerAllocator> > {
00487   static const char* value() 
00488   {
00489     return "tabletop_object_detector/TabletopDetection";
00490   }
00491 
00492   static const char* value(const tabletop_object_detector::TabletopDetectionRequest_<ContainerAllocator> &) { return value(); } 
00493 };
00494 
00495 template<class ContainerAllocator>
00496 struct MD5Sum<tabletop_object_detector::TabletopDetectionResponse_<ContainerAllocator> > {
00497   static const char* value() 
00498   {
00499     return "2c2af970832ab0ca635bc95df7de690a";
00500   }
00501 
00502   static const char* value(const tabletop_object_detector::TabletopDetectionResponse_<ContainerAllocator> &) { return value(); } 
00503 };
00504 
00505 template<class ContainerAllocator>
00506 struct DataType<tabletop_object_detector::TabletopDetectionResponse_<ContainerAllocator> > {
00507   static const char* value() 
00508   {
00509     return "tabletop_object_detector/TabletopDetection";
00510   }
00511 
00512   static const char* value(const tabletop_object_detector::TabletopDetectionResponse_<ContainerAllocator> &) { return value(); } 
00513 };
00514 
00515 } // namespace service_traits
00516 } // namespace ros
00517 
00518 #endif // TABLETOP_OBJECT_DETECTOR_SERVICE_TABLETOPDETECTION_H
00519 


tabletop_object_detector
Author(s): Marius Muja and Matei Ciocarlie
autogenerated on Fri Jan 3 2014 11:48:48