ModelHypothesisList.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/object_recognition_gui/msg/ModelHypothesisList.msg */
00002 #ifndef OBJECT_RECOGNITION_GUI_MESSAGE_MODELHYPOTHESISLIST_H
00003 #define OBJECT_RECOGNITION_GUI_MESSAGE_MODELHYPOTHESISLIST_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 "object_recognition_gui/ModelHypothesis.h"
00018 
00019 namespace object_recognition_gui
00020 {
00021 template <class ContainerAllocator>
00022 struct ModelHypothesisList_ {
00023   typedef ModelHypothesisList_<ContainerAllocator> Type;
00024 
00025   ModelHypothesisList_()
00026   : hypotheses()
00027   , accept(false)
00028   {
00029   }
00030 
00031   ModelHypothesisList_(const ContainerAllocator& _alloc)
00032   : hypotheses(_alloc)
00033   , accept(false)
00034   {
00035   }
00036 
00037   typedef std::vector< ::object_recognition_gui::ModelHypothesis_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::object_recognition_gui::ModelHypothesis_<ContainerAllocator> >::other >  _hypotheses_type;
00038   std::vector< ::object_recognition_gui::ModelHypothesis_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::object_recognition_gui::ModelHypothesis_<ContainerAllocator> >::other >  hypotheses;
00039 
00040   typedef uint8_t _accept_type;
00041   uint8_t accept;
00042 
00043 
00044   typedef boost::shared_ptr< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> > Ptr;
00045   typedef boost::shared_ptr< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator>  const> ConstPtr;
00046   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00047 }; // struct ModelHypothesisList
00048 typedef  ::object_recognition_gui::ModelHypothesisList_<std::allocator<void> > ModelHypothesisList;
00049 
00050 typedef boost::shared_ptr< ::object_recognition_gui::ModelHypothesisList> ModelHypothesisListPtr;
00051 typedef boost::shared_ptr< ::object_recognition_gui::ModelHypothesisList const> ModelHypothesisListConstPtr;
00052 
00053 
00054 template<typename ContainerAllocator>
00055 std::ostream& operator<<(std::ostream& s, const  ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> & v)
00056 {
00057   ros::message_operations::Printer< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> >::stream(s, "", v);
00058   return s;}
00059 
00060 } // namespace object_recognition_gui
00061 
00062 namespace ros
00063 {
00064 namespace message_traits
00065 {
00066 template<class ContainerAllocator> struct IsMessage< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> > : public TrueType {};
00067 template<class ContainerAllocator> struct IsMessage< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator>  const> : public TrueType {};
00068 template<class ContainerAllocator>
00069 struct MD5Sum< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> > {
00070   static const char* value() 
00071   {
00072     return "8d08459b65fa27d555aca1d8d3e6c944";
00073   }
00074 
00075   static const char* value(const  ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> &) { return value(); } 
00076   static const uint64_t static_value1 = 0x8d08459b65fa27d5ULL;
00077   static const uint64_t static_value2 = 0x55aca1d8d3e6c944ULL;
00078 };
00079 
00080 template<class ContainerAllocator>
00081 struct DataType< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> > {
00082   static const char* value() 
00083   {
00084     return "object_recognition_gui/ModelHypothesisList";
00085   }
00086 
00087   static const char* value(const  ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> &) { return value(); } 
00088 };
00089 
00090 template<class ContainerAllocator>
00091 struct Definition< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> > {
00092   static const char* value() 
00093   {
00094     return "ModelHypothesis[] hypotheses\n\
00095 \n\
00096 #initial guess if this can be a correct recognition result at all\n\
00097 bool accept\n\
00098 ================================================================================\n\
00099 MSG: object_recognition_gui/ModelHypothesis\n\
00100 #describes a hypothesis about a recognized object (mesh+pose)\n\
00101 \n\
00102 arm_navigation_msgs/Shape mesh\n\
00103 geometry_msgs/PoseStamped pose\n\
00104 \n\
00105 ================================================================================\n\
00106 MSG: arm_navigation_msgs/Shape\n\
00107 byte SPHERE=0\n\
00108 byte BOX=1\n\
00109 byte CYLINDER=2\n\
00110 byte MESH=3\n\
00111 \n\
00112 byte type\n\
00113 \n\
00114 \n\
00115 #### define sphere, box, cylinder ####\n\
00116 # the origin of each shape is considered at the shape's center\n\
00117 \n\
00118 # for sphere\n\
00119 # radius := dimensions[0]\n\
00120 \n\
00121 # for cylinder\n\
00122 # radius := dimensions[0]\n\
00123 # length := dimensions[1]\n\
00124 # the length is along the Z axis\n\
00125 \n\
00126 # for box\n\
00127 # size_x := dimensions[0]\n\
00128 # size_y := dimensions[1]\n\
00129 # size_z := dimensions[2]\n\
00130 float64[] dimensions\n\
00131 \n\
00132 \n\
00133 #### define mesh ####\n\
00134 \n\
00135 # list of triangles; triangle k is defined by tre vertices located\n\
00136 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\
00137 int32[] triangles\n\
00138 geometry_msgs/Point[] vertices\n\
00139 \n\
00140 ================================================================================\n\
00141 MSG: geometry_msgs/Point\n\
00142 # This contains the position of a point in free space\n\
00143 float64 x\n\
00144 float64 y\n\
00145 float64 z\n\
00146 \n\
00147 ================================================================================\n\
00148 MSG: geometry_msgs/PoseStamped\n\
00149 # A Pose with reference coordinate frame and timestamp\n\
00150 Header header\n\
00151 Pose pose\n\
00152 \n\
00153 ================================================================================\n\
00154 MSG: std_msgs/Header\n\
00155 # Standard metadata for higher-level stamped data types.\n\
00156 # This is generally used to communicate timestamped data \n\
00157 # in a particular coordinate frame.\n\
00158 # \n\
00159 # sequence ID: consecutively increasing ID \n\
00160 uint32 seq\n\
00161 #Two-integer timestamp that is expressed as:\n\
00162 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00163 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00164 # time-handling sugar is provided by the client library\n\
00165 time stamp\n\
00166 #Frame this data is associated with\n\
00167 # 0: no frame\n\
00168 # 1: global frame\n\
00169 string frame_id\n\
00170 \n\
00171 ================================================================================\n\
00172 MSG: geometry_msgs/Pose\n\
00173 # A representation of pose in free space, composed of postion and orientation. \n\
00174 Point position\n\
00175 Quaternion orientation\n\
00176 \n\
00177 ================================================================================\n\
00178 MSG: geometry_msgs/Quaternion\n\
00179 # This represents an orientation in free space in quaternion form.\n\
00180 \n\
00181 float64 x\n\
00182 float64 y\n\
00183 float64 z\n\
00184 float64 w\n\
00185 \n\
00186 ";
00187   }
00188 
00189   static const char* value(const  ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> &) { return value(); } 
00190 };
00191 
00192 } // namespace message_traits
00193 } // namespace ros
00194 
00195 namespace ros
00196 {
00197 namespace serialization
00198 {
00199 
00200 template<class ContainerAllocator> struct Serializer< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> >
00201 {
00202   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00203   {
00204     stream.next(m.hypotheses);
00205     stream.next(m.accept);
00206   }
00207 
00208   ROS_DECLARE_ALLINONE_SERIALIZER;
00209 }; // struct ModelHypothesisList_
00210 } // namespace serialization
00211 } // namespace ros
00212 
00213 namespace ros
00214 {
00215 namespace message_operations
00216 {
00217 
00218 template<class ContainerAllocator>
00219 struct Printer< ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> >
00220 {
00221   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::object_recognition_gui::ModelHypothesisList_<ContainerAllocator> & v) 
00222   {
00223     s << indent << "hypotheses[]" << std::endl;
00224     for (size_t i = 0; i < v.hypotheses.size(); ++i)
00225     {
00226       s << indent << "  hypotheses[" << i << "]: ";
00227       s << std::endl;
00228       s << indent;
00229       Printer< ::object_recognition_gui::ModelHypothesis_<ContainerAllocator> >::stream(s, indent + "    ", v.hypotheses[i]);
00230     }
00231     s << indent << "accept: ";
00232     Printer<uint8_t>::stream(s, indent + "  ", v.accept);
00233   }
00234 };
00235 
00236 
00237 } // namespace message_operations
00238 } // namespace ros
00239 
00240 #endif // OBJECT_RECOGNITION_GUI_MESSAGE_MODELHYPOTHESISLIST_H
00241 


object_recognition_gui
Author(s): David Gossow
autogenerated on Fri Jan 3 2014 12:01:17