00001
00002 #ifndef WORLDMODEL_MSGS_MESSAGE_OBJECTINFO_H
00003 #define WORLDMODEL_MSGS_MESSAGE_OBJECTINFO_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 ObjectInfo_ {
00022 typedef ObjectInfo_<ContainerAllocator> Type;
00023
00024 ObjectInfo_()
00025 : class_id()
00026 , object_id()
00027 , name()
00028 , support(0.0)
00029 {
00030 }
00031
00032 ObjectInfo_(const ContainerAllocator& _alloc)
00033 : class_id(_alloc)
00034 , object_id(_alloc)
00035 , name(_alloc)
00036 , support(0.0)
00037 {
00038 }
00039
00040 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _class_id_type;
00041 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > class_id;
00042
00043 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _object_id_type;
00044 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > object_id;
00045
00046 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
00047 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name;
00048
00049 typedef float _support_type;
00050 float support;
00051
00052
00053 private:
00054 static const char* __s_getDataType_() { return "worldmodel_msgs/ObjectInfo"; }
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 "d394469df540d3963132564bb1e1b6c6"; }
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 "# This message contains information about the estimated class affiliation, object id and corresponding support\n\
00069 \n\
00070 # A string identifying the object's class (all objects of a class look the same)\n\
00071 string class_id\n\
00072 \n\
00073 # A string identifying the specific object\n\
00074 string object_id\n\
00075 \n\
00076 # A string that contains the name or a description of the specific object\n\
00077 string name\n\
00078 \n\
00079 # The support (degree of belief) of the object's presence given as log odd ratio\n\
00080 float32 support\n\
00081 \n\
00082 \n\
00083 "; }
00084 public:
00085 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00086
00087 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00088
00089 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00090 {
00091 ros::serialization::OStream stream(write_ptr, 1000000000);
00092 ros::serialization::serialize(stream, class_id);
00093 ros::serialization::serialize(stream, object_id);
00094 ros::serialization::serialize(stream, name);
00095 ros::serialization::serialize(stream, support);
00096 return stream.getData();
00097 }
00098
00099 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00100 {
00101 ros::serialization::IStream stream(read_ptr, 1000000000);
00102 ros::serialization::deserialize(stream, class_id);
00103 ros::serialization::deserialize(stream, object_id);
00104 ros::serialization::deserialize(stream, name);
00105 ros::serialization::deserialize(stream, support);
00106 return stream.getData();
00107 }
00108
00109 ROS_DEPRECATED virtual uint32_t serializationLength() const
00110 {
00111 uint32_t size = 0;
00112 size += ros::serialization::serializationLength(class_id);
00113 size += ros::serialization::serializationLength(object_id);
00114 size += ros::serialization::serializationLength(name);
00115 size += ros::serialization::serializationLength(support);
00116 return size;
00117 }
00118
00119 typedef boost::shared_ptr< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> > Ptr;
00120 typedef boost::shared_ptr< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> const> ConstPtr;
00121 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00122 };
00123 typedef ::worldmodel_msgs::ObjectInfo_<std::allocator<void> > ObjectInfo;
00124
00125 typedef boost::shared_ptr< ::worldmodel_msgs::ObjectInfo> ObjectInfoPtr;
00126 typedef boost::shared_ptr< ::worldmodel_msgs::ObjectInfo const> ObjectInfoConstPtr;
00127
00128
00129 template<typename ContainerAllocator>
00130 std::ostream& operator<<(std::ostream& s, const ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> & v)
00131 {
00132 ros::message_operations::Printer< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> >::stream(s, "", v);
00133 return s;}
00134
00135 }
00136
00137 namespace ros
00138 {
00139 namespace message_traits
00140 {
00141 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> > : public TrueType {};
00142 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> const> : public TrueType {};
00143 template<class ContainerAllocator>
00144 struct MD5Sum< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> > {
00145 static const char* value()
00146 {
00147 return "d394469df540d3963132564bb1e1b6c6";
00148 }
00149
00150 static const char* value(const ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> &) { return value(); }
00151 static const uint64_t static_value1 = 0xd394469df540d396ULL;
00152 static const uint64_t static_value2 = 0x3132564bb1e1b6c6ULL;
00153 };
00154
00155 template<class ContainerAllocator>
00156 struct DataType< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> > {
00157 static const char* value()
00158 {
00159 return "worldmodel_msgs/ObjectInfo";
00160 }
00161
00162 static const char* value(const ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> &) { return value(); }
00163 };
00164
00165 template<class ContainerAllocator>
00166 struct Definition< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> > {
00167 static const char* value()
00168 {
00169 return "# This message contains information about the estimated class affiliation, object id and corresponding support\n\
00170 \n\
00171 # A string identifying the object's class (all objects of a class look the same)\n\
00172 string class_id\n\
00173 \n\
00174 # A string identifying the specific object\n\
00175 string object_id\n\
00176 \n\
00177 # A string that contains the name or a description of the specific object\n\
00178 string name\n\
00179 \n\
00180 # The support (degree of belief) of the object's presence given as log odd ratio\n\
00181 float32 support\n\
00182 \n\
00183 \n\
00184 ";
00185 }
00186
00187 static const char* value(const ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> &) { return value(); }
00188 };
00189
00190 }
00191 }
00192
00193 namespace ros
00194 {
00195 namespace serialization
00196 {
00197
00198 template<class ContainerAllocator> struct Serializer< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> >
00199 {
00200 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00201 {
00202 stream.next(m.class_id);
00203 stream.next(m.object_id);
00204 stream.next(m.name);
00205 stream.next(m.support);
00206 }
00207
00208 ROS_DECLARE_ALLINONE_SERIALIZER;
00209 };
00210 }
00211 }
00212
00213 namespace ros
00214 {
00215 namespace message_operations
00216 {
00217
00218 template<class ContainerAllocator>
00219 struct Printer< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> >
00220 {
00221 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> & v)
00222 {
00223 s << indent << "class_id: ";
00224 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.class_id);
00225 s << indent << "object_id: ";
00226 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.object_id);
00227 s << indent << "name: ";
00228 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
00229 s << indent << "support: ";
00230 Printer<float>::stream(s, indent + " ", v.support);
00231 }
00232 };
00233
00234
00235 }
00236 }
00237
00238 #endif // WORLDMODEL_MSGS_MESSAGE_OBJECTINFO_H
00239