Go to the documentation of this file.00001
00002 #ifndef IRI_PERCEPTION_MSGS_MESSAGE_SINGLE_IMG_DETECTION_H
00003 #define IRI_PERCEPTION_MSGS_MESSAGE_SINGLE_IMG_DETECTION_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
00018 namespace iri_perception_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct single_img_detection_ {
00022 typedef single_img_detection_<ContainerAllocator> Type;
00023
00024 single_img_detection_()
00025 : id(0)
00026 , x(0.0)
00027 , y(0.0)
00028 , width(0.0)
00029 , height(0.0)
00030 , score(0.0)
00031 {
00032 }
00033
00034 single_img_detection_(const ContainerAllocator& _alloc)
00035 : id(0)
00036 , x(0.0)
00037 , y(0.0)
00038 , width(0.0)
00039 , height(0.0)
00040 , score(0.0)
00041 {
00042 }
00043
00044 typedef uint32_t _id_type;
00045 uint32_t id;
00046
00047 typedef float _x_type;
00048 float x;
00049
00050 typedef float _y_type;
00051 float y;
00052
00053 typedef float _width_type;
00054 float width;
00055
00056 typedef float _height_type;
00057 float height;
00058
00059 typedef float _score_type;
00060 float score;
00061
00062
00063 typedef boost::shared_ptr< ::iri_perception_msgs::single_img_detection_<ContainerAllocator> > Ptr;
00064 typedef boost::shared_ptr< ::iri_perception_msgs::single_img_detection_<ContainerAllocator> const> ConstPtr;
00065 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00066 };
00067 typedef ::iri_perception_msgs::single_img_detection_<std::allocator<void> > single_img_detection;
00068
00069 typedef boost::shared_ptr< ::iri_perception_msgs::single_img_detection> single_img_detectionPtr;
00070 typedef boost::shared_ptr< ::iri_perception_msgs::single_img_detection const> single_img_detectionConstPtr;
00071
00072
00073 template<typename ContainerAllocator>
00074 std::ostream& operator<<(std::ostream& s, const ::iri_perception_msgs::single_img_detection_<ContainerAllocator> & v)
00075 {
00076 ros::message_operations::Printer< ::iri_perception_msgs::single_img_detection_<ContainerAllocator> >::stream(s, "", v);
00077 return s;}
00078
00079 }
00080
00081 namespace ros
00082 {
00083 namespace message_traits
00084 {
00085 template<class ContainerAllocator> struct IsMessage< ::iri_perception_msgs::single_img_detection_<ContainerAllocator> > : public TrueType {};
00086 template<class ContainerAllocator> struct IsMessage< ::iri_perception_msgs::single_img_detection_<ContainerAllocator> const> : public TrueType {};
00087 template<class ContainerAllocator>
00088 struct MD5Sum< ::iri_perception_msgs::single_img_detection_<ContainerAllocator> > {
00089 static const char* value()
00090 {
00091 return "391d7f7d52529da7a7a00d7423444dda";
00092 }
00093
00094 static const char* value(const ::iri_perception_msgs::single_img_detection_<ContainerAllocator> &) { return value(); }
00095 static const uint64_t static_value1 = 0x391d7f7d52529da7ULL;
00096 static const uint64_t static_value2 = 0xa7a00d7423444ddaULL;
00097 };
00098
00099 template<class ContainerAllocator>
00100 struct DataType< ::iri_perception_msgs::single_img_detection_<ContainerAllocator> > {
00101 static const char* value()
00102 {
00103 return "iri_perception_msgs/single_img_detection";
00104 }
00105
00106 static const char* value(const ::iri_perception_msgs::single_img_detection_<ContainerAllocator> &) { return value(); }
00107 };
00108
00109 template<class ContainerAllocator>
00110 struct Definition< ::iri_perception_msgs::single_img_detection_<ContainerAllocator> > {
00111 static const char* value()
00112 {
00113 return "# detection identifier\n\
00114 uint32 id\n\
00115 \n\
00116 # OpenCV cv::Rect structure\n\
00117 # upper-left corner and width+height from the detection\n\
00118 float32 x\n\
00119 float32 y\n\
00120 float32 width\n\
00121 float32 height\n\
00122 \n\
00123 # detection score\n\
00124 float32 score\n\
00125 ";
00126 }
00127
00128 static const char* value(const ::iri_perception_msgs::single_img_detection_<ContainerAllocator> &) { return value(); }
00129 };
00130
00131 template<class ContainerAllocator> struct IsFixedSize< ::iri_perception_msgs::single_img_detection_<ContainerAllocator> > : public TrueType {};
00132 }
00133 }
00134
00135 namespace ros
00136 {
00137 namespace serialization
00138 {
00139
00140 template<class ContainerAllocator> struct Serializer< ::iri_perception_msgs::single_img_detection_<ContainerAllocator> >
00141 {
00142 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00143 {
00144 stream.next(m.id);
00145 stream.next(m.x);
00146 stream.next(m.y);
00147 stream.next(m.width);
00148 stream.next(m.height);
00149 stream.next(m.score);
00150 }
00151
00152 ROS_DECLARE_ALLINONE_SERIALIZER;
00153 };
00154 }
00155 }
00156
00157 namespace ros
00158 {
00159 namespace message_operations
00160 {
00161
00162 template<class ContainerAllocator>
00163 struct Printer< ::iri_perception_msgs::single_img_detection_<ContainerAllocator> >
00164 {
00165 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::iri_perception_msgs::single_img_detection_<ContainerAllocator> & v)
00166 {
00167 s << indent << "id: ";
00168 Printer<uint32_t>::stream(s, indent + " ", v.id);
00169 s << indent << "x: ";
00170 Printer<float>::stream(s, indent + " ", v.x);
00171 s << indent << "y: ";
00172 Printer<float>::stream(s, indent + " ", v.y);
00173 s << indent << "width: ";
00174 Printer<float>::stream(s, indent + " ", v.width);
00175 s << indent << "height: ";
00176 Printer<float>::stream(s, indent + " ", v.height);
00177 s << indent << "score: ";
00178 Printer<float>::stream(s, indent + " ", v.score);
00179 }
00180 };
00181
00182
00183 }
00184 }
00185
00186 #endif // IRI_PERCEPTION_MSGS_MESSAGE_SINGLE_IMG_DETECTION_H
00187