$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-cob_environment_perception/doc_stacks/2013-03-01_14-40-06.190572/cob_environment_perception/cob_3d_mapping_msgs/msg/PolygonArray.msg */ 00002 #ifndef COB_3D_MAPPING_MSGS_MESSAGE_POLYGONARRAY_H 00003 #define COB_3D_MAPPING_MSGS_MESSAGE_POLYGONARRAY_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 "geometry_msgs/Polygon.h" 00019 #include "geometry_msgs/Vector3.h" 00020 #include "std_msgs/Float32.h" 00021 00022 namespace cob_3d_mapping_msgs 00023 { 00024 template <class ContainerAllocator> 00025 struct PolygonArray_ { 00026 typedef PolygonArray_<ContainerAllocator> Type; 00027 00028 PolygonArray_() 00029 : header() 00030 , polygons() 00031 , normal() 00032 , d() 00033 { 00034 } 00035 00036 PolygonArray_(const ContainerAllocator& _alloc) 00037 : header(_alloc) 00038 , polygons(_alloc) 00039 , normal(_alloc) 00040 , d(_alloc) 00041 { 00042 } 00043 00044 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00045 ::std_msgs::Header_<ContainerAllocator> header; 00046 00047 typedef std::vector< ::geometry_msgs::Polygon_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Polygon_<ContainerAllocator> >::other > _polygons_type; 00048 std::vector< ::geometry_msgs::Polygon_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Polygon_<ContainerAllocator> >::other > polygons; 00049 00050 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _normal_type; 00051 ::geometry_msgs::Vector3_<ContainerAllocator> normal; 00052 00053 typedef ::std_msgs::Float32_<ContainerAllocator> _d_type; 00054 ::std_msgs::Float32_<ContainerAllocator> d; 00055 00056 00057 ROS_DEPRECATED uint32_t get_polygons_size() const { return (uint32_t)polygons.size(); } 00058 ROS_DEPRECATED void set_polygons_size(uint32_t size) { polygons.resize((size_t)size); } 00059 ROS_DEPRECATED void get_polygons_vec(std::vector< ::geometry_msgs::Polygon_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Polygon_<ContainerAllocator> >::other > & vec) const { vec = this->polygons; } 00060 ROS_DEPRECATED void set_polygons_vec(const std::vector< ::geometry_msgs::Polygon_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Polygon_<ContainerAllocator> >::other > & vec) { this->polygons = vec; } 00061 private: 00062 static const char* __s_getDataType_() { return "cob_3d_mapping_msgs/PolygonArray"; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00065 00066 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00067 00068 private: 00069 static const char* __s_getMD5Sum_() { return "16eff0bfa4f1e282ee5fee09f36c067e"; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00072 00073 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00074 00075 private: 00076 static const char* __s_getMessageDefinition_() { return "# DEPRECATED: An array of poses with a header for global reference.\n\ 00077 \n\ 00078 Header header\n\ 00079 \n\ 00080 geometry_msgs/Polygon[] polygons\n\ 00081 geometry_msgs/Vector3 normal\n\ 00082 std_msgs/Float32 d\n\ 00083 \n\ 00084 ================================================================================\n\ 00085 MSG: std_msgs/Header\n\ 00086 # Standard metadata for higher-level stamped data types.\n\ 00087 # This is generally used to communicate timestamped data \n\ 00088 # in a particular coordinate frame.\n\ 00089 # \n\ 00090 # sequence ID: consecutively increasing ID \n\ 00091 uint32 seq\n\ 00092 #Two-integer timestamp that is expressed as:\n\ 00093 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00094 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00095 # time-handling sugar is provided by the client library\n\ 00096 time stamp\n\ 00097 #Frame this data is associated with\n\ 00098 # 0: no frame\n\ 00099 # 1: global frame\n\ 00100 string frame_id\n\ 00101 \n\ 00102 ================================================================================\n\ 00103 MSG: geometry_msgs/Polygon\n\ 00104 #A specification of a polygon where the first and last points are assumed to be connected\n\ 00105 geometry_msgs/Point32[] points\n\ 00106 \n\ 00107 ================================================================================\n\ 00108 MSG: geometry_msgs/Point32\n\ 00109 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00110 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00111 # \n\ 00112 # This recommendation is to promote interoperability. \n\ 00113 #\n\ 00114 # This message is designed to take up less space when sending\n\ 00115 # lots of points at once, as in the case of a PointCloud. \n\ 00116 \n\ 00117 float32 x\n\ 00118 float32 y\n\ 00119 float32 z\n\ 00120 ================================================================================\n\ 00121 MSG: geometry_msgs/Vector3\n\ 00122 # This represents a vector in free space. \n\ 00123 \n\ 00124 float64 x\n\ 00125 float64 y\n\ 00126 float64 z\n\ 00127 ================================================================================\n\ 00128 MSG: std_msgs/Float32\n\ 00129 float32 data\n\ 00130 "; } 00131 public: 00132 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00133 00134 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00135 00136 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00137 { 00138 ros::serialization::OStream stream(write_ptr, 1000000000); 00139 ros::serialization::serialize(stream, header); 00140 ros::serialization::serialize(stream, polygons); 00141 ros::serialization::serialize(stream, normal); 00142 ros::serialization::serialize(stream, d); 00143 return stream.getData(); 00144 } 00145 00146 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00147 { 00148 ros::serialization::IStream stream(read_ptr, 1000000000); 00149 ros::serialization::deserialize(stream, header); 00150 ros::serialization::deserialize(stream, polygons); 00151 ros::serialization::deserialize(stream, normal); 00152 ros::serialization::deserialize(stream, d); 00153 return stream.getData(); 00154 } 00155 00156 ROS_DEPRECATED virtual uint32_t serializationLength() const 00157 { 00158 uint32_t size = 0; 00159 size += ros::serialization::serializationLength(header); 00160 size += ros::serialization::serializationLength(polygons); 00161 size += ros::serialization::serializationLength(normal); 00162 size += ros::serialization::serializationLength(d); 00163 return size; 00164 } 00165 00166 typedef boost::shared_ptr< ::cob_3d_mapping_msgs::PolygonArray_<ContainerAllocator> > Ptr; 00167 typedef boost::shared_ptr< ::cob_3d_mapping_msgs::PolygonArray_<ContainerAllocator> const> ConstPtr; 00168 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00169 }; // struct PolygonArray 00170 typedef ::cob_3d_mapping_msgs::PolygonArray_<std::allocator<void> > PolygonArray; 00171 00172 typedef boost::shared_ptr< ::cob_3d_mapping_msgs::PolygonArray> PolygonArrayPtr; 00173 typedef boost::shared_ptr< ::cob_3d_mapping_msgs::PolygonArray const> PolygonArrayConstPtr; 00174 00175 00176 template<typename ContainerAllocator> 00177 std::ostream& operator<<(std::ostream& s, const ::cob_3d_mapping_msgs::PolygonArray_<ContainerAllocator> & v) 00178 { 00179 ros::message_operations::Printer< ::cob_3d_mapping_msgs::PolygonArray_<ContainerAllocator> >::stream(s, "", v); 00180 return s;} 00181 00182 } // namespace cob_3d_mapping_msgs 00183 00184 namespace ros 00185 { 00186 namespace message_traits 00187 { 00188 template<class ContainerAllocator> struct IsMessage< ::cob_3d_mapping_msgs::PolygonArray_<ContainerAllocator> > : public TrueType {}; 00189 template<class ContainerAllocator> struct IsMessage< ::cob_3d_mapping_msgs::PolygonArray_<ContainerAllocator> const> : public TrueType {}; 00190 template<class ContainerAllocator> 00191 struct MD5Sum< ::cob_3d_mapping_msgs::PolygonArray_<ContainerAllocator> > { 00192 static const char* value() 00193 { 00194 return "16eff0bfa4f1e282ee5fee09f36c067e"; 00195 } 00196 00197 static const char* value(const ::cob_3d_mapping_msgs::PolygonArray_<ContainerAllocator> &) { return value(); } 00198 static const uint64_t static_value1 = 0x16eff0bfa4f1e282ULL; 00199 static const uint64_t static_value2 = 0xee5fee09f36c067eULL; 00200 }; 00201 00202 template<class ContainerAllocator> 00203 struct DataType< ::cob_3d_mapping_msgs::PolygonArray_<ContainerAllocator> > { 00204 static const char* value() 00205 { 00206 return "cob_3d_mapping_msgs/PolygonArray"; 00207 } 00208 00209 static const char* value(const ::cob_3d_mapping_msgs::PolygonArray_<ContainerAllocator> &) { return value(); } 00210 }; 00211 00212 template<class ContainerAllocator> 00213 struct Definition< ::cob_3d_mapping_msgs::PolygonArray_<ContainerAllocator> > { 00214 static const char* value() 00215 { 00216 return "# DEPRECATED: An array of poses with a header for global reference.\n\ 00217 \n\ 00218 Header header\n\ 00219 \n\ 00220 geometry_msgs/Polygon[] polygons\n\ 00221 geometry_msgs/Vector3 normal\n\ 00222 std_msgs/Float32 d\n\ 00223 \n\ 00224 ================================================================================\n\ 00225 MSG: std_msgs/Header\n\ 00226 # Standard metadata for higher-level stamped data types.\n\ 00227 # This is generally used to communicate timestamped data \n\ 00228 # in a particular coordinate frame.\n\ 00229 # \n\ 00230 # sequence ID: consecutively increasing ID \n\ 00231 uint32 seq\n\ 00232 #Two-integer timestamp that is expressed as:\n\ 00233 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00234 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00235 # time-handling sugar is provided by the client library\n\ 00236 time stamp\n\ 00237 #Frame this data is associated with\n\ 00238 # 0: no frame\n\ 00239 # 1: global frame\n\ 00240 string frame_id\n\ 00241 \n\ 00242 ================================================================================\n\ 00243 MSG: geometry_msgs/Polygon\n\ 00244 #A specification of a polygon where the first and last points are assumed to be connected\n\ 00245 geometry_msgs/Point32[] points\n\ 00246 \n\ 00247 ================================================================================\n\ 00248 MSG: geometry_msgs/Point32\n\ 00249 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00250 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00251 # \n\ 00252 # This recommendation is to promote interoperability. \n\ 00253 #\n\ 00254 # This message is designed to take up less space when sending\n\ 00255 # lots of points at once, as in the case of a PointCloud. \n\ 00256 \n\ 00257 float32 x\n\ 00258 float32 y\n\ 00259 float32 z\n\ 00260 ================================================================================\n\ 00261 MSG: geometry_msgs/Vector3\n\ 00262 # This represents a vector in free space. \n\ 00263 \n\ 00264 float64 x\n\ 00265 float64 y\n\ 00266 float64 z\n\ 00267 ================================================================================\n\ 00268 MSG: std_msgs/Float32\n\ 00269 float32 data\n\ 00270 "; 00271 } 00272 00273 static const char* value(const ::cob_3d_mapping_msgs::PolygonArray_<ContainerAllocator> &) { return value(); } 00274 }; 00275 00276 template<class ContainerAllocator> struct HasHeader< ::cob_3d_mapping_msgs::PolygonArray_<ContainerAllocator> > : public TrueType {}; 00277 template<class ContainerAllocator> struct HasHeader< const ::cob_3d_mapping_msgs::PolygonArray_<ContainerAllocator> > : public TrueType {}; 00278 } // namespace message_traits 00279 } // namespace ros 00280 00281 namespace ros 00282 { 00283 namespace serialization 00284 { 00285 00286 template<class ContainerAllocator> struct Serializer< ::cob_3d_mapping_msgs::PolygonArray_<ContainerAllocator> > 00287 { 00288 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00289 { 00290 stream.next(m.header); 00291 stream.next(m.polygons); 00292 stream.next(m.normal); 00293 stream.next(m.d); 00294 } 00295 00296 ROS_DECLARE_ALLINONE_SERIALIZER; 00297 }; // struct PolygonArray_ 00298 } // namespace serialization 00299 } // namespace ros 00300 00301 namespace ros 00302 { 00303 namespace message_operations 00304 { 00305 00306 template<class ContainerAllocator> 00307 struct Printer< ::cob_3d_mapping_msgs::PolygonArray_<ContainerAllocator> > 00308 { 00309 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cob_3d_mapping_msgs::PolygonArray_<ContainerAllocator> & v) 00310 { 00311 s << indent << "header: "; 00312 s << std::endl; 00313 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00314 s << indent << "polygons[]" << std::endl; 00315 for (size_t i = 0; i < v.polygons.size(); ++i) 00316 { 00317 s << indent << " polygons[" << i << "]: "; 00318 s << std::endl; 00319 s << indent; 00320 Printer< ::geometry_msgs::Polygon_<ContainerAllocator> >::stream(s, indent + " ", v.polygons[i]); 00321 } 00322 s << indent << "normal: "; 00323 s << std::endl; 00324 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.normal); 00325 s << indent << "d: "; 00326 s << std::endl; 00327 Printer< ::std_msgs::Float32_<ContainerAllocator> >::stream(s, indent + " ", v.d); 00328 } 00329 }; 00330 00331 00332 } // namespace message_operations 00333 } // namespace ros 00334 00335 #endif // COB_3D_MAPPING_MSGS_MESSAGE_POLYGONARRAY_H 00336