TabletopDetectionResult.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/msg/TabletopDetectionResult.msg */
00002 #ifndef TABLETOP_OBJECT_DETECTOR_MESSAGE_TABLETOPDETECTIONRESULT_H
00003 #define TABLETOP_OBJECT_DETECTOR_MESSAGE_TABLETOPDETECTIONRESULT_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 "tabletop_object_detector/Table.h"
00018 #include "sensor_msgs/PointCloud.h"
00019 #include "household_objects_database_msgs/DatabaseModelPoseList.h"
00020 
00021 namespace tabletop_object_detector
00022 {
00023 template <class ContainerAllocator>
00024 struct TabletopDetectionResult_ {
00025   typedef TabletopDetectionResult_<ContainerAllocator> Type;
00026 
00027   TabletopDetectionResult_()
00028   : table()
00029   , clusters()
00030   , models()
00031   , cluster_model_indices()
00032   , result(0)
00033   {
00034   }
00035 
00036   TabletopDetectionResult_(const ContainerAllocator& _alloc)
00037   : table(_alloc)
00038   , clusters(_alloc)
00039   , models(_alloc)
00040   , cluster_model_indices(_alloc)
00041   , result(0)
00042   {
00043   }
00044 
00045   typedef  ::tabletop_object_detector::Table_<ContainerAllocator>  _table_type;
00046    ::tabletop_object_detector::Table_<ContainerAllocator>  table;
00047 
00048   typedef std::vector< ::sensor_msgs::PointCloud_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sensor_msgs::PointCloud_<ContainerAllocator> >::other >  _clusters_type;
00049   std::vector< ::sensor_msgs::PointCloud_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sensor_msgs::PointCloud_<ContainerAllocator> >::other >  clusters;
00050 
00051   typedef std::vector< ::household_objects_database_msgs::DatabaseModelPoseList_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::household_objects_database_msgs::DatabaseModelPoseList_<ContainerAllocator> >::other >  _models_type;
00052   std::vector< ::household_objects_database_msgs::DatabaseModelPoseList_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::household_objects_database_msgs::DatabaseModelPoseList_<ContainerAllocator> >::other >  models;
00053 
00054   typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  _cluster_model_indices_type;
00055   std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other >  cluster_model_indices;
00056 
00057   typedef int32_t _result_type;
00058   int32_t result;
00059 
00060   enum { NO_CLOUD_RECEIVED = 1 };
00061   enum { NO_TABLE = 2 };
00062   enum { OTHER_ERROR = 3 };
00063   enum { SUCCESS = 4 };
00064 
00065   typedef boost::shared_ptr< ::tabletop_object_detector::TabletopDetectionResult_<ContainerAllocator> > Ptr;
00066   typedef boost::shared_ptr< ::tabletop_object_detector::TabletopDetectionResult_<ContainerAllocator>  const> ConstPtr;
00067   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00068 }; // struct TabletopDetectionResult
00069 typedef  ::tabletop_object_detector::TabletopDetectionResult_<std::allocator<void> > TabletopDetectionResult;
00070 
00071 typedef boost::shared_ptr< ::tabletop_object_detector::TabletopDetectionResult> TabletopDetectionResultPtr;
00072 typedef boost::shared_ptr< ::tabletop_object_detector::TabletopDetectionResult const> TabletopDetectionResultConstPtr;
00073 
00074 
00075 template<typename ContainerAllocator>
00076 std::ostream& operator<<(std::ostream& s, const  ::tabletop_object_detector::TabletopDetectionResult_<ContainerAllocator> & v)
00077 {
00078   ros::message_operations::Printer< ::tabletop_object_detector::TabletopDetectionResult_<ContainerAllocator> >::stream(s, "", v);
00079   return s;}
00080 
00081 } // namespace tabletop_object_detector
00082 
00083 namespace ros
00084 {
00085 namespace message_traits
00086 {
00087 template<class ContainerAllocator> struct IsMessage< ::tabletop_object_detector::TabletopDetectionResult_<ContainerAllocator> > : public TrueType {};
00088 template<class ContainerAllocator> struct IsMessage< ::tabletop_object_detector::TabletopDetectionResult_<ContainerAllocator>  const> : public TrueType {};
00089 template<class ContainerAllocator>
00090 struct MD5Sum< ::tabletop_object_detector::TabletopDetectionResult_<ContainerAllocator> > {
00091   static const char* value() 
00092   {
00093     return "026c0e5e13258b4a96f7d3999ea3cd64";
00094   }
00095 
00096   static const char* value(const  ::tabletop_object_detector::TabletopDetectionResult_<ContainerAllocator> &) { return value(); } 
00097   static const uint64_t static_value1 = 0x026c0e5e13258b4aULL;
00098   static const uint64_t static_value2 = 0x96f7d3999ea3cd64ULL;
00099 };
00100 
00101 template<class ContainerAllocator>
00102 struct DataType< ::tabletop_object_detector::TabletopDetectionResult_<ContainerAllocator> > {
00103   static const char* value() 
00104   {
00105     return "tabletop_object_detector/TabletopDetectionResult";
00106   }
00107 
00108   static const char* value(const  ::tabletop_object_detector::TabletopDetectionResult_<ContainerAllocator> &) { return value(); } 
00109 };
00110 
00111 template<class ContainerAllocator>
00112 struct Definition< ::tabletop_object_detector::TabletopDetectionResult_<ContainerAllocator> > {
00113   static const char* value() 
00114   {
00115     return "# Contains all the information from one run of the tabletop detection node\n\
00116 \n\
00117 # The information for the plane that has been detected\n\
00118 Table table\n\
00119 \n\
00120 # The raw clusters detected in the scan \n\
00121 sensor_msgs/PointCloud[] clusters\n\
00122 \n\
00123 # The list of potential models that have been detected for each cluster\n\
00124 # An empty list will be returned for a cluster that has no recognition results at all\n\
00125 household_objects_database_msgs/DatabaseModelPoseList[] models\n\
00126 \n\
00127 # For each cluster, the index of the list of models that was fit to that cluster\n\
00128 # keep in mind that multiple raw clusters can correspond to a single fit\n\
00129 int32[] cluster_model_indices\n\
00130 \n\
00131 # Whether the detection has succeeded or failed\n\
00132 int32 NO_CLOUD_RECEIVED = 1\n\
00133 int32 NO_TABLE = 2\n\
00134 int32 OTHER_ERROR = 3\n\
00135 int32 SUCCESS = 4\n\
00136 int32 result\n\
00137 \n\
00138 ================================================================================\n\
00139 MSG: tabletop_object_detector/Table\n\
00140 # Informs that a planar table has been detected at a given location\n\
00141 \n\
00142 # The pose gives you the transform that take you to the coordinate system\n\
00143 # of the table, with the origin somewhere in the table plane and the \n\
00144 # z axis normal to the plane\n\
00145 geometry_msgs/PoseStamped pose\n\
00146 \n\
00147 # These values give you the observed extents of the table, along x and y,\n\
00148 # in the table's own coordinate system (above)\n\
00149 # there is no guarantee that the origin of the table coordinate system is\n\
00150 # inside the boundary defined by these values. \n\
00151 float32 x_min\n\
00152 float32 x_max\n\
00153 float32 y_min\n\
00154 float32 y_max\n\
00155 \n\
00156 # There is no guarantee that the table does NOT extend further than these \n\
00157 # values; this is just as far as we've observed it.\n\
00158 \n\
00159 \n\
00160 # Newer table definition as triangle mesh of convex hull (relative to pose)\n\
00161 arm_navigation_msgs/Shape convex_hull\n\
00162 \n\
00163 ================================================================================\n\
00164 MSG: geometry_msgs/PoseStamped\n\
00165 # A Pose with reference coordinate frame and timestamp\n\
00166 Header header\n\
00167 Pose pose\n\
00168 \n\
00169 ================================================================================\n\
00170 MSG: std_msgs/Header\n\
00171 # Standard metadata for higher-level stamped data types.\n\
00172 # This is generally used to communicate timestamped data \n\
00173 # in a particular coordinate frame.\n\
00174 # \n\
00175 # sequence ID: consecutively increasing ID \n\
00176 uint32 seq\n\
00177 #Two-integer timestamp that is expressed as:\n\
00178 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00179 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00180 # time-handling sugar is provided by the client library\n\
00181 time stamp\n\
00182 #Frame this data is associated with\n\
00183 # 0: no frame\n\
00184 # 1: global frame\n\
00185 string frame_id\n\
00186 \n\
00187 ================================================================================\n\
00188 MSG: geometry_msgs/Pose\n\
00189 # A representation of pose in free space, composed of postion and orientation. \n\
00190 Point position\n\
00191 Quaternion orientation\n\
00192 \n\
00193 ================================================================================\n\
00194 MSG: geometry_msgs/Point\n\
00195 # This contains the position of a point in free space\n\
00196 float64 x\n\
00197 float64 y\n\
00198 float64 z\n\
00199 \n\
00200 ================================================================================\n\
00201 MSG: geometry_msgs/Quaternion\n\
00202 # This represents an orientation in free space in quaternion form.\n\
00203 \n\
00204 float64 x\n\
00205 float64 y\n\
00206 float64 z\n\
00207 float64 w\n\
00208 \n\
00209 ================================================================================\n\
00210 MSG: arm_navigation_msgs/Shape\n\
00211 byte SPHERE=0\n\
00212 byte BOX=1\n\
00213 byte CYLINDER=2\n\
00214 byte MESH=3\n\
00215 \n\
00216 byte type\n\
00217 \n\
00218 \n\
00219 #### define sphere, box, cylinder ####\n\
00220 # the origin of each shape is considered at the shape's center\n\
00221 \n\
00222 # for sphere\n\
00223 # radius := dimensions[0]\n\
00224 \n\
00225 # for cylinder\n\
00226 # radius := dimensions[0]\n\
00227 # length := dimensions[1]\n\
00228 # the length is along the Z axis\n\
00229 \n\
00230 # for box\n\
00231 # size_x := dimensions[0]\n\
00232 # size_y := dimensions[1]\n\
00233 # size_z := dimensions[2]\n\
00234 float64[] dimensions\n\
00235 \n\
00236 \n\
00237 #### define mesh ####\n\
00238 \n\
00239 # list of triangles; triangle k is defined by tre vertices located\n\
00240 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\
00241 int32[] triangles\n\
00242 geometry_msgs/Point[] vertices\n\
00243 \n\
00244 ================================================================================\n\
00245 MSG: sensor_msgs/PointCloud\n\
00246 # This message holds a collection of 3d points, plus optional additional\n\
00247 # information about each point.\n\
00248 \n\
00249 # Time of sensor data acquisition, coordinate frame ID.\n\
00250 Header header\n\
00251 \n\
00252 # Array of 3d points. Each Point32 should be interpreted as a 3d point\n\
00253 # in the frame given in the header.\n\
00254 geometry_msgs/Point32[] points\n\
00255 \n\
00256 # Each channel should have the same number of elements as points array,\n\
00257 # and the data in each channel should correspond 1:1 with each point.\n\
00258 # Channel names in common practice are listed in ChannelFloat32.msg.\n\
00259 ChannelFloat32[] channels\n\
00260 \n\
00261 ================================================================================\n\
00262 MSG: geometry_msgs/Point32\n\
00263 # This contains the position of a point in free space(with 32 bits of precision).\n\
00264 # It is recommeded to use Point wherever possible instead of Point32.  \n\
00265 # \n\
00266 # This recommendation is to promote interoperability.  \n\
00267 #\n\
00268 # This message is designed to take up less space when sending\n\
00269 # lots of points at once, as in the case of a PointCloud.  \n\
00270 \n\
00271 float32 x\n\
00272 float32 y\n\
00273 float32 z\n\
00274 ================================================================================\n\
00275 MSG: sensor_msgs/ChannelFloat32\n\
00276 # This message is used by the PointCloud message to hold optional data\n\
00277 # associated with each point in the cloud. The length of the values\n\
00278 # array should be the same as the length of the points array in the\n\
00279 # PointCloud, and each value should be associated with the corresponding\n\
00280 # point.\n\
00281 \n\
00282 # Channel names in existing practice include:\n\
00283 #   \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
00284 #              This is opposite to usual conventions but remains for\n\
00285 #              historical reasons. The newer PointCloud2 message has no\n\
00286 #              such problem.\n\
00287 #   \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
00288 #           (R,G,B) values packed into the least significant 24 bits,\n\
00289 #           in order.\n\
00290 #   \"intensity\" - laser or pixel intensity.\n\
00291 #   \"distance\"\n\
00292 \n\
00293 # The channel name should give semantics of the channel (e.g.\n\
00294 # \"intensity\" instead of \"value\").\n\
00295 string name\n\
00296 \n\
00297 # The values array should be 1-1 with the elements of the associated\n\
00298 # PointCloud.\n\
00299 float32[] values\n\
00300 \n\
00301 ================================================================================\n\
00302 MSG: household_objects_database_msgs/DatabaseModelPoseList\n\
00303 # stores a list of possible database models recognition results\n\
00304 DatabaseModelPose[] model_list\n\
00305 ================================================================================\n\
00306 MSG: household_objects_database_msgs/DatabaseModelPose\n\
00307 # Informs that a specific model from the Model Database has been \n\
00308 # identified at a certain location\n\
00309 \n\
00310 # the database id of the model\n\
00311 int32 model_id\n\
00312 \n\
00313 # the pose that it can be found in\n\
00314 geometry_msgs/PoseStamped pose\n\
00315 \n\
00316 # a measure of the confidence level in this detection result\n\
00317 float32 confidence\n\
00318 \n\
00319 # the name of the object detector that generated this detection result\n\
00320 string detector_name\n\
00321 \n\
00322 ";
00323   }
00324 
00325   static const char* value(const  ::tabletop_object_detector::TabletopDetectionResult_<ContainerAllocator> &) { return value(); } 
00326 };
00327 
00328 } // namespace message_traits
00329 } // namespace ros
00330 
00331 namespace ros
00332 {
00333 namespace serialization
00334 {
00335 
00336 template<class ContainerAllocator> struct Serializer< ::tabletop_object_detector::TabletopDetectionResult_<ContainerAllocator> >
00337 {
00338   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00339   {
00340     stream.next(m.table);
00341     stream.next(m.clusters);
00342     stream.next(m.models);
00343     stream.next(m.cluster_model_indices);
00344     stream.next(m.result);
00345   }
00346 
00347   ROS_DECLARE_ALLINONE_SERIALIZER;
00348 }; // struct TabletopDetectionResult_
00349 } // namespace serialization
00350 } // namespace ros
00351 
00352 namespace ros
00353 {
00354 namespace message_operations
00355 {
00356 
00357 template<class ContainerAllocator>
00358 struct Printer< ::tabletop_object_detector::TabletopDetectionResult_<ContainerAllocator> >
00359 {
00360   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::tabletop_object_detector::TabletopDetectionResult_<ContainerAllocator> & v) 
00361   {
00362     s << indent << "table: ";
00363 s << std::endl;
00364     Printer< ::tabletop_object_detector::Table_<ContainerAllocator> >::stream(s, indent + "  ", v.table);
00365     s << indent << "clusters[]" << std::endl;
00366     for (size_t i = 0; i < v.clusters.size(); ++i)
00367     {
00368       s << indent << "  clusters[" << i << "]: ";
00369       s << std::endl;
00370       s << indent;
00371       Printer< ::sensor_msgs::PointCloud_<ContainerAllocator> >::stream(s, indent + "    ", v.clusters[i]);
00372     }
00373     s << indent << "models[]" << std::endl;
00374     for (size_t i = 0; i < v.models.size(); ++i)
00375     {
00376       s << indent << "  models[" << i << "]: ";
00377       s << std::endl;
00378       s << indent;
00379       Printer< ::household_objects_database_msgs::DatabaseModelPoseList_<ContainerAllocator> >::stream(s, indent + "    ", v.models[i]);
00380     }
00381     s << indent << "cluster_model_indices[]" << std::endl;
00382     for (size_t i = 0; i < v.cluster_model_indices.size(); ++i)
00383     {
00384       s << indent << "  cluster_model_indices[" << i << "]: ";
00385       Printer<int32_t>::stream(s, indent + "  ", v.cluster_model_indices[i]);
00386     }
00387     s << indent << "result: ";
00388     Printer<int32_t>::stream(s, indent + "  ", v.result);
00389   }
00390 };
00391 
00392 
00393 } // namespace message_operations
00394 } // namespace ros
00395 
00396 #endif // TABLETOP_OBJECT_DETECTOR_MESSAGE_TABLETOPDETECTIONRESULT_H
00397 


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