Table.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/Table.msg */
00002 #ifndef TABLETOP_OBJECT_DETECTOR_MESSAGE_TABLE_H
00003 #define TABLETOP_OBJECT_DETECTOR_MESSAGE_TABLE_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 "geometry_msgs/PoseStamped.h"
00018 #include "arm_navigation_msgs/Shape.h"
00019 
00020 namespace tabletop_object_detector
00021 {
00022 template <class ContainerAllocator>
00023 struct Table_ {
00024   typedef Table_<ContainerAllocator> Type;
00025 
00026   Table_()
00027   : pose()
00028   , x_min(0.0)
00029   , x_max(0.0)
00030   , y_min(0.0)
00031   , y_max(0.0)
00032   , convex_hull()
00033   {
00034   }
00035 
00036   Table_(const ContainerAllocator& _alloc)
00037   : pose(_alloc)
00038   , x_min(0.0)
00039   , x_max(0.0)
00040   , y_min(0.0)
00041   , y_max(0.0)
00042   , convex_hull(_alloc)
00043   {
00044   }
00045 
00046   typedef  ::geometry_msgs::PoseStamped_<ContainerAllocator>  _pose_type;
00047    ::geometry_msgs::PoseStamped_<ContainerAllocator>  pose;
00048 
00049   typedef float _x_min_type;
00050   float x_min;
00051 
00052   typedef float _x_max_type;
00053   float x_max;
00054 
00055   typedef float _y_min_type;
00056   float y_min;
00057 
00058   typedef float _y_max_type;
00059   float y_max;
00060 
00061   typedef  ::arm_navigation_msgs::Shape_<ContainerAllocator>  _convex_hull_type;
00062    ::arm_navigation_msgs::Shape_<ContainerAllocator>  convex_hull;
00063 
00064 
00065   typedef boost::shared_ptr< ::tabletop_object_detector::Table_<ContainerAllocator> > Ptr;
00066   typedef boost::shared_ptr< ::tabletop_object_detector::Table_<ContainerAllocator>  const> ConstPtr;
00067   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00068 }; // struct Table
00069 typedef  ::tabletop_object_detector::Table_<std::allocator<void> > Table;
00070 
00071 typedef boost::shared_ptr< ::tabletop_object_detector::Table> TablePtr;
00072 typedef boost::shared_ptr< ::tabletop_object_detector::Table const> TableConstPtr;
00073 
00074 
00075 template<typename ContainerAllocator>
00076 std::ostream& operator<<(std::ostream& s, const  ::tabletop_object_detector::Table_<ContainerAllocator> & v)
00077 {
00078   ros::message_operations::Printer< ::tabletop_object_detector::Table_<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::Table_<ContainerAllocator> > : public TrueType {};
00088 template<class ContainerAllocator> struct IsMessage< ::tabletop_object_detector::Table_<ContainerAllocator>  const> : public TrueType {};
00089 template<class ContainerAllocator>
00090 struct MD5Sum< ::tabletop_object_detector::Table_<ContainerAllocator> > {
00091   static const char* value() 
00092   {
00093     return "886d01470541b85c431cbb9613db9497";
00094   }
00095 
00096   static const char* value(const  ::tabletop_object_detector::Table_<ContainerAllocator> &) { return value(); } 
00097   static const uint64_t static_value1 = 0x886d01470541b85cULL;
00098   static const uint64_t static_value2 = 0x431cbb9613db9497ULL;
00099 };
00100 
00101 template<class ContainerAllocator>
00102 struct DataType< ::tabletop_object_detector::Table_<ContainerAllocator> > {
00103   static const char* value() 
00104   {
00105     return "tabletop_object_detector/Table";
00106   }
00107 
00108   static const char* value(const  ::tabletop_object_detector::Table_<ContainerAllocator> &) { return value(); } 
00109 };
00110 
00111 template<class ContainerAllocator>
00112 struct Definition< ::tabletop_object_detector::Table_<ContainerAllocator> > {
00113   static const char* value() 
00114   {
00115     return "# Informs that a planar table has been detected at a given location\n\
00116 \n\
00117 # The pose gives you the transform that take you to the coordinate system\n\
00118 # of the table, with the origin somewhere in the table plane and the \n\
00119 # z axis normal to the plane\n\
00120 geometry_msgs/PoseStamped pose\n\
00121 \n\
00122 # These values give you the observed extents of the table, along x and y,\n\
00123 # in the table's own coordinate system (above)\n\
00124 # there is no guarantee that the origin of the table coordinate system is\n\
00125 # inside the boundary defined by these values. \n\
00126 float32 x_min\n\
00127 float32 x_max\n\
00128 float32 y_min\n\
00129 float32 y_max\n\
00130 \n\
00131 # There is no guarantee that the table does NOT extend further than these \n\
00132 # values; this is just as far as we've observed it.\n\
00133 \n\
00134 \n\
00135 # Newer table definition as triangle mesh of convex hull (relative to pose)\n\
00136 arm_navigation_msgs/Shape convex_hull\n\
00137 \n\
00138 ================================================================================\n\
00139 MSG: geometry_msgs/PoseStamped\n\
00140 # A Pose with reference coordinate frame and timestamp\n\
00141 Header header\n\
00142 Pose pose\n\
00143 \n\
00144 ================================================================================\n\
00145 MSG: std_msgs/Header\n\
00146 # Standard metadata for higher-level stamped data types.\n\
00147 # This is generally used to communicate timestamped data \n\
00148 # in a particular coordinate frame.\n\
00149 # \n\
00150 # sequence ID: consecutively increasing ID \n\
00151 uint32 seq\n\
00152 #Two-integer timestamp that is expressed as:\n\
00153 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00154 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00155 # time-handling sugar is provided by the client library\n\
00156 time stamp\n\
00157 #Frame this data is associated with\n\
00158 # 0: no frame\n\
00159 # 1: global frame\n\
00160 string frame_id\n\
00161 \n\
00162 ================================================================================\n\
00163 MSG: geometry_msgs/Pose\n\
00164 # A representation of pose in free space, composed of postion and orientation. \n\
00165 Point position\n\
00166 Quaternion orientation\n\
00167 \n\
00168 ================================================================================\n\
00169 MSG: geometry_msgs/Point\n\
00170 # This contains the position of a point in free space\n\
00171 float64 x\n\
00172 float64 y\n\
00173 float64 z\n\
00174 \n\
00175 ================================================================================\n\
00176 MSG: geometry_msgs/Quaternion\n\
00177 # This represents an orientation in free space in quaternion form.\n\
00178 \n\
00179 float64 x\n\
00180 float64 y\n\
00181 float64 z\n\
00182 float64 w\n\
00183 \n\
00184 ================================================================================\n\
00185 MSG: arm_navigation_msgs/Shape\n\
00186 byte SPHERE=0\n\
00187 byte BOX=1\n\
00188 byte CYLINDER=2\n\
00189 byte MESH=3\n\
00190 \n\
00191 byte type\n\
00192 \n\
00193 \n\
00194 #### define sphere, box, cylinder ####\n\
00195 # the origin of each shape is considered at the shape's center\n\
00196 \n\
00197 # for sphere\n\
00198 # radius := dimensions[0]\n\
00199 \n\
00200 # for cylinder\n\
00201 # radius := dimensions[0]\n\
00202 # length := dimensions[1]\n\
00203 # the length is along the Z axis\n\
00204 \n\
00205 # for box\n\
00206 # size_x := dimensions[0]\n\
00207 # size_y := dimensions[1]\n\
00208 # size_z := dimensions[2]\n\
00209 float64[] dimensions\n\
00210 \n\
00211 \n\
00212 #### define mesh ####\n\
00213 \n\
00214 # list of triangles; triangle k is defined by tre vertices located\n\
00215 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\
00216 int32[] triangles\n\
00217 geometry_msgs/Point[] vertices\n\
00218 \n\
00219 ";
00220   }
00221 
00222   static const char* value(const  ::tabletop_object_detector::Table_<ContainerAllocator> &) { return value(); } 
00223 };
00224 
00225 } // namespace message_traits
00226 } // namespace ros
00227 
00228 namespace ros
00229 {
00230 namespace serialization
00231 {
00232 
00233 template<class ContainerAllocator> struct Serializer< ::tabletop_object_detector::Table_<ContainerAllocator> >
00234 {
00235   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00236   {
00237     stream.next(m.pose);
00238     stream.next(m.x_min);
00239     stream.next(m.x_max);
00240     stream.next(m.y_min);
00241     stream.next(m.y_max);
00242     stream.next(m.convex_hull);
00243   }
00244 
00245   ROS_DECLARE_ALLINONE_SERIALIZER;
00246 }; // struct Table_
00247 } // namespace serialization
00248 } // namespace ros
00249 
00250 namespace ros
00251 {
00252 namespace message_operations
00253 {
00254 
00255 template<class ContainerAllocator>
00256 struct Printer< ::tabletop_object_detector::Table_<ContainerAllocator> >
00257 {
00258   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::tabletop_object_detector::Table_<ContainerAllocator> & v) 
00259   {
00260     s << indent << "pose: ";
00261 s << std::endl;
00262     Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + "  ", v.pose);
00263     s << indent << "x_min: ";
00264     Printer<float>::stream(s, indent + "  ", v.x_min);
00265     s << indent << "x_max: ";
00266     Printer<float>::stream(s, indent + "  ", v.x_max);
00267     s << indent << "y_min: ";
00268     Printer<float>::stream(s, indent + "  ", v.y_min);
00269     s << indent << "y_max: ";
00270     Printer<float>::stream(s, indent + "  ", v.y_max);
00271     s << indent << "convex_hull: ";
00272 s << std::endl;
00273     Printer< ::arm_navigation_msgs::Shape_<ContainerAllocator> >::stream(s, indent + "  ", v.convex_hull);
00274   }
00275 };
00276 
00277 
00278 } // namespace message_operations
00279 } // namespace ros
00280 
00281 #endif // TABLETOP_OBJECT_DETECTOR_MESSAGE_TABLE_H
00282 


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