$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_feedback.msg */ 00002 #ifndef VISION_MSGS_MESSAGE_COP_FEEDBACK_H 00003 #define VISION_MSGS_MESSAGE_COP_FEEDBACK_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/system_error.h" 00018 00019 namespace vision_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct cop_feedback_ { 00023 typedef cop_feedback_<ContainerAllocator> Type; 00024 00025 cop_feedback_() 00026 : perception_primitive(0) 00027 , evaluation(0.0) 00028 , error() 00029 , eval_whitelist() 00030 { 00031 } 00032 00033 cop_feedback_(const ContainerAllocator& _alloc) 00034 : perception_primitive(0) 00035 , evaluation(0.0) 00036 , error(_alloc) 00037 , eval_whitelist(_alloc) 00038 { 00039 } 00040 00041 typedef uint64_t _perception_primitive_type; 00042 uint64_t perception_primitive; 00043 00044 typedef double _evaluation_type; 00045 double evaluation; 00046 00047 typedef std::vector< ::vision_msgs::system_error_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::system_error_<ContainerAllocator> >::other > _error_type; 00048 std::vector< ::vision_msgs::system_error_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::system_error_<ContainerAllocator> >::other > error; 00049 00050 typedef std::vector<uint64_t, typename ContainerAllocator::template rebind<uint64_t>::other > _eval_whitelist_type; 00051 std::vector<uint64_t, typename ContainerAllocator::template rebind<uint64_t>::other > eval_whitelist; 00052 00053 00054 ROS_DEPRECATED uint32_t get_error_size() const { return (uint32_t)error.size(); } 00055 ROS_DEPRECATED void set_error_size(uint32_t size) { error.resize((size_t)size); } 00056 ROS_DEPRECATED void get_error_vec(std::vector< ::vision_msgs::system_error_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::system_error_<ContainerAllocator> >::other > & vec) const { vec = this->error; } 00057 ROS_DEPRECATED void set_error_vec(const std::vector< ::vision_msgs::system_error_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::system_error_<ContainerAllocator> >::other > & vec) { this->error = vec; } 00058 ROS_DEPRECATED uint32_t get_eval_whitelist_size() const { return (uint32_t)eval_whitelist.size(); } 00059 ROS_DEPRECATED void set_eval_whitelist_size(uint32_t size) { eval_whitelist.resize((size_t)size); } 00060 ROS_DEPRECATED void get_eval_whitelist_vec(std::vector<uint64_t, typename ContainerAllocator::template rebind<uint64_t>::other > & vec) const { vec = this->eval_whitelist; } 00061 ROS_DEPRECATED void set_eval_whitelist_vec(const std::vector<uint64_t, typename ContainerAllocator::template rebind<uint64_t>::other > & vec) { this->eval_whitelist = vec; } 00062 private: 00063 static const char* __s_getDataType_() { return "vision_msgs/cop_feedback"; } 00064 public: 00065 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00066 00067 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00068 00069 private: 00070 static const char* __s_getMD5Sum_() { return "e876bab42e04aea08a659bc18c7b47cc"; } 00071 public: 00072 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00073 00074 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00075 00076 private: 00077 static const char* __s_getMessageDefinition_() { return "#Message that cop uses to answer on specified topics, U. Klank klank@in.tum.de\n\ 00078 uint64 perception_primitive # Perception primitive that caused this answer\n\ 00079 float64 evaluation # A score describing the quality of the outcomes of the perception primitive\n\ 00080 system_error[] error # A list of occured system failures which might be caused by the perception primitive\n\ 00081 uint64[] eval_whitelist # list results which are included into the evaluation (note: default is all, not none, so an empty list means that all elements have to be evaluated, since the case that none of the results should get an evaluation does not make much sense)\n\ 00082 \n\ 00083 ================================================================================\n\ 00084 MSG: vision_msgs/system_error\n\ 00085 uint64 MANIPULATION_POSE_UNREACHABLE = 64\n\ 00086 uint64 GRASP_FAILED = 128 # Grasp into the void\n\ 00087 uint64 OBJECT_NOT_FOUND = 256\n\ 00088 uint64 VISION_PRIMITIVE_FAILED = 512\n\ 00089 uint64 CONTRADICTING_TACTILE_FEEDBACK = 1024 # Collide without expecting it\n\ 00090 uint64 CONTRADICTING_VISION_RESULTS = 2048\n\ 00091 uint64 GRASP_FAILED_AND_CRASHED = 4096 # Throwing something out of the way\n\ 00092 uint64 JLO_ERROR = 8192 # Could not get position\n\ 00093 uint64 VECTOR_FIELD_CANT_REACH = 16384 # The arm got stuck along the way, did not reach the final grasping pose\n\ 00094 \n\ 00095 uint64 error_id # One of the error constants defined above\n\ 00096 string node_name # The node causing this error\n\ 00097 string error_description # Further information about the error\n\ 00098 \n\ 00099 "; } 00100 public: 00101 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00102 00103 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00104 00105 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00106 { 00107 ros::serialization::OStream stream(write_ptr, 1000000000); 00108 ros::serialization::serialize(stream, perception_primitive); 00109 ros::serialization::serialize(stream, evaluation); 00110 ros::serialization::serialize(stream, error); 00111 ros::serialization::serialize(stream, eval_whitelist); 00112 return stream.getData(); 00113 } 00114 00115 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00116 { 00117 ros::serialization::IStream stream(read_ptr, 1000000000); 00118 ros::serialization::deserialize(stream, perception_primitive); 00119 ros::serialization::deserialize(stream, evaluation); 00120 ros::serialization::deserialize(stream, error); 00121 ros::serialization::deserialize(stream, eval_whitelist); 00122 return stream.getData(); 00123 } 00124 00125 ROS_DEPRECATED virtual uint32_t serializationLength() const 00126 { 00127 uint32_t size = 0; 00128 size += ros::serialization::serializationLength(perception_primitive); 00129 size += ros::serialization::serializationLength(evaluation); 00130 size += ros::serialization::serializationLength(error); 00131 size += ros::serialization::serializationLength(eval_whitelist); 00132 return size; 00133 } 00134 00135 typedef boost::shared_ptr< ::vision_msgs::cop_feedback_<ContainerAllocator> > Ptr; 00136 typedef boost::shared_ptr< ::vision_msgs::cop_feedback_<ContainerAllocator> const> ConstPtr; 00137 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00138 }; // struct cop_feedback 00139 typedef ::vision_msgs::cop_feedback_<std::allocator<void> > cop_feedback; 00140 00141 typedef boost::shared_ptr< ::vision_msgs::cop_feedback> cop_feedbackPtr; 00142 typedef boost::shared_ptr< ::vision_msgs::cop_feedback const> cop_feedbackConstPtr; 00143 00144 00145 template<typename ContainerAllocator> 00146 std::ostream& operator<<(std::ostream& s, const ::vision_msgs::cop_feedback_<ContainerAllocator> & v) 00147 { 00148 ros::message_operations::Printer< ::vision_msgs::cop_feedback_<ContainerAllocator> >::stream(s, "", v); 00149 return s;} 00150 00151 } // namespace vision_msgs 00152 00153 namespace ros 00154 { 00155 namespace message_traits 00156 { 00157 template<class ContainerAllocator> struct IsMessage< ::vision_msgs::cop_feedback_<ContainerAllocator> > : public TrueType {}; 00158 template<class ContainerAllocator> struct IsMessage< ::vision_msgs::cop_feedback_<ContainerAllocator> const> : public TrueType {}; 00159 template<class ContainerAllocator> 00160 struct MD5Sum< ::vision_msgs::cop_feedback_<ContainerAllocator> > { 00161 static const char* value() 00162 { 00163 return "e876bab42e04aea08a659bc18c7b47cc"; 00164 } 00165 00166 static const char* value(const ::vision_msgs::cop_feedback_<ContainerAllocator> &) { return value(); } 00167 static const uint64_t static_value1 = 0xe876bab42e04aea0ULL; 00168 static const uint64_t static_value2 = 0x8a659bc18c7b47ccULL; 00169 }; 00170 00171 template<class ContainerAllocator> 00172 struct DataType< ::vision_msgs::cop_feedback_<ContainerAllocator> > { 00173 static const char* value() 00174 { 00175 return "vision_msgs/cop_feedback"; 00176 } 00177 00178 static const char* value(const ::vision_msgs::cop_feedback_<ContainerAllocator> &) { return value(); } 00179 }; 00180 00181 template<class ContainerAllocator> 00182 struct Definition< ::vision_msgs::cop_feedback_<ContainerAllocator> > { 00183 static const char* value() 00184 { 00185 return "#Message that cop uses to answer on specified topics, U. Klank klank@in.tum.de\n\ 00186 uint64 perception_primitive # Perception primitive that caused this answer\n\ 00187 float64 evaluation # A score describing the quality of the outcomes of the perception primitive\n\ 00188 system_error[] error # A list of occured system failures which might be caused by the perception primitive\n\ 00189 uint64[] eval_whitelist # list results which are included into the evaluation (note: default is all, not none, so an empty list means that all elements have to be evaluated, since the case that none of the results should get an evaluation does not make much sense)\n\ 00190 \n\ 00191 ================================================================================\n\ 00192 MSG: vision_msgs/system_error\n\ 00193 uint64 MANIPULATION_POSE_UNREACHABLE = 64\n\ 00194 uint64 GRASP_FAILED = 128 # Grasp into the void\n\ 00195 uint64 OBJECT_NOT_FOUND = 256\n\ 00196 uint64 VISION_PRIMITIVE_FAILED = 512\n\ 00197 uint64 CONTRADICTING_TACTILE_FEEDBACK = 1024 # Collide without expecting it\n\ 00198 uint64 CONTRADICTING_VISION_RESULTS = 2048\n\ 00199 uint64 GRASP_FAILED_AND_CRASHED = 4096 # Throwing something out of the way\n\ 00200 uint64 JLO_ERROR = 8192 # Could not get position\n\ 00201 uint64 VECTOR_FIELD_CANT_REACH = 16384 # The arm got stuck along the way, did not reach the final grasping pose\n\ 00202 \n\ 00203 uint64 error_id # One of the error constants defined above\n\ 00204 string node_name # The node causing this error\n\ 00205 string error_description # Further information about the error\n\ 00206 \n\ 00207 "; 00208 } 00209 00210 static const char* value(const ::vision_msgs::cop_feedback_<ContainerAllocator> &) { return value(); } 00211 }; 00212 00213 } // namespace message_traits 00214 } // namespace ros 00215 00216 namespace ros 00217 { 00218 namespace serialization 00219 { 00220 00221 template<class ContainerAllocator> struct Serializer< ::vision_msgs::cop_feedback_<ContainerAllocator> > 00222 { 00223 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00224 { 00225 stream.next(m.perception_primitive); 00226 stream.next(m.evaluation); 00227 stream.next(m.error); 00228 stream.next(m.eval_whitelist); 00229 } 00230 00231 ROS_DECLARE_ALLINONE_SERIALIZER; 00232 }; // struct cop_feedback_ 00233 } // namespace serialization 00234 } // namespace ros 00235 00236 namespace ros 00237 { 00238 namespace message_operations 00239 { 00240 00241 template<class ContainerAllocator> 00242 struct Printer< ::vision_msgs::cop_feedback_<ContainerAllocator> > 00243 { 00244 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::vision_msgs::cop_feedback_<ContainerAllocator> & v) 00245 { 00246 s << indent << "perception_primitive: "; 00247 Printer<uint64_t>::stream(s, indent + " ", v.perception_primitive); 00248 s << indent << "evaluation: "; 00249 Printer<double>::stream(s, indent + " ", v.evaluation); 00250 s << indent << "error[]" << std::endl; 00251 for (size_t i = 0; i < v.error.size(); ++i) 00252 { 00253 s << indent << " error[" << i << "]: "; 00254 s << std::endl; 00255 s << indent; 00256 Printer< ::vision_msgs::system_error_<ContainerAllocator> >::stream(s, indent + " ", v.error[i]); 00257 } 00258 s << indent << "eval_whitelist[]" << std::endl; 00259 for (size_t i = 0; i < v.eval_whitelist.size(); ++i) 00260 { 00261 s << indent << " eval_whitelist[" << i << "]: "; 00262 Printer<uint64_t>::stream(s, indent + " ", v.eval_whitelist[i]); 00263 } 00264 } 00265 }; 00266 00267 00268 } // namespace message_operations 00269 } // namespace ros 00270 00271 #endif // VISION_MSGS_MESSAGE_COP_FEEDBACK_H 00272