Go to the documentation of this file.00001
00002 #ifndef COVERAGE_3D_MSGS_MESSAGE_TABLEDETECTION_H
00003 #define COVERAGE_3D_MSGS_MESSAGE_TABLEDETECTION_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 "std_msgs/Header.h"
00018 #include "geometry_msgs/Pose.h"
00019 #include "geometry_msgs/Point.h"
00020 #include "geometry_msgs/Point.h"
00021 #include "geometry_msgs/Point.h"
00022
00023 namespace coverage_3d_msgs
00024 {
00025 template <class ContainerAllocator>
00026 struct TableDetection_ {
00027 typedef TableDetection_<ContainerAllocator> Type;
00028
00029 TableDetection_()
00030 : header()
00031 , type(0)
00032 , center()
00033 , scale()
00034 , points()
00035 , hull()
00036 {
00037 }
00038
00039 TableDetection_(const ContainerAllocator& _alloc)
00040 : header(_alloc)
00041 , type(0)
00042 , center(_alloc)
00043 , scale(_alloc)
00044 , points(_alloc)
00045 , hull(_alloc)
00046 {
00047 }
00048
00049 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00050 ::std_msgs::Header_<ContainerAllocator> header;
00051
00052 typedef int32_t _type_type;
00053 int32_t type;
00054
00055 typedef ::geometry_msgs::Pose_<ContainerAllocator> _center_type;
00056 ::geometry_msgs::Pose_<ContainerAllocator> center;
00057
00058 typedef ::geometry_msgs::Point_<ContainerAllocator> _scale_type;
00059 ::geometry_msgs::Point_<ContainerAllocator> scale;
00060
00061 typedef std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > _points_type;
00062 std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > points;
00063
00064 typedef std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > _hull_type;
00065 std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > hull;
00066
00067
00068 typedef boost::shared_ptr< ::coverage_3d_msgs::TableDetection_<ContainerAllocator> > Ptr;
00069 typedef boost::shared_ptr< ::coverage_3d_msgs::TableDetection_<ContainerAllocator> const> ConstPtr;
00070 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00071 };
00072 typedef ::coverage_3d_msgs::TableDetection_<std::allocator<void> > TableDetection;
00073
00074 typedef boost::shared_ptr< ::coverage_3d_msgs::TableDetection> TableDetectionPtr;
00075 typedef boost::shared_ptr< ::coverage_3d_msgs::TableDetection const> TableDetectionConstPtr;
00076
00077
00078 template<typename ContainerAllocator>
00079 std::ostream& operator<<(std::ostream& s, const ::coverage_3d_msgs::TableDetection_<ContainerAllocator> & v)
00080 {
00081 ros::message_operations::Printer< ::coverage_3d_msgs::TableDetection_<ContainerAllocator> >::stream(s, "", v);
00082 return s;}
00083
00084 }
00085
00086 namespace ros
00087 {
00088 namespace message_traits
00089 {
00090 template<class ContainerAllocator> struct IsMessage< ::coverage_3d_msgs::TableDetection_<ContainerAllocator> > : public TrueType {};
00091 template<class ContainerAllocator> struct IsMessage< ::coverage_3d_msgs::TableDetection_<ContainerAllocator> const> : public TrueType {};
00092 template<class ContainerAllocator>
00093 struct MD5Sum< ::coverage_3d_msgs::TableDetection_<ContainerAllocator> > {
00094 static const char* value()
00095 {
00096 return "74849012ef04940df5d05d9471d43193";
00097 }
00098
00099 static const char* value(const ::coverage_3d_msgs::TableDetection_<ContainerAllocator> &) { return value(); }
00100 static const uint64_t static_value1 = 0x74849012ef04940dULL;
00101 static const uint64_t static_value2 = 0xf5d05d9471d43193ULL;
00102 };
00103
00104 template<class ContainerAllocator>
00105 struct DataType< ::coverage_3d_msgs::TableDetection_<ContainerAllocator> > {
00106 static const char* value()
00107 {
00108 return "coverage_3d_msgs/TableDetection";
00109 }
00110
00111 static const char* value(const ::coverage_3d_msgs::TableDetection_<ContainerAllocator> &) { return value(); }
00112 };
00113
00114 template<class ContainerAllocator>
00115 struct Definition< ::coverage_3d_msgs::TableDetection_<ContainerAllocator> > {
00116 static const char* value()
00117 {
00118 return "#This message holds a collection of 3d points, plus optional additional information about each point.\n\
00119 #Each Point32 should be interpreted as a 3d point in the frame given in the header\n\
00120 \n\
00121 Header header\n\
00122 int32 type #0: rectangle, 1:convex hull, 2:concave hull\n\
00123 geometry_msgs/Pose center\n\
00124 geometry_msgs/Point scale # not used for the convex hull\n\
00125 geometry_msgs/Point[] points #Array of 3d points on the outline of the table where spanning vectors intersect table boundary\n\
00126 geometry_msgs/Point[] hull #Array containing convex or concave hull, this was requested\n\
00127 \n\
00128 ================================================================================\n\
00129 MSG: std_msgs/Header\n\
00130 # Standard metadata for higher-level stamped data types.\n\
00131 # This is generally used to communicate timestamped data \n\
00132 # in a particular coordinate frame.\n\
00133 # \n\
00134 # sequence ID: consecutively increasing ID \n\
00135 uint32 seq\n\
00136 #Two-integer timestamp that is expressed as:\n\
00137 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00138 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00139 # time-handling sugar is provided by the client library\n\
00140 time stamp\n\
00141 #Frame this data is associated with\n\
00142 # 0: no frame\n\
00143 # 1: global frame\n\
00144 string frame_id\n\
00145 \n\
00146 ================================================================================\n\
00147 MSG: geometry_msgs/Pose\n\
00148 # A representation of pose in free space, composed of postion and orientation. \n\
00149 Point position\n\
00150 Quaternion orientation\n\
00151 \n\
00152 ================================================================================\n\
00153 MSG: geometry_msgs/Point\n\
00154 # This contains the position of a point in free space\n\
00155 float64 x\n\
00156 float64 y\n\
00157 float64 z\n\
00158 \n\
00159 ================================================================================\n\
00160 MSG: geometry_msgs/Quaternion\n\
00161 # This represents an orientation in free space in quaternion form.\n\
00162 \n\
00163 float64 x\n\
00164 float64 y\n\
00165 float64 z\n\
00166 float64 w\n\
00167 \n\
00168 ";
00169 }
00170
00171 static const char* value(const ::coverage_3d_msgs::TableDetection_<ContainerAllocator> &) { return value(); }
00172 };
00173
00174 template<class ContainerAllocator> struct HasHeader< ::coverage_3d_msgs::TableDetection_<ContainerAllocator> > : public TrueType {};
00175 template<class ContainerAllocator> struct HasHeader< const ::coverage_3d_msgs::TableDetection_<ContainerAllocator> > : public TrueType {};
00176 }
00177 }
00178
00179 namespace ros
00180 {
00181 namespace serialization
00182 {
00183
00184 template<class ContainerAllocator> struct Serializer< ::coverage_3d_msgs::TableDetection_<ContainerAllocator> >
00185 {
00186 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00187 {
00188 stream.next(m.header);
00189 stream.next(m.type);
00190 stream.next(m.center);
00191 stream.next(m.scale);
00192 stream.next(m.points);
00193 stream.next(m.hull);
00194 }
00195
00196 ROS_DECLARE_ALLINONE_SERIALIZER;
00197 };
00198 }
00199 }
00200
00201 namespace ros
00202 {
00203 namespace message_operations
00204 {
00205
00206 template<class ContainerAllocator>
00207 struct Printer< ::coverage_3d_msgs::TableDetection_<ContainerAllocator> >
00208 {
00209 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::coverage_3d_msgs::TableDetection_<ContainerAllocator> & v)
00210 {
00211 s << indent << "header: ";
00212 s << std::endl;
00213 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00214 s << indent << "type: ";
00215 Printer<int32_t>::stream(s, indent + " ", v.type);
00216 s << indent << "center: ";
00217 s << std::endl;
00218 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.center);
00219 s << indent << "scale: ";
00220 s << std::endl;
00221 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.scale);
00222 s << indent << "points[]" << std::endl;
00223 for (size_t i = 0; i < v.points.size(); ++i)
00224 {
00225 s << indent << " points[" << i << "]: ";
00226 s << std::endl;
00227 s << indent;
00228 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.points[i]);
00229 }
00230 s << indent << "hull[]" << std::endl;
00231 for (size_t i = 0; i < v.hull.size(); ++i)
00232 {
00233 s << indent << " hull[" << i << "]: ";
00234 s << std::endl;
00235 s << indent;
00236 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.hull[i]);
00237 }
00238 }
00239 };
00240
00241
00242 }
00243 }
00244
00245 #endif // COVERAGE_3D_MSGS_MESSAGE_TABLEDETECTION_H
00246