$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/algorithm_evaluation.msg */ 00002 #ifndef VISION_MSGS_MESSAGE_ALGORITHM_EVALUATION_H 00003 #define VISION_MSGS_MESSAGE_ALGORITHM_EVALUATION_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 #include "vision_msgs/object_algorithm_relation.h" 00018 00019 namespace vision_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct algorithm_evaluation_ { 00023 typedef algorithm_evaluation_<ContainerAllocator> Type; 00024 00025 algorithm_evaluation_() 00026 : plugin_name() 00027 , basic_evaluation(0.0) 00028 , objects() 00029 { 00030 } 00031 00032 algorithm_evaluation_(const ContainerAllocator& _alloc) 00033 : plugin_name(_alloc) 00034 , basic_evaluation(0.0) 00035 , objects(_alloc) 00036 { 00037 } 00038 00039 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _plugin_name_type; 00040 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > plugin_name; 00041 00042 typedef double _basic_evaluation_type; 00043 double basic_evaluation; 00044 00045 typedef std::vector< ::vision_msgs::object_algorithm_relation_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::object_algorithm_relation_<ContainerAllocator> >::other > _objects_type; 00046 std::vector< ::vision_msgs::object_algorithm_relation_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::object_algorithm_relation_<ContainerAllocator> >::other > objects; 00047 00048 00049 ROS_DEPRECATED uint32_t get_objects_size() const { return (uint32_t)objects.size(); } 00050 ROS_DEPRECATED void set_objects_size(uint32_t size) { objects.resize((size_t)size); } 00051 ROS_DEPRECATED void get_objects_vec(std::vector< ::vision_msgs::object_algorithm_relation_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::object_algorithm_relation_<ContainerAllocator> >::other > & vec) const { vec = this->objects; } 00052 ROS_DEPRECATED void set_objects_vec(const std::vector< ::vision_msgs::object_algorithm_relation_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::object_algorithm_relation_<ContainerAllocator> >::other > & vec) { this->objects = vec; } 00053 private: 00054 static const char* __s_getDataType_() { return "vision_msgs/algorithm_evaluation"; } 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 "e07475feaa79c93a297b4d8386124d13"; } 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 "#Message that contains basic information regarding an algorithm U. Klank klank@in.tum.de\n\ 00069 string plugin_name # Perception primitive that caused this answer\n\ 00070 float64 basic_evaluation # A score describing the basic score of this algorithm, should reflect the significance of the results\n\ 00071 object_algorithm_relation[] objects # All objects that were executed with this algotihm and their results\n\ 00072 \n\ 00073 ================================================================================\n\ 00074 MSG: vision_msgs/object_algorithm_relation\n\ 00075 #Message that contains basic information regarding the evaluation of an algorithm and its objects U. Klank klank@in.tum.de\n\ 00076 uint64 object_id\n\ 00077 float64 basic_evaluation \n\ 00078 \n\ 00079 "; } 00080 public: 00081 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00082 00083 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00084 00085 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00086 { 00087 ros::serialization::OStream stream(write_ptr, 1000000000); 00088 ros::serialization::serialize(stream, plugin_name); 00089 ros::serialization::serialize(stream, basic_evaluation); 00090 ros::serialization::serialize(stream, objects); 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, plugin_name); 00098 ros::serialization::deserialize(stream, basic_evaluation); 00099 ros::serialization::deserialize(stream, objects); 00100 return stream.getData(); 00101 } 00102 00103 ROS_DEPRECATED virtual uint32_t serializationLength() const 00104 { 00105 uint32_t size = 0; 00106 size += ros::serialization::serializationLength(plugin_name); 00107 size += ros::serialization::serializationLength(basic_evaluation); 00108 size += ros::serialization::serializationLength(objects); 00109 return size; 00110 } 00111 00112 typedef boost::shared_ptr< ::vision_msgs::algorithm_evaluation_<ContainerAllocator> > Ptr; 00113 typedef boost::shared_ptr< ::vision_msgs::algorithm_evaluation_<ContainerAllocator> const> ConstPtr; 00114 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00115 }; // struct algorithm_evaluation 00116 typedef ::vision_msgs::algorithm_evaluation_<std::allocator<void> > algorithm_evaluation; 00117 00118 typedef boost::shared_ptr< ::vision_msgs::algorithm_evaluation> algorithm_evaluationPtr; 00119 typedef boost::shared_ptr< ::vision_msgs::algorithm_evaluation const> algorithm_evaluationConstPtr; 00120 00121 00122 template<typename ContainerAllocator> 00123 std::ostream& operator<<(std::ostream& s, const ::vision_msgs::algorithm_evaluation_<ContainerAllocator> & v) 00124 { 00125 ros::message_operations::Printer< ::vision_msgs::algorithm_evaluation_<ContainerAllocator> >::stream(s, "", v); 00126 return s;} 00127 00128 } // namespace vision_msgs 00129 00130 namespace ros 00131 { 00132 namespace message_traits 00133 { 00134 template<class ContainerAllocator> struct IsMessage< ::vision_msgs::algorithm_evaluation_<ContainerAllocator> > : public TrueType {}; 00135 template<class ContainerAllocator> struct IsMessage< ::vision_msgs::algorithm_evaluation_<ContainerAllocator> const> : public TrueType {}; 00136 template<class ContainerAllocator> 00137 struct MD5Sum< ::vision_msgs::algorithm_evaluation_<ContainerAllocator> > { 00138 static const char* value() 00139 { 00140 return "e07475feaa79c93a297b4d8386124d13"; 00141 } 00142 00143 static const char* value(const ::vision_msgs::algorithm_evaluation_<ContainerAllocator> &) { return value(); } 00144 static const uint64_t static_value1 = 0xe07475feaa79c93aULL; 00145 static const uint64_t static_value2 = 0x297b4d8386124d13ULL; 00146 }; 00147 00148 template<class ContainerAllocator> 00149 struct DataType< ::vision_msgs::algorithm_evaluation_<ContainerAllocator> > { 00150 static const char* value() 00151 { 00152 return "vision_msgs/algorithm_evaluation"; 00153 } 00154 00155 static const char* value(const ::vision_msgs::algorithm_evaluation_<ContainerAllocator> &) { return value(); } 00156 }; 00157 00158 template<class ContainerAllocator> 00159 struct Definition< ::vision_msgs::algorithm_evaluation_<ContainerAllocator> > { 00160 static const char* value() 00161 { 00162 return "#Message that contains basic information regarding an algorithm U. Klank klank@in.tum.de\n\ 00163 string plugin_name # Perception primitive that caused this answer\n\ 00164 float64 basic_evaluation # A score describing the basic score of this algorithm, should reflect the significance of the results\n\ 00165 object_algorithm_relation[] objects # All objects that were executed with this algotihm and their results\n\ 00166 \n\ 00167 ================================================================================\n\ 00168 MSG: vision_msgs/object_algorithm_relation\n\ 00169 #Message that contains basic information regarding the evaluation of an algorithm and its objects U. Klank klank@in.tum.de\n\ 00170 uint64 object_id\n\ 00171 float64 basic_evaluation \n\ 00172 \n\ 00173 "; 00174 } 00175 00176 static const char* value(const ::vision_msgs::algorithm_evaluation_<ContainerAllocator> &) { return value(); } 00177 }; 00178 00179 } // namespace message_traits 00180 } // namespace ros 00181 00182 namespace ros 00183 { 00184 namespace serialization 00185 { 00186 00187 template<class ContainerAllocator> struct Serializer< ::vision_msgs::algorithm_evaluation_<ContainerAllocator> > 00188 { 00189 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00190 { 00191 stream.next(m.plugin_name); 00192 stream.next(m.basic_evaluation); 00193 stream.next(m.objects); 00194 } 00195 00196 ROS_DECLARE_ALLINONE_SERIALIZER; 00197 }; // struct algorithm_evaluation_ 00198 } // namespace serialization 00199 } // namespace ros 00200 00201 namespace ros 00202 { 00203 namespace message_operations 00204 { 00205 00206 template<class ContainerAllocator> 00207 struct Printer< ::vision_msgs::algorithm_evaluation_<ContainerAllocator> > 00208 { 00209 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::vision_msgs::algorithm_evaluation_<ContainerAllocator> & v) 00210 { 00211 s << indent << "plugin_name: "; 00212 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.plugin_name); 00213 s << indent << "basic_evaluation: "; 00214 Printer<double>::stream(s, indent + " ", v.basic_evaluation); 00215 s << indent << "objects[]" << std::endl; 00216 for (size_t i = 0; i < v.objects.size(); ++i) 00217 { 00218 s << indent << " objects[" << i << "]: "; 00219 s << std::endl; 00220 s << indent; 00221 Printer< ::vision_msgs::object_algorithm_relation_<ContainerAllocator> >::stream(s, indent + " ", v.objects[i]); 00222 } 00223 } 00224 }; 00225 00226 00227 } // namespace message_operations 00228 } // namespace ros 00229 00230 #endif // VISION_MSGS_MESSAGE_ALGORITHM_EVALUATION_H 00231