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


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