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


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