$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-tu-darmstadt-ros-pkg/doc_stacks/2013-03-05_12-22-58.304137/hector_worldmodel/worldmodel_msgs/msg/PerceptInfo.msg */ 00002 #ifndef WORLDMODEL_MSGS_MESSAGE_PERCEPTINFO_H 00003 #define WORLDMODEL_MSGS_MESSAGE_PERCEPTINFO_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 00018 namespace worldmodel_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct PerceptInfo_ { 00022 typedef PerceptInfo_<ContainerAllocator> Type; 00023 00024 PerceptInfo_() 00025 : class_id() 00026 , class_support(0.0) 00027 , object_id() 00028 , object_support(0.0) 00029 , name() 00030 { 00031 } 00032 00033 PerceptInfo_(const ContainerAllocator& _alloc) 00034 : class_id(_alloc) 00035 , class_support(0.0) 00036 , object_id(_alloc) 00037 , object_support(0.0) 00038 , name(_alloc) 00039 { 00040 } 00041 00042 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _class_id_type; 00043 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > class_id; 00044 00045 typedef float _class_support_type; 00046 float class_support; 00047 00048 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _object_id_type; 00049 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > object_id; 00050 00051 typedef float _object_support_type; 00052 float object_support; 00053 00054 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type; 00055 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name; 00056 00057 00058 private: 00059 static const char* __s_getDataType_() { return "worldmodel_msgs/PerceptInfo"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00062 00063 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00064 00065 private: 00066 static const char* __s_getMD5Sum_() { return "6d276cf0fa6b560cbfd07a3f9eab88b5"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00069 00070 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00071 00072 private: 00073 static const char* __s_getMessageDefinition_() { return "# This message contains information about the estimated class and object identity \n\ 00074 \n\ 00075 # A string identifying the object's class (all objects of a class look the same)\n\ 00076 string class_id\n\ 00077 \n\ 00078 # The class association support of the observation\n\ 00079 # The support is the log odd likelihood ratio given by log(p(y/observation y belongs to object of class class_id) / p(y/observation y is a false positive))\n\ 00080 float32 class_support\n\ 00081 \n\ 00082 # A string identifying a specific object\n\ 00083 string object_id\n\ 00084 \n\ 00085 # The object association support of the observation\n\ 00086 # The support is the log odd likelihood ratio given by log(p(observation belongs to object object_id) / p(observation is false positive or belongs to another object))\n\ 00087 float32 object_support\n\ 00088 \n\ 00089 # A string that contains the name or a description of the specific object\n\ 00090 string name\n\ 00091 \n\ 00092 "; } 00093 public: 00094 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00095 00096 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00097 00098 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00099 { 00100 ros::serialization::OStream stream(write_ptr, 1000000000); 00101 ros::serialization::serialize(stream, class_id); 00102 ros::serialization::serialize(stream, class_support); 00103 ros::serialization::serialize(stream, object_id); 00104 ros::serialization::serialize(stream, object_support); 00105 ros::serialization::serialize(stream, name); 00106 return stream.getData(); 00107 } 00108 00109 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00110 { 00111 ros::serialization::IStream stream(read_ptr, 1000000000); 00112 ros::serialization::deserialize(stream, class_id); 00113 ros::serialization::deserialize(stream, class_support); 00114 ros::serialization::deserialize(stream, object_id); 00115 ros::serialization::deserialize(stream, object_support); 00116 ros::serialization::deserialize(stream, name); 00117 return stream.getData(); 00118 } 00119 00120 ROS_DEPRECATED virtual uint32_t serializationLength() const 00121 { 00122 uint32_t size = 0; 00123 size += ros::serialization::serializationLength(class_id); 00124 size += ros::serialization::serializationLength(class_support); 00125 size += ros::serialization::serializationLength(object_id); 00126 size += ros::serialization::serializationLength(object_support); 00127 size += ros::serialization::serializationLength(name); 00128 return size; 00129 } 00130 00131 typedef boost::shared_ptr< ::worldmodel_msgs::PerceptInfo_<ContainerAllocator> > Ptr; 00132 typedef boost::shared_ptr< ::worldmodel_msgs::PerceptInfo_<ContainerAllocator> const> ConstPtr; 00133 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00134 }; // struct PerceptInfo 00135 typedef ::worldmodel_msgs::PerceptInfo_<std::allocator<void> > PerceptInfo; 00136 00137 typedef boost::shared_ptr< ::worldmodel_msgs::PerceptInfo> PerceptInfoPtr; 00138 typedef boost::shared_ptr< ::worldmodel_msgs::PerceptInfo const> PerceptInfoConstPtr; 00139 00140 00141 template<typename ContainerAllocator> 00142 std::ostream& operator<<(std::ostream& s, const ::worldmodel_msgs::PerceptInfo_<ContainerAllocator> & v) 00143 { 00144 ros::message_operations::Printer< ::worldmodel_msgs::PerceptInfo_<ContainerAllocator> >::stream(s, "", v); 00145 return s;} 00146 00147 } // namespace worldmodel_msgs 00148 00149 namespace ros 00150 { 00151 namespace message_traits 00152 { 00153 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::PerceptInfo_<ContainerAllocator> > : public TrueType {}; 00154 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::PerceptInfo_<ContainerAllocator> const> : public TrueType {}; 00155 template<class ContainerAllocator> 00156 struct MD5Sum< ::worldmodel_msgs::PerceptInfo_<ContainerAllocator> > { 00157 static const char* value() 00158 { 00159 return "6d276cf0fa6b560cbfd07a3f9eab88b5"; 00160 } 00161 00162 static const char* value(const ::worldmodel_msgs::PerceptInfo_<ContainerAllocator> &) { return value(); } 00163 static const uint64_t static_value1 = 0x6d276cf0fa6b560cULL; 00164 static const uint64_t static_value2 = 0xbfd07a3f9eab88b5ULL; 00165 }; 00166 00167 template<class ContainerAllocator> 00168 struct DataType< ::worldmodel_msgs::PerceptInfo_<ContainerAllocator> > { 00169 static const char* value() 00170 { 00171 return "worldmodel_msgs/PerceptInfo"; 00172 } 00173 00174 static const char* value(const ::worldmodel_msgs::PerceptInfo_<ContainerAllocator> &) { return value(); } 00175 }; 00176 00177 template<class ContainerAllocator> 00178 struct Definition< ::worldmodel_msgs::PerceptInfo_<ContainerAllocator> > { 00179 static const char* value() 00180 { 00181 return "# This message contains information about the estimated class and object identity \n\ 00182 \n\ 00183 # A string identifying the object's class (all objects of a class look the same)\n\ 00184 string class_id\n\ 00185 \n\ 00186 # The class association support of the observation\n\ 00187 # The support is the log odd likelihood ratio given by log(p(y/observation y belongs to object of class class_id) / p(y/observation y is a false positive))\n\ 00188 float32 class_support\n\ 00189 \n\ 00190 # A string identifying a specific object\n\ 00191 string object_id\n\ 00192 \n\ 00193 # The object association support of the observation\n\ 00194 # The support is the log odd likelihood ratio given by log(p(observation belongs to object object_id) / p(observation is false positive or belongs to another object))\n\ 00195 float32 object_support\n\ 00196 \n\ 00197 # A string that contains the name or a description of the specific object\n\ 00198 string name\n\ 00199 \n\ 00200 "; 00201 } 00202 00203 static const char* value(const ::worldmodel_msgs::PerceptInfo_<ContainerAllocator> &) { return value(); } 00204 }; 00205 00206 } // namespace message_traits 00207 } // namespace ros 00208 00209 namespace ros 00210 { 00211 namespace serialization 00212 { 00213 00214 template<class ContainerAllocator> struct Serializer< ::worldmodel_msgs::PerceptInfo_<ContainerAllocator> > 00215 { 00216 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00217 { 00218 stream.next(m.class_id); 00219 stream.next(m.class_support); 00220 stream.next(m.object_id); 00221 stream.next(m.object_support); 00222 stream.next(m.name); 00223 } 00224 00225 ROS_DECLARE_ALLINONE_SERIALIZER; 00226 }; // struct PerceptInfo_ 00227 } // namespace serialization 00228 } // namespace ros 00229 00230 namespace ros 00231 { 00232 namespace message_operations 00233 { 00234 00235 template<class ContainerAllocator> 00236 struct Printer< ::worldmodel_msgs::PerceptInfo_<ContainerAllocator> > 00237 { 00238 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::worldmodel_msgs::PerceptInfo_<ContainerAllocator> & v) 00239 { 00240 s << indent << "class_id: "; 00241 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.class_id); 00242 s << indent << "class_support: "; 00243 Printer<float>::stream(s, indent + " ", v.class_support); 00244 s << indent << "object_id: "; 00245 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.object_id); 00246 s << indent << "object_support: "; 00247 Printer<float>::stream(s, indent + " ", v.object_support); 00248 s << indent << "name: "; 00249 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name); 00250 } 00251 }; 00252 00253 00254 } // namespace message_operations 00255 } // namespace ros 00256 00257 #endif // WORLDMODEL_MSGS_MESSAGE_PERCEPTINFO_H 00258