$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/ObjectEvidence.msg */ 00002 #ifndef WIRE_MSGS_MESSAGE_OBJECTEVIDENCE_H 00003 #define WIRE_MSGS_MESSAGE_OBJECTEVIDENCE_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 "wire_msgs/Property.h" 00018 00019 namespace wire_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct ObjectEvidence_ { 00023 typedef ObjectEvidence_<ContainerAllocator> Type; 00024 00025 ObjectEvidence_() 00026 : certainty(0.0) 00027 , negative(false) 00028 , properties() 00029 { 00030 } 00031 00032 ObjectEvidence_(const ContainerAllocator& _alloc) 00033 : certainty(0.0) 00034 , negative(false) 00035 , properties(_alloc) 00036 { 00037 } 00038 00039 typedef double _certainty_type; 00040 double certainty; 00041 00042 typedef uint8_t _negative_type; 00043 uint8_t negative; 00044 00045 typedef std::vector< ::wire_msgs::Property_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wire_msgs::Property_<ContainerAllocator> >::other > _properties_type; 00046 std::vector< ::wire_msgs::Property_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wire_msgs::Property_<ContainerAllocator> >::other > properties; 00047 00048 00049 ROS_DEPRECATED uint32_t get_properties_size() const { return (uint32_t)properties.size(); } 00050 ROS_DEPRECATED void set_properties_size(uint32_t size) { properties.resize((size_t)size); } 00051 ROS_DEPRECATED void get_properties_vec(std::vector< ::wire_msgs::Property_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wire_msgs::Property_<ContainerAllocator> >::other > & vec) const { vec = this->properties; } 00052 ROS_DEPRECATED void set_properties_vec(const std::vector< ::wire_msgs::Property_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wire_msgs::Property_<ContainerAllocator> >::other > & vec) { this->properties = vec; } 00053 private: 00054 static const char* __s_getDataType_() { return "wire_msgs/ObjectEvidence"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00057 00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00059 00060 private: 00061 static const char* __s_getMD5Sum_() { return "77e95746f47f2a6173d16614abb68048"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00064 00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00066 00067 private: 00068 static const char* __s_getMessageDefinition_() { return "float64 certainty\n\ 00069 bool negative\n\ 00070 \n\ 00071 Property[] properties\n\ 00072 \n\ 00073 ================================================================================\n\ 00074 MSG: wire_msgs/Property\n\ 00075 string attribute\n\ 00076 problib/PDF pdf\n\ 00077 \n\ 00078 ================================================================================\n\ 00079 MSG: problib/PDF\n\ 00080 uint8 EXACT=0 # Is here for easier msg creation, but is actually a specialized case:\n\ 00081 # - continuous: is a Gaussian with zero covariance\n\ 00082 # - discrete: is a Discrete pdf with one entry with P=1 \n\ 00083 uint8 GAUSSIAN=1\n\ 00084 uint8 UNIFORM=2\n\ 00085 uint8 PARTICLES=3\n\ 00086 uint8 MIXTURE=4\n\ 00087 uint8 DISCRETE=5\n\ 00088 uint8 HYBRID=6\n\ 00089 \n\ 00090 uint8 type\n\ 00091 uint32 dimensions\n\ 00092 \n\ 00093 # For continuous pdf's\n\ 00094 float64[] data\n\ 00095 \n\ 00096 # For discrete pdf's (pmf)\n\ 00097 int32 domain_size\n\ 00098 string[] values\n\ 00099 float64[] probabilities\n\ 00100 \n\ 00101 # For exact values, either a string or a vector\n\ 00102 string exact_value_str\n\ 00103 float64[] exact_value_vec\n\ 00104 \n\ 00105 "; } 00106 public: 00107 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00108 00109 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00110 00111 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00112 { 00113 ros::serialization::OStream stream(write_ptr, 1000000000); 00114 ros::serialization::serialize(stream, certainty); 00115 ros::serialization::serialize(stream, negative); 00116 ros::serialization::serialize(stream, properties); 00117 return stream.getData(); 00118 } 00119 00120 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00121 { 00122 ros::serialization::IStream stream(read_ptr, 1000000000); 00123 ros::serialization::deserialize(stream, certainty); 00124 ros::serialization::deserialize(stream, negative); 00125 ros::serialization::deserialize(stream, properties); 00126 return stream.getData(); 00127 } 00128 00129 ROS_DEPRECATED virtual uint32_t serializationLength() const 00130 { 00131 uint32_t size = 0; 00132 size += ros::serialization::serializationLength(certainty); 00133 size += ros::serialization::serializationLength(negative); 00134 size += ros::serialization::serializationLength(properties); 00135 return size; 00136 } 00137 00138 typedef boost::shared_ptr< ::wire_msgs::ObjectEvidence_<ContainerAllocator> > Ptr; 00139 typedef boost::shared_ptr< ::wire_msgs::ObjectEvidence_<ContainerAllocator> const> ConstPtr; 00140 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00141 }; // struct ObjectEvidence 00142 typedef ::wire_msgs::ObjectEvidence_<std::allocator<void> > ObjectEvidence; 00143 00144 typedef boost::shared_ptr< ::wire_msgs::ObjectEvidence> ObjectEvidencePtr; 00145 typedef boost::shared_ptr< ::wire_msgs::ObjectEvidence const> ObjectEvidenceConstPtr; 00146 00147 00148 template<typename ContainerAllocator> 00149 std::ostream& operator<<(std::ostream& s, const ::wire_msgs::ObjectEvidence_<ContainerAllocator> & v) 00150 { 00151 ros::message_operations::Printer< ::wire_msgs::ObjectEvidence_<ContainerAllocator> >::stream(s, "", v); 00152 return s;} 00153 00154 } // namespace wire_msgs 00155 00156 namespace ros 00157 { 00158 namespace message_traits 00159 { 00160 template<class ContainerAllocator> struct IsMessage< ::wire_msgs::ObjectEvidence_<ContainerAllocator> > : public TrueType {}; 00161 template<class ContainerAllocator> struct IsMessage< ::wire_msgs::ObjectEvidence_<ContainerAllocator> const> : public TrueType {}; 00162 template<class ContainerAllocator> 00163 struct MD5Sum< ::wire_msgs::ObjectEvidence_<ContainerAllocator> > { 00164 static const char* value() 00165 { 00166 return "77e95746f47f2a6173d16614abb68048"; 00167 } 00168 00169 static const char* value(const ::wire_msgs::ObjectEvidence_<ContainerAllocator> &) { return value(); } 00170 static const uint64_t static_value1 = 0x77e95746f47f2a61ULL; 00171 static const uint64_t static_value2 = 0x73d16614abb68048ULL; 00172 }; 00173 00174 template<class ContainerAllocator> 00175 struct DataType< ::wire_msgs::ObjectEvidence_<ContainerAllocator> > { 00176 static const char* value() 00177 { 00178 return "wire_msgs/ObjectEvidence"; 00179 } 00180 00181 static const char* value(const ::wire_msgs::ObjectEvidence_<ContainerAllocator> &) { return value(); } 00182 }; 00183 00184 template<class ContainerAllocator> 00185 struct Definition< ::wire_msgs::ObjectEvidence_<ContainerAllocator> > { 00186 static const char* value() 00187 { 00188 return "float64 certainty\n\ 00189 bool negative\n\ 00190 \n\ 00191 Property[] properties\n\ 00192 \n\ 00193 ================================================================================\n\ 00194 MSG: wire_msgs/Property\n\ 00195 string attribute\n\ 00196 problib/PDF pdf\n\ 00197 \n\ 00198 ================================================================================\n\ 00199 MSG: problib/PDF\n\ 00200 uint8 EXACT=0 # Is here for easier msg creation, but is actually a specialized case:\n\ 00201 # - continuous: is a Gaussian with zero covariance\n\ 00202 # - discrete: is a Discrete pdf with one entry with P=1 \n\ 00203 uint8 GAUSSIAN=1\n\ 00204 uint8 UNIFORM=2\n\ 00205 uint8 PARTICLES=3\n\ 00206 uint8 MIXTURE=4\n\ 00207 uint8 DISCRETE=5\n\ 00208 uint8 HYBRID=6\n\ 00209 \n\ 00210 uint8 type\n\ 00211 uint32 dimensions\n\ 00212 \n\ 00213 # For continuous pdf's\n\ 00214 float64[] data\n\ 00215 \n\ 00216 # For discrete pdf's (pmf)\n\ 00217 int32 domain_size\n\ 00218 string[] values\n\ 00219 float64[] probabilities\n\ 00220 \n\ 00221 # For exact values, either a string or a vector\n\ 00222 string exact_value_str\n\ 00223 float64[] exact_value_vec\n\ 00224 \n\ 00225 "; 00226 } 00227 00228 static const char* value(const ::wire_msgs::ObjectEvidence_<ContainerAllocator> &) { return value(); } 00229 }; 00230 00231 } // namespace message_traits 00232 } // namespace ros 00233 00234 namespace ros 00235 { 00236 namespace serialization 00237 { 00238 00239 template<class ContainerAllocator> struct Serializer< ::wire_msgs::ObjectEvidence_<ContainerAllocator> > 00240 { 00241 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00242 { 00243 stream.next(m.certainty); 00244 stream.next(m.negative); 00245 stream.next(m.properties); 00246 } 00247 00248 ROS_DECLARE_ALLINONE_SERIALIZER; 00249 }; // struct ObjectEvidence_ 00250 } // namespace serialization 00251 } // namespace ros 00252 00253 namespace ros 00254 { 00255 namespace message_operations 00256 { 00257 00258 template<class ContainerAllocator> 00259 struct Printer< ::wire_msgs::ObjectEvidence_<ContainerAllocator> > 00260 { 00261 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wire_msgs::ObjectEvidence_<ContainerAllocator> & v) 00262 { 00263 s << indent << "certainty: "; 00264 Printer<double>::stream(s, indent + " ", v.certainty); 00265 s << indent << "negative: "; 00266 Printer<uint8_t>::stream(s, indent + " ", v.negative); 00267 s << indent << "properties[]" << std::endl; 00268 for (size_t i = 0; i < v.properties.size(); ++i) 00269 { 00270 s << indent << " properties[" << i << "]: "; 00271 s << std::endl; 00272 s << indent; 00273 Printer< ::wire_msgs::Property_<ContainerAllocator> >::stream(s, indent + " ", v.properties[i]); 00274 } 00275 } 00276 }; 00277 00278 00279 } // namespace message_operations 00280 } // namespace ros 00281 00282 #endif // WIRE_MSGS_MESSAGE_OBJECTEVIDENCE_H 00283