$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-ias_common/doc_stacks/2013-03-01_15-41-55.252100/ias_common/vision_msgs/msg/cop_descriptor.msg */ 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 private: 00054 static const char* __s_getDataType_() { return "vision_msgs/cop_descriptor"; } 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 "da820395d349a763f46d0925861440b9"; } 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 "#Descriptors of models used in cop, U. Klank klank@in.tum.de\n\ 00069 uint64 object_id # unique id that could be used for a query\n\ 00070 string sem_class # connected semantic concept\n\ 00071 string type # Class name that was used to generate the corresponding cop descriptor plugin, \n\ 00072 # example are: ShapeModel, ColorClass, DeformShapeModel\n\ 00073 float64 quality # the current quality assinged to this descriptor\n\ 00074 \n\ 00075 \n\ 00076 \n\ 00077 \n\ 00078 "; } 00079 public: 00080 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00081 00082 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00083 00084 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00085 { 00086 ros::serialization::OStream stream(write_ptr, 1000000000); 00087 ros::serialization::serialize(stream, object_id); 00088 ros::serialization::serialize(stream, sem_class); 00089 ros::serialization::serialize(stream, type); 00090 ros::serialization::serialize(stream, quality); 00091 return stream.getData(); 00092 } 00093 00094 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00095 { 00096 ros::serialization::IStream stream(read_ptr, 1000000000); 00097 ros::serialization::deserialize(stream, object_id); 00098 ros::serialization::deserialize(stream, sem_class); 00099 ros::serialization::deserialize(stream, type); 00100 ros::serialization::deserialize(stream, quality); 00101 return stream.getData(); 00102 } 00103 00104 ROS_DEPRECATED virtual uint32_t serializationLength() const 00105 { 00106 uint32_t size = 0; 00107 size += ros::serialization::serializationLength(object_id); 00108 size += ros::serialization::serializationLength(sem_class); 00109 size += ros::serialization::serializationLength(type); 00110 size += ros::serialization::serializationLength(quality); 00111 return size; 00112 } 00113 00114 typedef boost::shared_ptr< ::vision_msgs::cop_descriptor_<ContainerAllocator> > Ptr; 00115 typedef boost::shared_ptr< ::vision_msgs::cop_descriptor_<ContainerAllocator> const> ConstPtr; 00116 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00117 }; // struct cop_descriptor 00118 typedef ::vision_msgs::cop_descriptor_<std::allocator<void> > cop_descriptor; 00119 00120 typedef boost::shared_ptr< ::vision_msgs::cop_descriptor> cop_descriptorPtr; 00121 typedef boost::shared_ptr< ::vision_msgs::cop_descriptor const> cop_descriptorConstPtr; 00122 00123 00124 template<typename ContainerAllocator> 00125 std::ostream& operator<<(std::ostream& s, const ::vision_msgs::cop_descriptor_<ContainerAllocator> & v) 00126 { 00127 ros::message_operations::Printer< ::vision_msgs::cop_descriptor_<ContainerAllocator> >::stream(s, "", v); 00128 return s;} 00129 00130 } // namespace vision_msgs 00131 00132 namespace ros 00133 { 00134 namespace message_traits 00135 { 00136 template<class ContainerAllocator> struct IsMessage< ::vision_msgs::cop_descriptor_<ContainerAllocator> > : public TrueType {}; 00137 template<class ContainerAllocator> struct IsMessage< ::vision_msgs::cop_descriptor_<ContainerAllocator> const> : public TrueType {}; 00138 template<class ContainerAllocator> 00139 struct MD5Sum< ::vision_msgs::cop_descriptor_<ContainerAllocator> > { 00140 static const char* value() 00141 { 00142 return "da820395d349a763f46d0925861440b9"; 00143 } 00144 00145 static const char* value(const ::vision_msgs::cop_descriptor_<ContainerAllocator> &) { return value(); } 00146 static const uint64_t static_value1 = 0xda820395d349a763ULL; 00147 static const uint64_t static_value2 = 0xf46d0925861440b9ULL; 00148 }; 00149 00150 template<class ContainerAllocator> 00151 struct DataType< ::vision_msgs::cop_descriptor_<ContainerAllocator> > { 00152 static const char* value() 00153 { 00154 return "vision_msgs/cop_descriptor"; 00155 } 00156 00157 static const char* value(const ::vision_msgs::cop_descriptor_<ContainerAllocator> &) { return value(); } 00158 }; 00159 00160 template<class ContainerAllocator> 00161 struct Definition< ::vision_msgs::cop_descriptor_<ContainerAllocator> > { 00162 static const char* value() 00163 { 00164 return "#Descriptors of models used in cop, U. Klank klank@in.tum.de\n\ 00165 uint64 object_id # unique id that could be used for a query\n\ 00166 string sem_class # connected semantic concept\n\ 00167 string type # Class name that was used to generate the corresponding cop descriptor plugin, \n\ 00168 # example are: ShapeModel, ColorClass, DeformShapeModel\n\ 00169 float64 quality # the current quality assinged to this descriptor\n\ 00170 \n\ 00171 \n\ 00172 \n\ 00173 \n\ 00174 "; 00175 } 00176 00177 static const char* value(const ::vision_msgs::cop_descriptor_<ContainerAllocator> &) { return value(); } 00178 }; 00179 00180 } // namespace message_traits 00181 } // namespace ros 00182 00183 namespace ros 00184 { 00185 namespace serialization 00186 { 00187 00188 template<class ContainerAllocator> struct Serializer< ::vision_msgs::cop_descriptor_<ContainerAllocator> > 00189 { 00190 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00191 { 00192 stream.next(m.object_id); 00193 stream.next(m.sem_class); 00194 stream.next(m.type); 00195 stream.next(m.quality); 00196 } 00197 00198 ROS_DECLARE_ALLINONE_SERIALIZER; 00199 }; // struct cop_descriptor_ 00200 } // namespace serialization 00201 } // namespace ros 00202 00203 namespace ros 00204 { 00205 namespace message_operations 00206 { 00207 00208 template<class ContainerAllocator> 00209 struct Printer< ::vision_msgs::cop_descriptor_<ContainerAllocator> > 00210 { 00211 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::vision_msgs::cop_descriptor_<ContainerAllocator> & v) 00212 { 00213 s << indent << "object_id: "; 00214 Printer<uint64_t>::stream(s, indent + " ", v.object_id); 00215 s << indent << "sem_class: "; 00216 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.sem_class); 00217 s << indent << "type: "; 00218 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.type); 00219 s << indent << "quality: "; 00220 Printer<double>::stream(s, indent + " ", v.quality); 00221 } 00222 }; 00223 00224 00225 } // namespace message_operations 00226 } // namespace ros 00227 00228 #endif // VISION_MSGS_MESSAGE_COP_DESCRIPTOR_H 00229