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


tabletop_object_detector
Author(s): Marius Muja and Matei Ciocarlie
autogenerated on Mon Oct 6 2014 11:45:33