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 <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013
00014 namespace vision_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct cop_descriptor_ : public ros::Message
00018 {
00019 typedef cop_descriptor_<ContainerAllocator> Type;
00020
00021 cop_descriptor_()
00022 : object_id(0)
00023 , sem_class()
00024 , type()
00025 , quality(0.0)
00026 {
00027 }
00028
00029 cop_descriptor_(const ContainerAllocator& _alloc)
00030 : object_id(0)
00031 , sem_class(_alloc)
00032 , type(_alloc)
00033 , quality(0.0)
00034 {
00035 }
00036
00037 typedef uint64_t _object_id_type;
00038 uint64_t object_id;
00039
00040 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _sem_class_type;
00041 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > sem_class;
00042
00043 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _type_type;
00044 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > type;
00045
00046 typedef double _quality_type;
00047 double quality;
00048
00049
00050 private:
00051 static const char* __s_getDataType_() { return "vision_msgs/cop_descriptor"; }
00052 public:
00053 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00054
00055 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00056
00057 private:
00058 static const char* __s_getMD5Sum_() { return "da820395d349a763f46d0925861440b9"; }
00059 public:
00060 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00061
00062 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00063
00064 private:
00065 static const char* __s_getMessageDefinition_() { return "#Descriptors of models used in cop, U. Klank klank@in.tum.de\n\
00066 uint64 object_id # unique id that could be used for a query\n\
00067 string sem_class # connected semantic concept\n\
00068 string type # Class name that was used to generate the corresponding cop descriptor plugin, \n\
00069 # example are: ShapeModel, ColorClass, DeformShapeModel\n\
00070 float64 quality # the current quality assinged to this descriptor\n\
00071 \n\
00072 \n\
00073 \n\
00074 \n\
00075 "; }
00076 public:
00077 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00078
00079 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00080
00081 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00082 {
00083 ros::serialization::OStream stream(write_ptr, 1000000000);
00084 ros::serialization::serialize(stream, object_id);
00085 ros::serialization::serialize(stream, sem_class);
00086 ros::serialization::serialize(stream, type);
00087 ros::serialization::serialize(stream, quality);
00088 return stream.getData();
00089 }
00090
00091 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00092 {
00093 ros::serialization::IStream stream(read_ptr, 1000000000);
00094 ros::serialization::deserialize(stream, object_id);
00095 ros::serialization::deserialize(stream, sem_class);
00096 ros::serialization::deserialize(stream, type);
00097 ros::serialization::deserialize(stream, quality);
00098 return stream.getData();
00099 }
00100
00101 ROS_DEPRECATED virtual uint32_t serializationLength() const
00102 {
00103 uint32_t size = 0;
00104 size += ros::serialization::serializationLength(object_id);
00105 size += ros::serialization::serializationLength(sem_class);
00106 size += ros::serialization::serializationLength(type);
00107 size += ros::serialization::serializationLength(quality);
00108 return size;
00109 }
00110
00111 typedef boost::shared_ptr< ::vision_msgs::cop_descriptor_<ContainerAllocator> > Ptr;
00112 typedef boost::shared_ptr< ::vision_msgs::cop_descriptor_<ContainerAllocator> const> ConstPtr;
00113 };
00114 typedef ::vision_msgs::cop_descriptor_<std::allocator<void> > cop_descriptor;
00115
00116 typedef boost::shared_ptr< ::vision_msgs::cop_descriptor> cop_descriptorPtr;
00117 typedef boost::shared_ptr< ::vision_msgs::cop_descriptor const> cop_descriptorConstPtr;
00118
00119
00120 template<typename ContainerAllocator>
00121 std::ostream& operator<<(std::ostream& s, const ::vision_msgs::cop_descriptor_<ContainerAllocator> & v)
00122 {
00123 ros::message_operations::Printer< ::vision_msgs::cop_descriptor_<ContainerAllocator> >::stream(s, "", v);
00124 return s;}
00125
00126 }
00127
00128 namespace ros
00129 {
00130 namespace message_traits
00131 {
00132 template<class ContainerAllocator>
00133 struct MD5Sum< ::vision_msgs::cop_descriptor_<ContainerAllocator> > {
00134 static const char* value()
00135 {
00136 return "da820395d349a763f46d0925861440b9";
00137 }
00138
00139 static const char* value(const ::vision_msgs::cop_descriptor_<ContainerAllocator> &) { return value(); }
00140 static const uint64_t static_value1 = 0xda820395d349a763ULL;
00141 static const uint64_t static_value2 = 0xf46d0925861440b9ULL;
00142 };
00143
00144 template<class ContainerAllocator>
00145 struct DataType< ::vision_msgs::cop_descriptor_<ContainerAllocator> > {
00146 static const char* value()
00147 {
00148 return "vision_msgs/cop_descriptor";
00149 }
00150
00151 static const char* value(const ::vision_msgs::cop_descriptor_<ContainerAllocator> &) { return value(); }
00152 };
00153
00154 template<class ContainerAllocator>
00155 struct Definition< ::vision_msgs::cop_descriptor_<ContainerAllocator> > {
00156 static const char* value()
00157 {
00158 return "#Descriptors of models used in cop, U. Klank klank@in.tum.de\n\
00159 uint64 object_id # unique id that could be used for a query\n\
00160 string sem_class # connected semantic concept\n\
00161 string type # Class name that was used to generate the corresponding cop descriptor plugin, \n\
00162 # example are: ShapeModel, ColorClass, DeformShapeModel\n\
00163 float64 quality # the current quality assinged to this descriptor\n\
00164 \n\
00165 \n\
00166 \n\
00167 \n\
00168 ";
00169 }
00170
00171 static const char* value(const ::vision_msgs::cop_descriptor_<ContainerAllocator> &) { return value(); }
00172 };
00173
00174 }
00175 }
00176
00177 namespace ros
00178 {
00179 namespace serialization
00180 {
00181
00182 template<class ContainerAllocator> struct Serializer< ::vision_msgs::cop_descriptor_<ContainerAllocator> >
00183 {
00184 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00185 {
00186 stream.next(m.object_id);
00187 stream.next(m.sem_class);
00188 stream.next(m.type);
00189 stream.next(m.quality);
00190 }
00191
00192 ROS_DECLARE_ALLINONE_SERIALIZER;
00193 };
00194 }
00195 }
00196
00197 namespace ros
00198 {
00199 namespace message_operations
00200 {
00201
00202 template<class ContainerAllocator>
00203 struct Printer< ::vision_msgs::cop_descriptor_<ContainerAllocator> >
00204 {
00205 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::vision_msgs::cop_descriptor_<ContainerAllocator> & v)
00206 {
00207 s << indent << "object_id: ";
00208 Printer<uint64_t>::stream(s, indent + " ", v.object_id);
00209 s << indent << "sem_class: ";
00210 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.sem_class);
00211 s << indent << "type: ";
00212 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.type);
00213 s << indent << "quality: ";
00214 Printer<double>::stream(s, indent + " ", v.quality);
00215 }
00216 };
00217
00218
00219 }
00220 }
00221
00222 #endif // VISION_MSGS_MESSAGE_COP_DESCRIPTOR_H
00223