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