$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-cob_object_perception/doc_stacks/2013-03-01_14-45-40.878742/cob_object_perception/cob_object_detection_msgs/msg/RectArray.msg */ 00002 #ifndef COB_OBJECT_DETECTION_MSGS_MESSAGE_RECTARRAY_H 00003 #define COB_OBJECT_DETECTION_MSGS_MESSAGE_RECTARRAY_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_object_detection_msgs/Rect.h" 00019 00020 namespace cob_object_detection_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct RectArray_ { 00024 typedef RectArray_<ContainerAllocator> Type; 00025 00026 RectArray_() 00027 : header() 00028 , rects() 00029 { 00030 } 00031 00032 RectArray_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , rects(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef std::vector< ::cob_object_detection_msgs::Rect_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_object_detection_msgs::Rect_<ContainerAllocator> >::other > _rects_type; 00042 std::vector< ::cob_object_detection_msgs::Rect_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_object_detection_msgs::Rect_<ContainerAllocator> >::other > rects; 00043 00044 00045 ROS_DEPRECATED uint32_t get_rects_size() const { return (uint32_t)rects.size(); } 00046 ROS_DEPRECATED void set_rects_size(uint32_t size) { rects.resize((size_t)size); } 00047 ROS_DEPRECATED void get_rects_vec(std::vector< ::cob_object_detection_msgs::Rect_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_object_detection_msgs::Rect_<ContainerAllocator> >::other > & vec) const { vec = this->rects; } 00048 ROS_DEPRECATED void set_rects_vec(const std::vector< ::cob_object_detection_msgs::Rect_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_object_detection_msgs::Rect_<ContainerAllocator> >::other > & vec) { this->rects = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "cob_object_detection_msgs/RectArray"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "e83b38fbaea3a641fa77f009f9bf492e"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00065 Rect[] rects\n\ 00066 \n\ 00067 ================================================================================\n\ 00068 MSG: std_msgs/Header\n\ 00069 # Standard metadata for higher-level stamped data types.\n\ 00070 # This is generally used to communicate timestamped data \n\ 00071 # in a particular coordinate frame.\n\ 00072 # \n\ 00073 # sequence ID: consecutively increasing ID \n\ 00074 uint32 seq\n\ 00075 #Two-integer timestamp that is expressed as:\n\ 00076 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00077 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00078 # time-handling sugar is provided by the client library\n\ 00079 time stamp\n\ 00080 #Frame this data is associated with\n\ 00081 # 0: no frame\n\ 00082 # 1: global frame\n\ 00083 string frame_id\n\ 00084 \n\ 00085 ================================================================================\n\ 00086 MSG: cob_object_detection_msgs/Rect\n\ 00087 int32 x\n\ 00088 int32 y\n\ 00089 int32 width\n\ 00090 int32 height\n\ 00091 \n\ 00092 "; } 00093 public: 00094 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00095 00096 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00097 00098 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00099 { 00100 ros::serialization::OStream stream(write_ptr, 1000000000); 00101 ros::serialization::serialize(stream, header); 00102 ros::serialization::serialize(stream, rects); 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, header); 00110 ros::serialization::deserialize(stream, rects); 00111 return stream.getData(); 00112 } 00113 00114 ROS_DEPRECATED virtual uint32_t serializationLength() const 00115 { 00116 uint32_t size = 0; 00117 size += ros::serialization::serializationLength(header); 00118 size += ros::serialization::serializationLength(rects); 00119 return size; 00120 } 00121 00122 typedef boost::shared_ptr< ::cob_object_detection_msgs::RectArray_<ContainerAllocator> > Ptr; 00123 typedef boost::shared_ptr< ::cob_object_detection_msgs::RectArray_<ContainerAllocator> const> ConstPtr; 00124 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00125 }; // struct RectArray 00126 typedef ::cob_object_detection_msgs::RectArray_<std::allocator<void> > RectArray; 00127 00128 typedef boost::shared_ptr< ::cob_object_detection_msgs::RectArray> RectArrayPtr; 00129 typedef boost::shared_ptr< ::cob_object_detection_msgs::RectArray const> RectArrayConstPtr; 00130 00131 00132 template<typename ContainerAllocator> 00133 std::ostream& operator<<(std::ostream& s, const ::cob_object_detection_msgs::RectArray_<ContainerAllocator> & v) 00134 { 00135 ros::message_operations::Printer< ::cob_object_detection_msgs::RectArray_<ContainerAllocator> >::stream(s, "", v); 00136 return s;} 00137 00138 } // namespace cob_object_detection_msgs 00139 00140 namespace ros 00141 { 00142 namespace message_traits 00143 { 00144 template<class ContainerAllocator> struct IsMessage< ::cob_object_detection_msgs::RectArray_<ContainerAllocator> > : public TrueType {}; 00145 template<class ContainerAllocator> struct IsMessage< ::cob_object_detection_msgs::RectArray_<ContainerAllocator> const> : public TrueType {}; 00146 template<class ContainerAllocator> 00147 struct MD5Sum< ::cob_object_detection_msgs::RectArray_<ContainerAllocator> > { 00148 static const char* value() 00149 { 00150 return "e83b38fbaea3a641fa77f009f9bf492e"; 00151 } 00152 00153 static const char* value(const ::cob_object_detection_msgs::RectArray_<ContainerAllocator> &) { return value(); } 00154 static const uint64_t static_value1 = 0xe83b38fbaea3a641ULL; 00155 static const uint64_t static_value2 = 0xfa77f009f9bf492eULL; 00156 }; 00157 00158 template<class ContainerAllocator> 00159 struct DataType< ::cob_object_detection_msgs::RectArray_<ContainerAllocator> > { 00160 static const char* value() 00161 { 00162 return "cob_object_detection_msgs/RectArray"; 00163 } 00164 00165 static const char* value(const ::cob_object_detection_msgs::RectArray_<ContainerAllocator> &) { return value(); } 00166 }; 00167 00168 template<class ContainerAllocator> 00169 struct Definition< ::cob_object_detection_msgs::RectArray_<ContainerAllocator> > { 00170 static const char* value() 00171 { 00172 return "Header header\n\ 00173 Rect[] rects\n\ 00174 \n\ 00175 ================================================================================\n\ 00176 MSG: std_msgs/Header\n\ 00177 # Standard metadata for higher-level stamped data types.\n\ 00178 # This is generally used to communicate timestamped data \n\ 00179 # in a particular coordinate frame.\n\ 00180 # \n\ 00181 # sequence ID: consecutively increasing ID \n\ 00182 uint32 seq\n\ 00183 #Two-integer timestamp that is expressed as:\n\ 00184 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00185 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00186 # time-handling sugar is provided by the client library\n\ 00187 time stamp\n\ 00188 #Frame this data is associated with\n\ 00189 # 0: no frame\n\ 00190 # 1: global frame\n\ 00191 string frame_id\n\ 00192 \n\ 00193 ================================================================================\n\ 00194 MSG: cob_object_detection_msgs/Rect\n\ 00195 int32 x\n\ 00196 int32 y\n\ 00197 int32 width\n\ 00198 int32 height\n\ 00199 \n\ 00200 "; 00201 } 00202 00203 static const char* value(const ::cob_object_detection_msgs::RectArray_<ContainerAllocator> &) { return value(); } 00204 }; 00205 00206 template<class ContainerAllocator> struct HasHeader< ::cob_object_detection_msgs::RectArray_<ContainerAllocator> > : public TrueType {}; 00207 template<class ContainerAllocator> struct HasHeader< const ::cob_object_detection_msgs::RectArray_<ContainerAllocator> > : public TrueType {}; 00208 } // namespace message_traits 00209 } // namespace ros 00210 00211 namespace ros 00212 { 00213 namespace serialization 00214 { 00215 00216 template<class ContainerAllocator> struct Serializer< ::cob_object_detection_msgs::RectArray_<ContainerAllocator> > 00217 { 00218 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00219 { 00220 stream.next(m.header); 00221 stream.next(m.rects); 00222 } 00223 00224 ROS_DECLARE_ALLINONE_SERIALIZER; 00225 }; // struct RectArray_ 00226 } // namespace serialization 00227 } // namespace ros 00228 00229 namespace ros 00230 { 00231 namespace message_operations 00232 { 00233 00234 template<class ContainerAllocator> 00235 struct Printer< ::cob_object_detection_msgs::RectArray_<ContainerAllocator> > 00236 { 00237 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cob_object_detection_msgs::RectArray_<ContainerAllocator> & v) 00238 { 00239 s << indent << "header: "; 00240 s << std::endl; 00241 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00242 s << indent << "rects[]" << std::endl; 00243 for (size_t i = 0; i < v.rects.size(); ++i) 00244 { 00245 s << indent << " rects[" << i << "]: "; 00246 s << std::endl; 00247 s << indent; 00248 Printer< ::cob_object_detection_msgs::Rect_<ContainerAllocator> >::stream(s, indent + " ", v.rects[i]); 00249 } 00250 } 00251 }; 00252 00253 00254 } // namespace message_operations 00255 } // namespace ros 00256 00257 #endif // COB_OBJECT_DETECTION_MSGS_MESSAGE_RECTARRAY_H 00258