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