Go to the documentation of this file.00001
00002 #ifndef VISION_MSGS_MESSAGE_COP_DESCRIPTOR_H
00003 #define VISION_MSGS_MESSAGE_COP_DESCRIPTOR_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 vision_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct cop_descriptor_ {
00022 typedef cop_descriptor_<ContainerAllocator> Type;
00023
00024 cop_descriptor_()
00025 : object_id(0)
00026 , sem_class()
00027 , type()
00028 , quality(0.0)
00029 {
00030 }
00031
00032 cop_descriptor_(const ContainerAllocator& _alloc)
00033 : object_id(0)
00034 , sem_class(_alloc)
00035 , type(_alloc)
00036 , quality(0.0)
00037 {
00038 }
00039
00040 typedef uint64_t _object_id_type;
00041 uint64_t object_id;
00042
00043 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _sem_class_type;
00044 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > sem_class;
00045
00046 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _type_type;
00047 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > type;
00048
00049 typedef double _quality_type;
00050 double quality;
00051
00052
00053 typedef boost::shared_ptr< ::vision_msgs::cop_descriptor_<ContainerAllocator> > Ptr;
00054 typedef boost::shared_ptr< ::vision_msgs::cop_descriptor_<ContainerAllocator> const> ConstPtr;
00055 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00056 };
00057 typedef ::vision_msgs::cop_descriptor_<std::allocator<void> > cop_descriptor;
00058
00059 typedef boost::shared_ptr< ::vision_msgs::cop_descriptor> cop_descriptorPtr;
00060 typedef boost::shared_ptr< ::vision_msgs::cop_descriptor const> cop_descriptorConstPtr;
00061
00062
00063 template<typename ContainerAllocator>
00064 std::ostream& operator<<(std::ostream& s, const ::vision_msgs::cop_descriptor_<ContainerAllocator> & v)
00065 {
00066 ros::message_operations::Printer< ::vision_msgs::cop_descriptor_<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< ::vision_msgs::cop_descriptor_<ContainerAllocator> > : public TrueType {};
00076 template<class ContainerAllocator> struct IsMessage< ::vision_msgs::cop_descriptor_<ContainerAllocator> const> : public TrueType {};
00077 template<class ContainerAllocator>
00078 struct MD5Sum< ::vision_msgs::cop_descriptor_<ContainerAllocator> > {
00079 static const char* value()
00080 {
00081 return "da820395d349a763f46d0925861440b9";
00082 }
00083
00084 static const char* value(const ::vision_msgs::cop_descriptor_<ContainerAllocator> &) { return value(); }
00085 static const uint64_t static_value1 = 0xda820395d349a763ULL;
00086 static const uint64_t static_value2 = 0xf46d0925861440b9ULL;
00087 };
00088
00089 template<class ContainerAllocator>
00090 struct DataType< ::vision_msgs::cop_descriptor_<ContainerAllocator> > {
00091 static const char* value()
00092 {
00093 return "vision_msgs/cop_descriptor";
00094 }
00095
00096 static const char* value(const ::vision_msgs::cop_descriptor_<ContainerAllocator> &) { return value(); }
00097 };
00098
00099 template<class ContainerAllocator>
00100 struct Definition< ::vision_msgs::cop_descriptor_<ContainerAllocator> > {
00101 static const char* value()
00102 {
00103 return "#Descriptors of models used in cop, U. Klank klank@in.tum.de\n\
00104 uint64 object_id # unique id that could be used for a query\n\
00105 string sem_class # connected semantic concept\n\
00106 string type # Class name that was used to generate the corresponding cop descriptor plugin, \n\
00107 # example are: ShapeModel, ColorClass, DeformShapeModel\n\
00108 float64 quality # the current quality assinged to this descriptor\n\
00109 \n\
00110 \n\
00111 \n\
00112 \n\
00113 ";
00114 }
00115
00116 static const char* value(const ::vision_msgs::cop_descriptor_<ContainerAllocator> &) { return value(); }
00117 };
00118
00119 }
00120 }
00121
00122 namespace ros
00123 {
00124 namespace serialization
00125 {
00126
00127 template<class ContainerAllocator> struct Serializer< ::vision_msgs::cop_descriptor_<ContainerAllocator> >
00128 {
00129 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00130 {
00131 stream.next(m.object_id);
00132 stream.next(m.sem_class);
00133 stream.next(m.type);
00134 stream.next(m.quality);
00135 }
00136
00137 ROS_DECLARE_ALLINONE_SERIALIZER;
00138 };
00139 }
00140 }
00141
00142 namespace ros
00143 {
00144 namespace message_operations
00145 {
00146
00147 template<class ContainerAllocator>
00148 struct Printer< ::vision_msgs::cop_descriptor_<ContainerAllocator> >
00149 {
00150 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::vision_msgs::cop_descriptor_<ContainerAllocator> & v)
00151 {
00152 s << indent << "object_id: ";
00153 Printer<uint64_t>::stream(s, indent + " ", v.object_id);
00154 s << indent << "sem_class: ";
00155 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.sem_class);
00156 s << indent << "type: ";
00157 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.type);
00158 s << indent << "quality: ";
00159 Printer<double>::stream(s, indent + " ", v.quality);
00160 }
00161 };
00162
00163
00164 }
00165 }
00166
00167 #endif // VISION_MSGS_MESSAGE_COP_DESCRIPTOR_H
00168