$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-tue/doc_stacks/2013-03-05_12-23-27.283047/wire/wire_msgs/msg/WorldEvidence.msg */ 00002 #ifndef WIRE_MSGS_MESSAGE_WORLDEVIDENCE_H 00003 #define WIRE_MSGS_MESSAGE_WORLDEVIDENCE_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 "wire_msgs/ObjectEvidence.h" 00019 00020 namespace wire_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct WorldEvidence_ { 00024 typedef WorldEvidence_<ContainerAllocator> Type; 00025 00026 WorldEvidence_() 00027 : header() 00028 , object_evidence() 00029 { 00030 } 00031 00032 WorldEvidence_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , object_evidence(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef std::vector< ::wire_msgs::ObjectEvidence_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wire_msgs::ObjectEvidence_<ContainerAllocator> >::other > _object_evidence_type; 00042 std::vector< ::wire_msgs::ObjectEvidence_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wire_msgs::ObjectEvidence_<ContainerAllocator> >::other > object_evidence; 00043 00044 00045 ROS_DEPRECATED uint32_t get_object_evidence_size() const { return (uint32_t)object_evidence.size(); } 00046 ROS_DEPRECATED void set_object_evidence_size(uint32_t size) { object_evidence.resize((size_t)size); } 00047 ROS_DEPRECATED void get_object_evidence_vec(std::vector< ::wire_msgs::ObjectEvidence_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wire_msgs::ObjectEvidence_<ContainerAllocator> >::other > & vec) const { vec = this->object_evidence; } 00048 ROS_DEPRECATED void set_object_evidence_vec(const std::vector< ::wire_msgs::ObjectEvidence_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wire_msgs::ObjectEvidence_<ContainerAllocator> >::other > & vec) { this->object_evidence = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "wire_msgs/WorldEvidence"; } 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 "3e1294571cc4e4e17ce4b1d2768db636"; } 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 ObjectEvidence[] object_evidence\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: wire_msgs/ObjectEvidence\n\ 00087 float64 certainty\n\ 00088 bool negative\n\ 00089 \n\ 00090 Property[] properties\n\ 00091 \n\ 00092 ================================================================================\n\ 00093 MSG: wire_msgs/Property\n\ 00094 string attribute\n\ 00095 problib/PDF pdf\n\ 00096 \n\ 00097 ================================================================================\n\ 00098 MSG: problib/PDF\n\ 00099 uint8 EXACT=0 # Is here for easier msg creation, but is actually a specialized case:\n\ 00100 # - continuous: is a Gaussian with zero covariance\n\ 00101 # - discrete: is a Discrete pdf with one entry with P=1 \n\ 00102 uint8 GAUSSIAN=1\n\ 00103 uint8 UNIFORM=2\n\ 00104 uint8 PARTICLES=3\n\ 00105 uint8 MIXTURE=4\n\ 00106 uint8 DISCRETE=5\n\ 00107 uint8 HYBRID=6\n\ 00108 \n\ 00109 uint8 type\n\ 00110 uint32 dimensions\n\ 00111 \n\ 00112 # For continuous pdf's\n\ 00113 float64[] data\n\ 00114 \n\ 00115 # For discrete pdf's (pmf)\n\ 00116 int32 domain_size\n\ 00117 string[] values\n\ 00118 float64[] probabilities\n\ 00119 \n\ 00120 # For exact values, either a string or a vector\n\ 00121 string exact_value_str\n\ 00122 float64[] exact_value_vec\n\ 00123 \n\ 00124 "; } 00125 public: 00126 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00127 00128 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00129 00130 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00131 { 00132 ros::serialization::OStream stream(write_ptr, 1000000000); 00133 ros::serialization::serialize(stream, header); 00134 ros::serialization::serialize(stream, object_evidence); 00135 return stream.getData(); 00136 } 00137 00138 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00139 { 00140 ros::serialization::IStream stream(read_ptr, 1000000000); 00141 ros::serialization::deserialize(stream, header); 00142 ros::serialization::deserialize(stream, object_evidence); 00143 return stream.getData(); 00144 } 00145 00146 ROS_DEPRECATED virtual uint32_t serializationLength() const 00147 { 00148 uint32_t size = 0; 00149 size += ros::serialization::serializationLength(header); 00150 size += ros::serialization::serializationLength(object_evidence); 00151 return size; 00152 } 00153 00154 typedef boost::shared_ptr< ::wire_msgs::WorldEvidence_<ContainerAllocator> > Ptr; 00155 typedef boost::shared_ptr< ::wire_msgs::WorldEvidence_<ContainerAllocator> const> ConstPtr; 00156 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00157 }; // struct WorldEvidence 00158 typedef ::wire_msgs::WorldEvidence_<std::allocator<void> > WorldEvidence; 00159 00160 typedef boost::shared_ptr< ::wire_msgs::WorldEvidence> WorldEvidencePtr; 00161 typedef boost::shared_ptr< ::wire_msgs::WorldEvidence const> WorldEvidenceConstPtr; 00162 00163 00164 template<typename ContainerAllocator> 00165 std::ostream& operator<<(std::ostream& s, const ::wire_msgs::WorldEvidence_<ContainerAllocator> & v) 00166 { 00167 ros::message_operations::Printer< ::wire_msgs::WorldEvidence_<ContainerAllocator> >::stream(s, "", v); 00168 return s;} 00169 00170 } // namespace wire_msgs 00171 00172 namespace ros 00173 { 00174 namespace message_traits 00175 { 00176 template<class ContainerAllocator> struct IsMessage< ::wire_msgs::WorldEvidence_<ContainerAllocator> > : public TrueType {}; 00177 template<class ContainerAllocator> struct IsMessage< ::wire_msgs::WorldEvidence_<ContainerAllocator> const> : public TrueType {}; 00178 template<class ContainerAllocator> 00179 struct MD5Sum< ::wire_msgs::WorldEvidence_<ContainerAllocator> > { 00180 static const char* value() 00181 { 00182 return "3e1294571cc4e4e17ce4b1d2768db636"; 00183 } 00184 00185 static const char* value(const ::wire_msgs::WorldEvidence_<ContainerAllocator> &) { return value(); } 00186 static const uint64_t static_value1 = 0x3e1294571cc4e4e1ULL; 00187 static const uint64_t static_value2 = 0x7ce4b1d2768db636ULL; 00188 }; 00189 00190 template<class ContainerAllocator> 00191 struct DataType< ::wire_msgs::WorldEvidence_<ContainerAllocator> > { 00192 static const char* value() 00193 { 00194 return "wire_msgs/WorldEvidence"; 00195 } 00196 00197 static const char* value(const ::wire_msgs::WorldEvidence_<ContainerAllocator> &) { return value(); } 00198 }; 00199 00200 template<class ContainerAllocator> 00201 struct Definition< ::wire_msgs::WorldEvidence_<ContainerAllocator> > { 00202 static const char* value() 00203 { 00204 return "Header header\n\ 00205 ObjectEvidence[] object_evidence\n\ 00206 \n\ 00207 ================================================================================\n\ 00208 MSG: std_msgs/Header\n\ 00209 # Standard metadata for higher-level stamped data types.\n\ 00210 # This is generally used to communicate timestamped data \n\ 00211 # in a particular coordinate frame.\n\ 00212 # \n\ 00213 # sequence ID: consecutively increasing ID \n\ 00214 uint32 seq\n\ 00215 #Two-integer timestamp that is expressed as:\n\ 00216 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00217 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00218 # time-handling sugar is provided by the client library\n\ 00219 time stamp\n\ 00220 #Frame this data is associated with\n\ 00221 # 0: no frame\n\ 00222 # 1: global frame\n\ 00223 string frame_id\n\ 00224 \n\ 00225 ================================================================================\n\ 00226 MSG: wire_msgs/ObjectEvidence\n\ 00227 float64 certainty\n\ 00228 bool negative\n\ 00229 \n\ 00230 Property[] properties\n\ 00231 \n\ 00232 ================================================================================\n\ 00233 MSG: wire_msgs/Property\n\ 00234 string attribute\n\ 00235 problib/PDF pdf\n\ 00236 \n\ 00237 ================================================================================\n\ 00238 MSG: problib/PDF\n\ 00239 uint8 EXACT=0 # Is here for easier msg creation, but is actually a specialized case:\n\ 00240 # - continuous: is a Gaussian with zero covariance\n\ 00241 # - discrete: is a Discrete pdf with one entry with P=1 \n\ 00242 uint8 GAUSSIAN=1\n\ 00243 uint8 UNIFORM=2\n\ 00244 uint8 PARTICLES=3\n\ 00245 uint8 MIXTURE=4\n\ 00246 uint8 DISCRETE=5\n\ 00247 uint8 HYBRID=6\n\ 00248 \n\ 00249 uint8 type\n\ 00250 uint32 dimensions\n\ 00251 \n\ 00252 # For continuous pdf's\n\ 00253 float64[] data\n\ 00254 \n\ 00255 # For discrete pdf's (pmf)\n\ 00256 int32 domain_size\n\ 00257 string[] values\n\ 00258 float64[] probabilities\n\ 00259 \n\ 00260 # For exact values, either a string or a vector\n\ 00261 string exact_value_str\n\ 00262 float64[] exact_value_vec\n\ 00263 \n\ 00264 "; 00265 } 00266 00267 static const char* value(const ::wire_msgs::WorldEvidence_<ContainerAllocator> &) { return value(); } 00268 }; 00269 00270 template<class ContainerAllocator> struct HasHeader< ::wire_msgs::WorldEvidence_<ContainerAllocator> > : public TrueType {}; 00271 template<class ContainerAllocator> struct HasHeader< const ::wire_msgs::WorldEvidence_<ContainerAllocator> > : public TrueType {}; 00272 } // namespace message_traits 00273 } // namespace ros 00274 00275 namespace ros 00276 { 00277 namespace serialization 00278 { 00279 00280 template<class ContainerAllocator> struct Serializer< ::wire_msgs::WorldEvidence_<ContainerAllocator> > 00281 { 00282 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00283 { 00284 stream.next(m.header); 00285 stream.next(m.object_evidence); 00286 } 00287 00288 ROS_DECLARE_ALLINONE_SERIALIZER; 00289 }; // struct WorldEvidence_ 00290 } // namespace serialization 00291 } // namespace ros 00292 00293 namespace ros 00294 { 00295 namespace message_operations 00296 { 00297 00298 template<class ContainerAllocator> 00299 struct Printer< ::wire_msgs::WorldEvidence_<ContainerAllocator> > 00300 { 00301 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wire_msgs::WorldEvidence_<ContainerAllocator> & v) 00302 { 00303 s << indent << "header: "; 00304 s << std::endl; 00305 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00306 s << indent << "object_evidence[]" << std::endl; 00307 for (size_t i = 0; i < v.object_evidence.size(); ++i) 00308 { 00309 s << indent << " object_evidence[" << i << "]: "; 00310 s << std::endl; 00311 s << indent; 00312 Printer< ::wire_msgs::ObjectEvidence_<ContainerAllocator> >::stream(s, indent + " ", v.object_evidence[i]); 00313 } 00314 } 00315 }; 00316 00317 00318 } // namespace message_operations 00319 } // namespace ros 00320 00321 #endif // WIRE_MSGS_MESSAGE_WORLDEVIDENCE_H 00322