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