$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/curved_polygon.msg */ 00002 #ifndef COB_3D_MAPPING_MSGS_MESSAGE_CURVED_POLYGON_H 00003 #define COB_3D_MAPPING_MSGS_MESSAGE_CURVED_POLYGON_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 "cob_3d_mapping_msgs/simalarity_score.h" 00018 #include "cob_3d_mapping_msgs/polyline_point.h" 00019 #include "cob_3d_mapping_msgs/feature.h" 00020 00021 namespace cob_3d_mapping_msgs 00022 { 00023 template <class ContainerAllocator> 00024 struct curved_polygon_ { 00025 typedef curved_polygon_<ContainerAllocator> Type; 00026 00027 curved_polygon_() 00028 : stamp() 00029 , ID(0) 00030 , parameter() 00031 , score() 00032 , polyline() 00033 , features() 00034 { 00035 parameter.assign(0.0); 00036 } 00037 00038 curved_polygon_(const ContainerAllocator& _alloc) 00039 : stamp() 00040 , ID(0) 00041 , parameter() 00042 , score(_alloc) 00043 , polyline(_alloc) 00044 , features(_alloc) 00045 { 00046 parameter.assign(0.0); 00047 } 00048 00049 typedef ros::Time _stamp_type; 00050 ros::Time stamp; 00051 00052 typedef uint32_t _ID_type; 00053 uint32_t ID; 00054 00055 typedef boost::array<float, 6> _parameter_type; 00056 boost::array<float, 6> parameter; 00057 00058 typedef std::vector< ::cob_3d_mapping_msgs::simalarity_score_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_3d_mapping_msgs::simalarity_score_<ContainerAllocator> >::other > _score_type; 00059 std::vector< ::cob_3d_mapping_msgs::simalarity_score_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_3d_mapping_msgs::simalarity_score_<ContainerAllocator> >::other > score; 00060 00061 typedef std::vector< ::cob_3d_mapping_msgs::polyline_point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_3d_mapping_msgs::polyline_point_<ContainerAllocator> >::other > _polyline_type; 00062 std::vector< ::cob_3d_mapping_msgs::polyline_point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_3d_mapping_msgs::polyline_point_<ContainerAllocator> >::other > polyline; 00063 00064 typedef std::vector< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> >::other > _features_type; 00065 std::vector< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> >::other > features; 00066 00067 00068 ROS_DEPRECATED uint32_t get_parameter_size() const { return (uint32_t)parameter.size(); } 00069 ROS_DEPRECATED uint32_t get_score_size() const { return (uint32_t)score.size(); } 00070 ROS_DEPRECATED void set_score_size(uint32_t size) { score.resize((size_t)size); } 00071 ROS_DEPRECATED void get_score_vec(std::vector< ::cob_3d_mapping_msgs::simalarity_score_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_3d_mapping_msgs::simalarity_score_<ContainerAllocator> >::other > & vec) const { vec = this->score; } 00072 ROS_DEPRECATED void set_score_vec(const std::vector< ::cob_3d_mapping_msgs::simalarity_score_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_3d_mapping_msgs::simalarity_score_<ContainerAllocator> >::other > & vec) { this->score = vec; } 00073 ROS_DEPRECATED uint32_t get_polyline_size() const { return (uint32_t)polyline.size(); } 00074 ROS_DEPRECATED void set_polyline_size(uint32_t size) { polyline.resize((size_t)size); } 00075 ROS_DEPRECATED void get_polyline_vec(std::vector< ::cob_3d_mapping_msgs::polyline_point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_3d_mapping_msgs::polyline_point_<ContainerAllocator> >::other > & vec) const { vec = this->polyline; } 00076 ROS_DEPRECATED void set_polyline_vec(const std::vector< ::cob_3d_mapping_msgs::polyline_point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_3d_mapping_msgs::polyline_point_<ContainerAllocator> >::other > & vec) { this->polyline = vec; } 00077 ROS_DEPRECATED uint32_t get_features_size() const { return (uint32_t)features.size(); } 00078 ROS_DEPRECATED void set_features_size(uint32_t size) { features.resize((size_t)size); } 00079 ROS_DEPRECATED void get_features_vec(std::vector< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> >::other > & vec) const { vec = this->features; } 00080 ROS_DEPRECATED void set_features_vec(const std::vector< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> >::other > & vec) { this->features = vec; } 00081 private: 00082 static const char* __s_getDataType_() { return "cob_3d_mapping_msgs/curved_polygon"; } 00083 public: 00084 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00085 00086 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00087 00088 private: 00089 static const char* __s_getMD5Sum_() { return "c1b2331fcebec1fe50df99042a20073f"; } 00090 public: 00091 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00092 00093 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00094 00095 private: 00096 static const char* __s_getMessageDefinition_() { return "time stamp\n\ 00097 uint32 ID\n\ 00098 float32[6] parameter\n\ 00099 #float32[][3] polyline\n\ 00100 simalarity_score[] score\n\ 00101 polyline_point[] polyline\n\ 00102 feature[] features\n\ 00103 ================================================================================\n\ 00104 MSG: cob_3d_mapping_msgs/simalarity_score\n\ 00105 uint32 ID\n\ 00106 float32 prob\n\ 00107 ================================================================================\n\ 00108 MSG: cob_3d_mapping_msgs/polyline_point\n\ 00109 float32 x\n\ 00110 float32 y\n\ 00111 float32 edge_prob\n\ 00112 ================================================================================\n\ 00113 MSG: cob_3d_mapping_msgs/feature\n\ 00114 float32 x\n\ 00115 float32 y\n\ 00116 float32 z\n\ 00117 uint32 ID\n\ 00118 "; } 00119 public: 00120 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00121 00122 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00123 00124 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00125 { 00126 ros::serialization::OStream stream(write_ptr, 1000000000); 00127 ros::serialization::serialize(stream, stamp); 00128 ros::serialization::serialize(stream, ID); 00129 ros::serialization::serialize(stream, parameter); 00130 ros::serialization::serialize(stream, score); 00131 ros::serialization::serialize(stream, polyline); 00132 ros::serialization::serialize(stream, features); 00133 return stream.getData(); 00134 } 00135 00136 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00137 { 00138 ros::serialization::IStream stream(read_ptr, 1000000000); 00139 ros::serialization::deserialize(stream, stamp); 00140 ros::serialization::deserialize(stream, ID); 00141 ros::serialization::deserialize(stream, parameter); 00142 ros::serialization::deserialize(stream, score); 00143 ros::serialization::deserialize(stream, polyline); 00144 ros::serialization::deserialize(stream, features); 00145 return stream.getData(); 00146 } 00147 00148 ROS_DEPRECATED virtual uint32_t serializationLength() const 00149 { 00150 uint32_t size = 0; 00151 size += ros::serialization::serializationLength(stamp); 00152 size += ros::serialization::serializationLength(ID); 00153 size += ros::serialization::serializationLength(parameter); 00154 size += ros::serialization::serializationLength(score); 00155 size += ros::serialization::serializationLength(polyline); 00156 size += ros::serialization::serializationLength(features); 00157 return size; 00158 } 00159 00160 typedef boost::shared_ptr< ::cob_3d_mapping_msgs::curved_polygon_<ContainerAllocator> > Ptr; 00161 typedef boost::shared_ptr< ::cob_3d_mapping_msgs::curved_polygon_<ContainerAllocator> const> ConstPtr; 00162 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00163 }; // struct curved_polygon 00164 typedef ::cob_3d_mapping_msgs::curved_polygon_<std::allocator<void> > curved_polygon; 00165 00166 typedef boost::shared_ptr< ::cob_3d_mapping_msgs::curved_polygon> curved_polygonPtr; 00167 typedef boost::shared_ptr< ::cob_3d_mapping_msgs::curved_polygon const> curved_polygonConstPtr; 00168 00169 00170 template<typename ContainerAllocator> 00171 std::ostream& operator<<(std::ostream& s, const ::cob_3d_mapping_msgs::curved_polygon_<ContainerAllocator> & v) 00172 { 00173 ros::message_operations::Printer< ::cob_3d_mapping_msgs::curved_polygon_<ContainerAllocator> >::stream(s, "", v); 00174 return s;} 00175 00176 } // namespace cob_3d_mapping_msgs 00177 00178 namespace ros 00179 { 00180 namespace message_traits 00181 { 00182 template<class ContainerAllocator> struct IsMessage< ::cob_3d_mapping_msgs::curved_polygon_<ContainerAllocator> > : public TrueType {}; 00183 template<class ContainerAllocator> struct IsMessage< ::cob_3d_mapping_msgs::curved_polygon_<ContainerAllocator> const> : public TrueType {}; 00184 template<class ContainerAllocator> 00185 struct MD5Sum< ::cob_3d_mapping_msgs::curved_polygon_<ContainerAllocator> > { 00186 static const char* value() 00187 { 00188 return "c1b2331fcebec1fe50df99042a20073f"; 00189 } 00190 00191 static const char* value(const ::cob_3d_mapping_msgs::curved_polygon_<ContainerAllocator> &) { return value(); } 00192 static const uint64_t static_value1 = 0xc1b2331fcebec1feULL; 00193 static const uint64_t static_value2 = 0x50df99042a20073fULL; 00194 }; 00195 00196 template<class ContainerAllocator> 00197 struct DataType< ::cob_3d_mapping_msgs::curved_polygon_<ContainerAllocator> > { 00198 static const char* value() 00199 { 00200 return "cob_3d_mapping_msgs/curved_polygon"; 00201 } 00202 00203 static const char* value(const ::cob_3d_mapping_msgs::curved_polygon_<ContainerAllocator> &) { return value(); } 00204 }; 00205 00206 template<class ContainerAllocator> 00207 struct Definition< ::cob_3d_mapping_msgs::curved_polygon_<ContainerAllocator> > { 00208 static const char* value() 00209 { 00210 return "time stamp\n\ 00211 uint32 ID\n\ 00212 float32[6] parameter\n\ 00213 #float32[][3] polyline\n\ 00214 simalarity_score[] score\n\ 00215 polyline_point[] polyline\n\ 00216 feature[] features\n\ 00217 ================================================================================\n\ 00218 MSG: cob_3d_mapping_msgs/simalarity_score\n\ 00219 uint32 ID\n\ 00220 float32 prob\n\ 00221 ================================================================================\n\ 00222 MSG: cob_3d_mapping_msgs/polyline_point\n\ 00223 float32 x\n\ 00224 float32 y\n\ 00225 float32 edge_prob\n\ 00226 ================================================================================\n\ 00227 MSG: cob_3d_mapping_msgs/feature\n\ 00228 float32 x\n\ 00229 float32 y\n\ 00230 float32 z\n\ 00231 uint32 ID\n\ 00232 "; 00233 } 00234 00235 static const char* value(const ::cob_3d_mapping_msgs::curved_polygon_<ContainerAllocator> &) { return value(); } 00236 }; 00237 00238 } // namespace message_traits 00239 } // namespace ros 00240 00241 namespace ros 00242 { 00243 namespace serialization 00244 { 00245 00246 template<class ContainerAllocator> struct Serializer< ::cob_3d_mapping_msgs::curved_polygon_<ContainerAllocator> > 00247 { 00248 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00249 { 00250 stream.next(m.stamp); 00251 stream.next(m.ID); 00252 stream.next(m.parameter); 00253 stream.next(m.score); 00254 stream.next(m.polyline); 00255 stream.next(m.features); 00256 } 00257 00258 ROS_DECLARE_ALLINONE_SERIALIZER; 00259 }; // struct curved_polygon_ 00260 } // namespace serialization 00261 } // namespace ros 00262 00263 namespace ros 00264 { 00265 namespace message_operations 00266 { 00267 00268 template<class ContainerAllocator> 00269 struct Printer< ::cob_3d_mapping_msgs::curved_polygon_<ContainerAllocator> > 00270 { 00271 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cob_3d_mapping_msgs::curved_polygon_<ContainerAllocator> & v) 00272 { 00273 s << indent << "stamp: "; 00274 Printer<ros::Time>::stream(s, indent + " ", v.stamp); 00275 s << indent << "ID: "; 00276 Printer<uint32_t>::stream(s, indent + " ", v.ID); 00277 s << indent << "parameter[]" << std::endl; 00278 for (size_t i = 0; i < v.parameter.size(); ++i) 00279 { 00280 s << indent << " parameter[" << i << "]: "; 00281 Printer<float>::stream(s, indent + " ", v.parameter[i]); 00282 } 00283 s << indent << "score[]" << std::endl; 00284 for (size_t i = 0; i < v.score.size(); ++i) 00285 { 00286 s << indent << " score[" << i << "]: "; 00287 s << std::endl; 00288 s << indent; 00289 Printer< ::cob_3d_mapping_msgs::simalarity_score_<ContainerAllocator> >::stream(s, indent + " ", v.score[i]); 00290 } 00291 s << indent << "polyline[]" << std::endl; 00292 for (size_t i = 0; i < v.polyline.size(); ++i) 00293 { 00294 s << indent << " polyline[" << i << "]: "; 00295 s << std::endl; 00296 s << indent; 00297 Printer< ::cob_3d_mapping_msgs::polyline_point_<ContainerAllocator> >::stream(s, indent + " ", v.polyline[i]); 00298 } 00299 s << indent << "features[]" << std::endl; 00300 for (size_t i = 0; i < v.features.size(); ++i) 00301 { 00302 s << indent << " features[" << i << "]: "; 00303 s << std::endl; 00304 s << indent; 00305 Printer< ::cob_3d_mapping_msgs::feature_<ContainerAllocator> >::stream(s, indent + " ", v.features[i]); 00306 } 00307 } 00308 }; 00309 00310 00311 } // namespace message_operations 00312 } // namespace ros 00313 00314 #endif // COB_3D_MAPPING_MSGS_MESSAGE_CURVED_POLYGON_H 00315