Go to the documentation of this file.00001
00002 #ifndef RE_MSGS_MESSAGE_DETECTEDOBJECT_H
00003 #define RE_MSGS_MESSAGE_DETECTEDOBJECT_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 "re_msgs/Pixel.h"
00018 #include "geometry_msgs/Point.h"
00019 #include "geometry_msgs/Pose.h"
00020 #include "geometry_msgs/Point.h"
00021
00022 namespace re_msgs
00023 {
00024 template <class ContainerAllocator>
00025 struct DetectedObject_ {
00026 typedef DetectedObject_<ContainerAllocator> Type;
00027
00028 DetectedObject_()
00029 : points2d()
00030 , points3d()
00031 , pose()
00032 , points3d_model()
00033 , octave()
00034 {
00035 }
00036
00037 DetectedObject_(const ContainerAllocator& _alloc)
00038 : points2d(_alloc)
00039 , points3d(_alloc)
00040 , pose(_alloc)
00041 , points3d_model(_alloc)
00042 , octave(_alloc)
00043 {
00044 }
00045
00046 typedef std::vector< ::re_msgs::Pixel_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::re_msgs::Pixel_<ContainerAllocator> >::other > _points2d_type;
00047 std::vector< ::re_msgs::Pixel_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::re_msgs::Pixel_<ContainerAllocator> >::other > points2d;
00048
00049 typedef std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > _points3d_type;
00050 std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > points3d;
00051
00052 typedef ::geometry_msgs::Pose_<ContainerAllocator> _pose_type;
00053 ::geometry_msgs::Pose_<ContainerAllocator> pose;
00054
00055 typedef std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > _points3d_model_type;
00056 std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > points3d_model;
00057
00058 typedef std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > _octave_type;
00059 std::vector<int32_t, typename ContainerAllocator::template rebind<int32_t>::other > octave;
00060
00061
00062 typedef boost::shared_ptr< ::re_msgs::DetectedObject_<ContainerAllocator> > Ptr;
00063 typedef boost::shared_ptr< ::re_msgs::DetectedObject_<ContainerAllocator> const> ConstPtr;
00064 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00065 };
00066 typedef ::re_msgs::DetectedObject_<std::allocator<void> > DetectedObject;
00067
00068 typedef boost::shared_ptr< ::re_msgs::DetectedObject> DetectedObjectPtr;
00069 typedef boost::shared_ptr< ::re_msgs::DetectedObject const> DetectedObjectConstPtr;
00070
00071
00072 template<typename ContainerAllocator>
00073 std::ostream& operator<<(std::ostream& s, const ::re_msgs::DetectedObject_<ContainerAllocator> & v)
00074 {
00075 ros::message_operations::Printer< ::re_msgs::DetectedObject_<ContainerAllocator> >::stream(s, "", v);
00076 return s;}
00077
00078 }
00079
00080 namespace ros
00081 {
00082 namespace message_traits
00083 {
00084 template<class ContainerAllocator> struct IsMessage< ::re_msgs::DetectedObject_<ContainerAllocator> > : public TrueType {};
00085 template<class ContainerAllocator> struct IsMessage< ::re_msgs::DetectedObject_<ContainerAllocator> const> : public TrueType {};
00086 template<class ContainerAllocator>
00087 struct MD5Sum< ::re_msgs::DetectedObject_<ContainerAllocator> > {
00088 static const char* value()
00089 {
00090 return "db086185ac6f68f8b4560ea38a8ec39b";
00091 }
00092
00093 static const char* value(const ::re_msgs::DetectedObject_<ContainerAllocator> &) { return value(); }
00094 static const uint64_t static_value1 = 0xdb086185ac6f68f8ULL;
00095 static const uint64_t static_value2 = 0xb4560ea38a8ec39bULL;
00096 };
00097
00098 template<class ContainerAllocator>
00099 struct DataType< ::re_msgs::DetectedObject_<ContainerAllocator> > {
00100 static const char* value()
00101 {
00102 return "re_msgs/DetectedObject";
00103 }
00104
00105 static const char* value(const ::re_msgs::DetectedObject_<ContainerAllocator> &) { return value(); }
00106 };
00107
00108 template<class ContainerAllocator>
00109 struct Definition< ::re_msgs::DetectedObject_<ContainerAllocator> > {
00110 static const char* value()
00111 {
00112 return "# Information of object detected in an image by re_vision\n\
00113 #\n\
00114 \n\
00115 # detected points in the image\n\
00116 Pixel[] points2d\n\
00117 # detected 3d points in the camera reference\n\
00118 geometry_msgs/Point[] points3d\n\
00119 # pose of the object in the camera reference\n\
00120 geometry_msgs/Pose pose\n\
00121 # detected 3d points in the model reference\n\
00122 geometry_msgs/Point[] points3d_model\n\
00123 # detected 3d points octave\n\
00124 int32[] octave\n\
00125 \n\
00126 ================================================================================\n\
00127 MSG: re_msgs/Pixel\n\
00128 # top-left corner: (0,0)\n\
00129 \n\
00130 int32 x\n\
00131 int32 y\n\
00132 ================================================================================\n\
00133 MSG: geometry_msgs/Point\n\
00134 # This contains the position of a point in free space\n\
00135 float64 x\n\
00136 float64 y\n\
00137 float64 z\n\
00138 \n\
00139 ================================================================================\n\
00140 MSG: geometry_msgs/Pose\n\
00141 # A representation of pose in free space, composed of postion and orientation. \n\
00142 Point position\n\
00143 Quaternion orientation\n\
00144 \n\
00145 ================================================================================\n\
00146 MSG: geometry_msgs/Quaternion\n\
00147 # This represents an orientation in free space in quaternion form.\n\
00148 \n\
00149 float64 x\n\
00150 float64 y\n\
00151 float64 z\n\
00152 float64 w\n\
00153 \n\
00154 ";
00155 }
00156
00157 static const char* value(const ::re_msgs::DetectedObject_<ContainerAllocator> &) { return value(); }
00158 };
00159
00160 }
00161 }
00162
00163 namespace ros
00164 {
00165 namespace serialization
00166 {
00167
00168 template<class ContainerAllocator> struct Serializer< ::re_msgs::DetectedObject_<ContainerAllocator> >
00169 {
00170 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00171 {
00172 stream.next(m.points2d);
00173 stream.next(m.points3d);
00174 stream.next(m.pose);
00175 stream.next(m.points3d_model);
00176 stream.next(m.octave);
00177 }
00178
00179 ROS_DECLARE_ALLINONE_SERIALIZER;
00180 };
00181 }
00182 }
00183
00184 namespace ros
00185 {
00186 namespace message_operations
00187 {
00188
00189 template<class ContainerAllocator>
00190 struct Printer< ::re_msgs::DetectedObject_<ContainerAllocator> >
00191 {
00192 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::re_msgs::DetectedObject_<ContainerAllocator> & v)
00193 {
00194 s << indent << "points2d[]" << std::endl;
00195 for (size_t i = 0; i < v.points2d.size(); ++i)
00196 {
00197 s << indent << " points2d[" << i << "]: ";
00198 s << std::endl;
00199 s << indent;
00200 Printer< ::re_msgs::Pixel_<ContainerAllocator> >::stream(s, indent + " ", v.points2d[i]);
00201 }
00202 s << indent << "points3d[]" << std::endl;
00203 for (size_t i = 0; i < v.points3d.size(); ++i)
00204 {
00205 s << indent << " points3d[" << i << "]: ";
00206 s << std::endl;
00207 s << indent;
00208 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.points3d[i]);
00209 }
00210 s << indent << "pose: ";
00211 s << std::endl;
00212 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose);
00213 s << indent << "points3d_model[]" << std::endl;
00214 for (size_t i = 0; i < v.points3d_model.size(); ++i)
00215 {
00216 s << indent << " points3d_model[" << i << "]: ";
00217 s << std::endl;
00218 s << indent;
00219 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.points3d_model[i]);
00220 }
00221 s << indent << "octave[]" << std::endl;
00222 for (size_t i = 0; i < v.octave.size(); ++i)
00223 {
00224 s << indent << " octave[" << i << "]: ";
00225 Printer<int32_t>::stream(s, indent + " ", v.octave[i]);
00226 }
00227 }
00228 };
00229
00230
00231 }
00232 }
00233
00234 #endif // RE_MSGS_MESSAGE_DETECTEDOBJECT_H
00235