Go to the documentation of this file.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 typedef boost::shared_ptr< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> > Ptr;
00054 typedef boost::shared_ptr< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> const> ConstPtr;
00055 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00056 };
00057 typedef ::worldmodel_msgs::ObjectInfo_<std::allocator<void> > ObjectInfo;
00058
00059 typedef boost::shared_ptr< ::worldmodel_msgs::ObjectInfo> ObjectInfoPtr;
00060 typedef boost::shared_ptr< ::worldmodel_msgs::ObjectInfo const> ObjectInfoConstPtr;
00061
00062
00063 template<typename ContainerAllocator>
00064 std::ostream& operator<<(std::ostream& s, const ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> & v)
00065 {
00066 ros::message_operations::Printer< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> >::stream(s, "", v);
00067 return s;}
00068
00069 }
00070
00071 namespace ros
00072 {
00073 namespace message_traits
00074 {
00075 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> > : public TrueType {};
00076 template<class ContainerAllocator> struct IsMessage< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> const> : public TrueType {};
00077 template<class ContainerAllocator>
00078 struct MD5Sum< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> > {
00079 static const char* value()
00080 {
00081 return "d394469df540d3963132564bb1e1b6c6";
00082 }
00083
00084 static const char* value(const ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> &) { return value(); }
00085 static const uint64_t static_value1 = 0xd394469df540d396ULL;
00086 static const uint64_t static_value2 = 0x3132564bb1e1b6c6ULL;
00087 };
00088
00089 template<class ContainerAllocator>
00090 struct DataType< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> > {
00091 static const char* value()
00092 {
00093 return "worldmodel_msgs/ObjectInfo";
00094 }
00095
00096 static const char* value(const ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> &) { return value(); }
00097 };
00098
00099 template<class ContainerAllocator>
00100 struct Definition< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> > {
00101 static const char* value()
00102 {
00103 return "# This message contains information about the estimated class affiliation, object id and corresponding support\n\
00104 \n\
00105 # A string identifying the object's class (all objects of a class look the same)\n\
00106 string class_id\n\
00107 \n\
00108 # A string identifying the specific object\n\
00109 string object_id\n\
00110 \n\
00111 # A string that contains the name or a description of the specific object\n\
00112 string name\n\
00113 \n\
00114 # The support (degree of belief) of the object's presence given as log odd ratio\n\
00115 float32 support\n\
00116 \n\
00117 \n\
00118 ";
00119 }
00120
00121 static const char* value(const ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> &) { return value(); }
00122 };
00123
00124 }
00125 }
00126
00127 namespace ros
00128 {
00129 namespace serialization
00130 {
00131
00132 template<class ContainerAllocator> struct Serializer< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> >
00133 {
00134 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00135 {
00136 stream.next(m.class_id);
00137 stream.next(m.object_id);
00138 stream.next(m.name);
00139 stream.next(m.support);
00140 }
00141
00142 ROS_DECLARE_ALLINONE_SERIALIZER;
00143 };
00144 }
00145 }
00146
00147 namespace ros
00148 {
00149 namespace message_operations
00150 {
00151
00152 template<class ContainerAllocator>
00153 struct Printer< ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> >
00154 {
00155 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::worldmodel_msgs::ObjectInfo_<ContainerAllocator> & v)
00156 {
00157 s << indent << "class_id: ";
00158 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.class_id);
00159 s << indent << "object_id: ";
00160 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.object_id);
00161 s << indent << "name: ";
00162 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
00163 s << indent << "support: ";
00164 Printer<float>::stream(s, indent + " ", v.support);
00165 }
00166 };
00167
00168
00169 }
00170 }
00171
00172 #endif // WORLDMODEL_MSGS_MESSAGE_OBJECTINFO_H
00173