$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-cob_people_perception/doc_stacks/2013-03-05_11-47-24.996583/cob_people_perception/cob_people_detection_msgs/msg/PeopleDetection.msg */ 00002 #ifndef COB_PEOPLE_DETECTION_MSGS_MESSAGE_PEOPLEDETECTION_H 00003 #define COB_PEOPLE_DETECTION_MSGS_MESSAGE_PEOPLEDETECTION_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 "cob_people_detection_msgs/Mask.h" 00019 #include "geometry_msgs/PoseStamped.h" 00020 00021 namespace cob_people_detection_msgs 00022 { 00023 template <class ContainerAllocator> 00024 struct PeopleDetection_ { 00025 typedef PeopleDetection_<ContainerAllocator> Type; 00026 00027 PeopleDetection_() 00028 : header() 00029 , label() 00030 , detector() 00031 , score(0.0) 00032 , mask() 00033 , pose() 00034 { 00035 } 00036 00037 PeopleDetection_(const ContainerAllocator& _alloc) 00038 : header(_alloc) 00039 , label(_alloc) 00040 , detector(_alloc) 00041 , score(0.0) 00042 , mask(_alloc) 00043 , pose(_alloc) 00044 { 00045 } 00046 00047 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00048 ::std_msgs::Header_<ContainerAllocator> header; 00049 00050 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _label_type; 00051 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > label; 00052 00053 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _detector_type; 00054 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > detector; 00055 00056 typedef float _score_type; 00057 float score; 00058 00059 typedef ::cob_people_detection_msgs::Mask_<ContainerAllocator> _mask_type; 00060 ::cob_people_detection_msgs::Mask_<ContainerAllocator> mask; 00061 00062 typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _pose_type; 00063 ::geometry_msgs::PoseStamped_<ContainerAllocator> pose; 00064 00065 00066 private: 00067 static const char* __s_getDataType_() { return "cob_people_detection_msgs/PeopleDetection"; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00070 00071 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00072 00073 private: 00074 static const char* __s_getMD5Sum_() { return "fc0d613513a2fabeb1eebd8491c53e68"; } 00075 public: 00076 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00077 00078 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00079 00080 private: 00081 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00082 string label\n\ 00083 string detector\n\ 00084 float32 score\n\ 00085 Mask mask\n\ 00086 geometry_msgs/PoseStamped pose\n\ 00087 \n\ 00088 ================================================================================\n\ 00089 MSG: std_msgs/Header\n\ 00090 # Standard metadata for higher-level stamped data types.\n\ 00091 # This is generally used to communicate timestamped data \n\ 00092 # in a particular coordinate frame.\n\ 00093 # \n\ 00094 # sequence ID: consecutively increasing ID \n\ 00095 uint32 seq\n\ 00096 #Two-integer timestamp that is expressed as:\n\ 00097 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00098 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00099 # time-handling sugar is provided by the client library\n\ 00100 time stamp\n\ 00101 #Frame this data is associated with\n\ 00102 # 0: no frame\n\ 00103 # 1: global frame\n\ 00104 string frame_id\n\ 00105 \n\ 00106 ================================================================================\n\ 00107 MSG: cob_people_detection_msgs/Mask\n\ 00108 # this message is used to mark where an object is present in an image\n\ 00109 # this can be done either by a roi region on the image (less precise) or a mask (more precise)\n\ 00110 \n\ 00111 Rect roi\n\ 00112 \n\ 00113 # in the case when mask is used, 'roi' specifies the image region and 'mask'\n\ 00114 # (which should be of the same size) a binary mask in that region\n\ 00115 sensor_msgs/Image mask\n\ 00116 \n\ 00117 # in the case there is 3D data available, 'indices' are used to index the \n\ 00118 # part of the point cloud representing the object\n\ 00119 #pcl/PointIndices indices\n\ 00120 \n\ 00121 ================================================================================\n\ 00122 MSG: cob_people_detection_msgs/Rect\n\ 00123 int32 x\n\ 00124 int32 y\n\ 00125 int32 width\n\ 00126 int32 height\n\ 00127 \n\ 00128 ================================================================================\n\ 00129 MSG: sensor_msgs/Image\n\ 00130 # This message contains an uncompressed image\n\ 00131 # (0, 0) is at top-left corner of image\n\ 00132 #\n\ 00133 \n\ 00134 Header header # Header timestamp should be acquisition time of image\n\ 00135 # Header frame_id should be optical frame of camera\n\ 00136 # origin of frame should be optical center of cameara\n\ 00137 # +x should point to the right in the image\n\ 00138 # +y should point down in the image\n\ 00139 # +z should point into to plane of the image\n\ 00140 # If the frame_id here and the frame_id of the CameraInfo\n\ 00141 # message associated with the image conflict\n\ 00142 # the behavior is undefined\n\ 00143 \n\ 00144 uint32 height # image height, that is, number of rows\n\ 00145 uint32 width # image width, that is, number of columns\n\ 00146 \n\ 00147 # The legal values for encoding are in file src/image_encodings.cpp\n\ 00148 # If you want to standardize a new string format, join\n\ 00149 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\ 00150 \n\ 00151 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\ 00152 # taken from the list of strings in src/image_encodings.cpp\n\ 00153 \n\ 00154 uint8 is_bigendian # is this data bigendian?\n\ 00155 uint32 step # Full row length in bytes\n\ 00156 uint8[] data # actual matrix data, size is (step * rows)\n\ 00157 \n\ 00158 ================================================================================\n\ 00159 MSG: geometry_msgs/PoseStamped\n\ 00160 # A Pose with reference coordinate frame and timestamp\n\ 00161 Header header\n\ 00162 Pose pose\n\ 00163 \n\ 00164 ================================================================================\n\ 00165 MSG: geometry_msgs/Pose\n\ 00166 # A representation of pose in free space, composed of postion and orientation. \n\ 00167 Point position\n\ 00168 Quaternion orientation\n\ 00169 \n\ 00170 ================================================================================\n\ 00171 MSG: geometry_msgs/Point\n\ 00172 # This contains the position of a point in free space\n\ 00173 float64 x\n\ 00174 float64 y\n\ 00175 float64 z\n\ 00176 \n\ 00177 ================================================================================\n\ 00178 MSG: geometry_msgs/Quaternion\n\ 00179 # This represents an orientation in free space in quaternion form.\n\ 00180 \n\ 00181 float64 x\n\ 00182 float64 y\n\ 00183 float64 z\n\ 00184 float64 w\n\ 00185 \n\ 00186 "; } 00187 public: 00188 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00189 00190 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00191 00192 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00193 { 00194 ros::serialization::OStream stream(write_ptr, 1000000000); 00195 ros::serialization::serialize(stream, header); 00196 ros::serialization::serialize(stream, label); 00197 ros::serialization::serialize(stream, detector); 00198 ros::serialization::serialize(stream, score); 00199 ros::serialization::serialize(stream, mask); 00200 ros::serialization::serialize(stream, pose); 00201 return stream.getData(); 00202 } 00203 00204 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00205 { 00206 ros::serialization::IStream stream(read_ptr, 1000000000); 00207 ros::serialization::deserialize(stream, header); 00208 ros::serialization::deserialize(stream, label); 00209 ros::serialization::deserialize(stream, detector); 00210 ros::serialization::deserialize(stream, score); 00211 ros::serialization::deserialize(stream, mask); 00212 ros::serialization::deserialize(stream, pose); 00213 return stream.getData(); 00214 } 00215 00216 ROS_DEPRECATED virtual uint32_t serializationLength() const 00217 { 00218 uint32_t size = 0; 00219 size += ros::serialization::serializationLength(header); 00220 size += ros::serialization::serializationLength(label); 00221 size += ros::serialization::serializationLength(detector); 00222 size += ros::serialization::serializationLength(score); 00223 size += ros::serialization::serializationLength(mask); 00224 size += ros::serialization::serializationLength(pose); 00225 return size; 00226 } 00227 00228 typedef boost::shared_ptr< ::cob_people_detection_msgs::PeopleDetection_<ContainerAllocator> > Ptr; 00229 typedef boost::shared_ptr< ::cob_people_detection_msgs::PeopleDetection_<ContainerAllocator> const> ConstPtr; 00230 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00231 }; // struct PeopleDetection 00232 typedef ::cob_people_detection_msgs::PeopleDetection_<std::allocator<void> > PeopleDetection; 00233 00234 typedef boost::shared_ptr< ::cob_people_detection_msgs::PeopleDetection> PeopleDetectionPtr; 00235 typedef boost::shared_ptr< ::cob_people_detection_msgs::PeopleDetection const> PeopleDetectionConstPtr; 00236 00237 00238 template<typename ContainerAllocator> 00239 std::ostream& operator<<(std::ostream& s, const ::cob_people_detection_msgs::PeopleDetection_<ContainerAllocator> & v) 00240 { 00241 ros::message_operations::Printer< ::cob_people_detection_msgs::PeopleDetection_<ContainerAllocator> >::stream(s, "", v); 00242 return s;} 00243 00244 } // namespace cob_people_detection_msgs 00245 00246 namespace ros 00247 { 00248 namespace message_traits 00249 { 00250 template<class ContainerAllocator> struct IsMessage< ::cob_people_detection_msgs::PeopleDetection_<ContainerAllocator> > : public TrueType {}; 00251 template<class ContainerAllocator> struct IsMessage< ::cob_people_detection_msgs::PeopleDetection_<ContainerAllocator> const> : public TrueType {}; 00252 template<class ContainerAllocator> 00253 struct MD5Sum< ::cob_people_detection_msgs::PeopleDetection_<ContainerAllocator> > { 00254 static const char* value() 00255 { 00256 return "fc0d613513a2fabeb1eebd8491c53e68"; 00257 } 00258 00259 static const char* value(const ::cob_people_detection_msgs::PeopleDetection_<ContainerAllocator> &) { return value(); } 00260 static const uint64_t static_value1 = 0xfc0d613513a2fabeULL; 00261 static const uint64_t static_value2 = 0xb1eebd8491c53e68ULL; 00262 }; 00263 00264 template<class ContainerAllocator> 00265 struct DataType< ::cob_people_detection_msgs::PeopleDetection_<ContainerAllocator> > { 00266 static const char* value() 00267 { 00268 return "cob_people_detection_msgs/PeopleDetection"; 00269 } 00270 00271 static const char* value(const ::cob_people_detection_msgs::PeopleDetection_<ContainerAllocator> &) { return value(); } 00272 }; 00273 00274 template<class ContainerAllocator> 00275 struct Definition< ::cob_people_detection_msgs::PeopleDetection_<ContainerAllocator> > { 00276 static const char* value() 00277 { 00278 return "Header header\n\ 00279 string label\n\ 00280 string detector\n\ 00281 float32 score\n\ 00282 Mask mask\n\ 00283 geometry_msgs/PoseStamped pose\n\ 00284 \n\ 00285 ================================================================================\n\ 00286 MSG: std_msgs/Header\n\ 00287 # Standard metadata for higher-level stamped data types.\n\ 00288 # This is generally used to communicate timestamped data \n\ 00289 # in a particular coordinate frame.\n\ 00290 # \n\ 00291 # sequence ID: consecutively increasing ID \n\ 00292 uint32 seq\n\ 00293 #Two-integer timestamp that is expressed as:\n\ 00294 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00295 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00296 # time-handling sugar is provided by the client library\n\ 00297 time stamp\n\ 00298 #Frame this data is associated with\n\ 00299 # 0: no frame\n\ 00300 # 1: global frame\n\ 00301 string frame_id\n\ 00302 \n\ 00303 ================================================================================\n\ 00304 MSG: cob_people_detection_msgs/Mask\n\ 00305 # this message is used to mark where an object is present in an image\n\ 00306 # this can be done either by a roi region on the image (less precise) or a mask (more precise)\n\ 00307 \n\ 00308 Rect roi\n\ 00309 \n\ 00310 # in the case when mask is used, 'roi' specifies the image region and 'mask'\n\ 00311 # (which should be of the same size) a binary mask in that region\n\ 00312 sensor_msgs/Image mask\n\ 00313 \n\ 00314 # in the case there is 3D data available, 'indices' are used to index the \n\ 00315 # part of the point cloud representing the object\n\ 00316 #pcl/PointIndices indices\n\ 00317 \n\ 00318 ================================================================================\n\ 00319 MSG: cob_people_detection_msgs/Rect\n\ 00320 int32 x\n\ 00321 int32 y\n\ 00322 int32 width\n\ 00323 int32 height\n\ 00324 \n\ 00325 ================================================================================\n\ 00326 MSG: sensor_msgs/Image\n\ 00327 # This message contains an uncompressed image\n\ 00328 # (0, 0) is at top-left corner of image\n\ 00329 #\n\ 00330 \n\ 00331 Header header # Header timestamp should be acquisition time of image\n\ 00332 # Header frame_id should be optical frame of camera\n\ 00333 # origin of frame should be optical center of cameara\n\ 00334 # +x should point to the right in the image\n\ 00335 # +y should point down in the image\n\ 00336 # +z should point into to plane of the image\n\ 00337 # If the frame_id here and the frame_id of the CameraInfo\n\ 00338 # message associated with the image conflict\n\ 00339 # the behavior is undefined\n\ 00340 \n\ 00341 uint32 height # image height, that is, number of rows\n\ 00342 uint32 width # image width, that is, number of columns\n\ 00343 \n\ 00344 # The legal values for encoding are in file src/image_encodings.cpp\n\ 00345 # If you want to standardize a new string format, join\n\ 00346 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\ 00347 \n\ 00348 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\ 00349 # taken from the list of strings in src/image_encodings.cpp\n\ 00350 \n\ 00351 uint8 is_bigendian # is this data bigendian?\n\ 00352 uint32 step # Full row length in bytes\n\ 00353 uint8[] data # actual matrix data, size is (step * rows)\n\ 00354 \n\ 00355 ================================================================================\n\ 00356 MSG: geometry_msgs/PoseStamped\n\ 00357 # A Pose with reference coordinate frame and timestamp\n\ 00358 Header header\n\ 00359 Pose pose\n\ 00360 \n\ 00361 ================================================================================\n\ 00362 MSG: geometry_msgs/Pose\n\ 00363 # A representation of pose in free space, composed of postion and orientation. \n\ 00364 Point position\n\ 00365 Quaternion orientation\n\ 00366 \n\ 00367 ================================================================================\n\ 00368 MSG: geometry_msgs/Point\n\ 00369 # This contains the position of a point in free space\n\ 00370 float64 x\n\ 00371 float64 y\n\ 00372 float64 z\n\ 00373 \n\ 00374 ================================================================================\n\ 00375 MSG: geometry_msgs/Quaternion\n\ 00376 # This represents an orientation in free space in quaternion form.\n\ 00377 \n\ 00378 float64 x\n\ 00379 float64 y\n\ 00380 float64 z\n\ 00381 float64 w\n\ 00382 \n\ 00383 "; 00384 } 00385 00386 static const char* value(const ::cob_people_detection_msgs::PeopleDetection_<ContainerAllocator> &) { return value(); } 00387 }; 00388 00389 template<class ContainerAllocator> struct HasHeader< ::cob_people_detection_msgs::PeopleDetection_<ContainerAllocator> > : public TrueType {}; 00390 template<class ContainerAllocator> struct HasHeader< const ::cob_people_detection_msgs::PeopleDetection_<ContainerAllocator> > : public TrueType {}; 00391 } // namespace message_traits 00392 } // namespace ros 00393 00394 namespace ros 00395 { 00396 namespace serialization 00397 { 00398 00399 template<class ContainerAllocator> struct Serializer< ::cob_people_detection_msgs::PeopleDetection_<ContainerAllocator> > 00400 { 00401 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00402 { 00403 stream.next(m.header); 00404 stream.next(m.label); 00405 stream.next(m.detector); 00406 stream.next(m.score); 00407 stream.next(m.mask); 00408 stream.next(m.pose); 00409 } 00410 00411 ROS_DECLARE_ALLINONE_SERIALIZER; 00412 }; // struct PeopleDetection_ 00413 } // namespace serialization 00414 } // namespace ros 00415 00416 namespace ros 00417 { 00418 namespace message_operations 00419 { 00420 00421 template<class ContainerAllocator> 00422 struct Printer< ::cob_people_detection_msgs::PeopleDetection_<ContainerAllocator> > 00423 { 00424 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cob_people_detection_msgs::PeopleDetection_<ContainerAllocator> & v) 00425 { 00426 s << indent << "header: "; 00427 s << std::endl; 00428 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00429 s << indent << "label: "; 00430 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.label); 00431 s << indent << "detector: "; 00432 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.detector); 00433 s << indent << "score: "; 00434 Printer<float>::stream(s, indent + " ", v.score); 00435 s << indent << "mask: "; 00436 s << std::endl; 00437 Printer< ::cob_people_detection_msgs::Mask_<ContainerAllocator> >::stream(s, indent + " ", v.mask); 00438 s << indent << "pose: "; 00439 s << std::endl; 00440 Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.pose); 00441 } 00442 }; 00443 00444 00445 } // namespace message_operations 00446 } // namespace ros 00447 00448 #endif // COB_PEOPLE_DETECTION_MSGS_MESSAGE_PEOPLEDETECTION_H 00449