00001
00002 #ifndef FACE_DETECTOR_MESSAGE_FACEDETECTORRESULT_H
00003 #define FACE_DETECTOR_MESSAGE_FACEDETECTORRESULT_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "people_msgs/PositionMeasurement.h"
00014
00015 namespace face_detector
00016 {
00017 template <class ContainerAllocator>
00018 struct FaceDetectorResult_ : public ros::Message
00019 {
00020 typedef FaceDetectorResult_<ContainerAllocator> Type;
00021
00022 FaceDetectorResult_()
00023 : face_positions()
00024 {
00025 }
00026
00027 FaceDetectorResult_(const ContainerAllocator& _alloc)
00028 : face_positions(_alloc)
00029 {
00030 }
00031
00032 typedef std::vector< ::people_msgs::PositionMeasurement_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::people_msgs::PositionMeasurement_<ContainerAllocator> >::other > _face_positions_type;
00033 std::vector< ::people_msgs::PositionMeasurement_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::people_msgs::PositionMeasurement_<ContainerAllocator> >::other > face_positions;
00034
00035
00036 ROS_DEPRECATED uint32_t get_face_positions_size() const { return (uint32_t)face_positions.size(); }
00037 ROS_DEPRECATED void set_face_positions_size(uint32_t size) { face_positions.resize((size_t)size); }
00038 ROS_DEPRECATED void get_face_positions_vec(std::vector< ::people_msgs::PositionMeasurement_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::people_msgs::PositionMeasurement_<ContainerAllocator> >::other > & vec) const { vec = this->face_positions; }
00039 ROS_DEPRECATED void set_face_positions_vec(const std::vector< ::people_msgs::PositionMeasurement_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::people_msgs::PositionMeasurement_<ContainerAllocator> >::other > & vec) { this->face_positions = vec; }
00040 private:
00041 static const char* __s_getDataType_() { return "face_detector/FaceDetectorResult"; }
00042 public:
00043 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00044
00045 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00046
00047 private:
00048 static const char* __s_getMD5Sum_() { return "b5dc843df183dbab7f0ab2f5ef5b6f9d"; }
00049 public:
00050 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00051
00052 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00053
00054 private:
00055 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00056 #result\n\
00057 people_msgs/PositionMeasurement[] face_positions\n\
00058 \n\
00059 ================================================================================\n\
00060 MSG: people_msgs/PositionMeasurement\n\
00061 Header header\n\
00062 string name\n\
00063 string object_id\n\
00064 geometry_msgs/Point pos\n\
00065 float64 reliability\n\
00066 float64[9] covariance\n\
00067 byte initialization\n\
00068 ================================================================================\n\
00069 MSG: std_msgs/Header\n\
00070 # Standard metadata for higher-level stamped data types.\n\
00071 # This is generally used to communicate timestamped data \n\
00072 # in a particular coordinate frame.\n\
00073 # \n\
00074 # sequence ID: consecutively increasing ID \n\
00075 uint32 seq\n\
00076 #Two-integer timestamp that is expressed as:\n\
00077 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00078 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00079 # time-handling sugar is provided by the client library\n\
00080 time stamp\n\
00081 #Frame this data is associated with\n\
00082 # 0: no frame\n\
00083 # 1: global frame\n\
00084 string frame_id\n\
00085 \n\
00086 ================================================================================\n\
00087 MSG: geometry_msgs/Point\n\
00088 # This contains the position of a point in free space\n\
00089 float64 x\n\
00090 float64 y\n\
00091 float64 z\n\
00092 \n\
00093 "; }
00094 public:
00095 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00096
00097 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00098
00099 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00100 {
00101 ros::serialization::OStream stream(write_ptr, 1000000000);
00102 ros::serialization::serialize(stream, face_positions);
00103 return stream.getData();
00104 }
00105
00106 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00107 {
00108 ros::serialization::IStream stream(read_ptr, 1000000000);
00109 ros::serialization::deserialize(stream, face_positions);
00110 return stream.getData();
00111 }
00112
00113 ROS_DEPRECATED virtual uint32_t serializationLength() const
00114 {
00115 uint32_t size = 0;
00116 size += ros::serialization::serializationLength(face_positions);
00117 return size;
00118 }
00119
00120 typedef boost::shared_ptr< ::face_detector::FaceDetectorResult_<ContainerAllocator> > Ptr;
00121 typedef boost::shared_ptr< ::face_detector::FaceDetectorResult_<ContainerAllocator> const> ConstPtr;
00122 };
00123 typedef ::face_detector::FaceDetectorResult_<std::allocator<void> > FaceDetectorResult;
00124
00125 typedef boost::shared_ptr< ::face_detector::FaceDetectorResult> FaceDetectorResultPtr;
00126 typedef boost::shared_ptr< ::face_detector::FaceDetectorResult const> FaceDetectorResultConstPtr;
00127
00128
00129 template<typename ContainerAllocator>
00130 std::ostream& operator<<(std::ostream& s, const ::face_detector::FaceDetectorResult_<ContainerAllocator> & v)
00131 {
00132 ros::message_operations::Printer< ::face_detector::FaceDetectorResult_<ContainerAllocator> >::stream(s, "", v);
00133 return s;}
00134
00135 }
00136
00137 namespace ros
00138 {
00139 namespace message_traits
00140 {
00141 template<class ContainerAllocator>
00142 struct MD5Sum< ::face_detector::FaceDetectorResult_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "b5dc843df183dbab7f0ab2f5ef5b6f9d";
00146 }
00147
00148 static const char* value(const ::face_detector::FaceDetectorResult_<ContainerAllocator> &) { return value(); }
00149 static const uint64_t static_value1 = 0xb5dc843df183dbabULL;
00150 static const uint64_t static_value2 = 0x7f0ab2f5ef5b6f9dULL;
00151 };
00152
00153 template<class ContainerAllocator>
00154 struct DataType< ::face_detector::FaceDetectorResult_<ContainerAllocator> > {
00155 static const char* value()
00156 {
00157 return "face_detector/FaceDetectorResult";
00158 }
00159
00160 static const char* value(const ::face_detector::FaceDetectorResult_<ContainerAllocator> &) { return value(); }
00161 };
00162
00163 template<class ContainerAllocator>
00164 struct Definition< ::face_detector::FaceDetectorResult_<ContainerAllocator> > {
00165 static const char* value()
00166 {
00167 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00168 #result\n\
00169 people_msgs/PositionMeasurement[] face_positions\n\
00170 \n\
00171 ================================================================================\n\
00172 MSG: people_msgs/PositionMeasurement\n\
00173 Header header\n\
00174 string name\n\
00175 string object_id\n\
00176 geometry_msgs/Point pos\n\
00177 float64 reliability\n\
00178 float64[9] covariance\n\
00179 byte initialization\n\
00180 ================================================================================\n\
00181 MSG: std_msgs/Header\n\
00182 # Standard metadata for higher-level stamped data types.\n\
00183 # This is generally used to communicate timestamped data \n\
00184 # in a particular coordinate frame.\n\
00185 # \n\
00186 # sequence ID: consecutively increasing ID \n\
00187 uint32 seq\n\
00188 #Two-integer timestamp that is expressed as:\n\
00189 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00190 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00191 # time-handling sugar is provided by the client library\n\
00192 time stamp\n\
00193 #Frame this data is associated with\n\
00194 # 0: no frame\n\
00195 # 1: global frame\n\
00196 string frame_id\n\
00197 \n\
00198 ================================================================================\n\
00199 MSG: geometry_msgs/Point\n\
00200 # This contains the position of a point in free space\n\
00201 float64 x\n\
00202 float64 y\n\
00203 float64 z\n\
00204 \n\
00205 ";
00206 }
00207
00208 static const char* value(const ::face_detector::FaceDetectorResult_<ContainerAllocator> &) { return value(); }
00209 };
00210
00211 }
00212 }
00213
00214 namespace ros
00215 {
00216 namespace serialization
00217 {
00218
00219 template<class ContainerAllocator> struct Serializer< ::face_detector::FaceDetectorResult_<ContainerAllocator> >
00220 {
00221 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00222 {
00223 stream.next(m.face_positions);
00224 }
00225
00226 ROS_DECLARE_ALLINONE_SERIALIZER;
00227 };
00228 }
00229 }
00230
00231 namespace ros
00232 {
00233 namespace message_operations
00234 {
00235
00236 template<class ContainerAllocator>
00237 struct Printer< ::face_detector::FaceDetectorResult_<ContainerAllocator> >
00238 {
00239 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::face_detector::FaceDetectorResult_<ContainerAllocator> & v)
00240 {
00241 s << indent << "face_positions[]" << std::endl;
00242 for (size_t i = 0; i < v.face_positions.size(); ++i)
00243 {
00244 s << indent << " face_positions[" << i << "]: ";
00245 s << std::endl;
00246 s << indent;
00247 Printer< ::people_msgs::PositionMeasurement_<ContainerAllocator> >::stream(s, indent + " ", v.face_positions[i]);
00248 }
00249 }
00250 };
00251
00252
00253 }
00254 }
00255
00256 #endif // FACE_DETECTOR_MESSAGE_FACEDETECTORRESULT_H
00257