$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/system_error.msg */ 00002 #ifndef VISION_MSGS_MESSAGE_SYSTEM_ERROR_H 00003 #define VISION_MSGS_MESSAGE_SYSTEM_ERROR_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 system_error_ { 00022 typedef system_error_<ContainerAllocator> Type; 00023 00024 system_error_() 00025 : error_id(0) 00026 , node_name() 00027 , error_description() 00028 { 00029 } 00030 00031 system_error_(const ContainerAllocator& _alloc) 00032 : error_id(0) 00033 , node_name(_alloc) 00034 , error_description(_alloc) 00035 { 00036 } 00037 00038 typedef uint64_t _error_id_type; 00039 uint64_t error_id; 00040 00041 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _node_name_type; 00042 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > node_name; 00043 00044 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _error_description_type; 00045 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > error_description; 00046 00047 enum { MANIPULATION_POSE_UNREACHABLE = 64 }; 00048 enum { GRASP_FAILED = 128 }; 00049 enum { OBJECT_NOT_FOUND = 256 }; 00050 enum { VISION_PRIMITIVE_FAILED = 512 }; 00051 enum { CONTRADICTING_TACTILE_FEEDBACK = 1024 }; 00052 enum { CONTRADICTING_VISION_RESULTS = 2048 }; 00053 enum { GRASP_FAILED_AND_CRASHED = 4096 }; 00054 enum { JLO_ERROR = 8192 }; 00055 enum { VECTOR_FIELD_CANT_REACH = 16384 }; 00056 00057 private: 00058 static const char* __s_getDataType_() { return "vision_msgs/system_error"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00061 00062 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00063 00064 private: 00065 static const char* __s_getMD5Sum_() { return "a26e239d3a42fd6822d79621c90c2d42"; } 00066 public: 00067 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00068 00069 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00070 00071 private: 00072 static const char* __s_getMessageDefinition_() { return "uint64 MANIPULATION_POSE_UNREACHABLE = 64\n\ 00073 uint64 GRASP_FAILED = 128 # Grasp into the void\n\ 00074 uint64 OBJECT_NOT_FOUND = 256\n\ 00075 uint64 VISION_PRIMITIVE_FAILED = 512\n\ 00076 uint64 CONTRADICTING_TACTILE_FEEDBACK = 1024 # Collide without expecting it\n\ 00077 uint64 CONTRADICTING_VISION_RESULTS = 2048\n\ 00078 uint64 GRASP_FAILED_AND_CRASHED = 4096 # Throwing something out of the way\n\ 00079 uint64 JLO_ERROR = 8192 # Could not get position\n\ 00080 uint64 VECTOR_FIELD_CANT_REACH = 16384 # The arm got stuck along the way, did not reach the final grasping pose\n\ 00081 \n\ 00082 uint64 error_id # One of the error constants defined above\n\ 00083 string node_name # The node causing this error\n\ 00084 string error_description # Further information about the error\n\ 00085 \n\ 00086 "; } 00087 public: 00088 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00089 00090 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00091 00092 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00093 { 00094 ros::serialization::OStream stream(write_ptr, 1000000000); 00095 ros::serialization::serialize(stream, error_id); 00096 ros::serialization::serialize(stream, node_name); 00097 ros::serialization::serialize(stream, error_description); 00098 return stream.getData(); 00099 } 00100 00101 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00102 { 00103 ros::serialization::IStream stream(read_ptr, 1000000000); 00104 ros::serialization::deserialize(stream, error_id); 00105 ros::serialization::deserialize(stream, node_name); 00106 ros::serialization::deserialize(stream, error_description); 00107 return stream.getData(); 00108 } 00109 00110 ROS_DEPRECATED virtual uint32_t serializationLength() const 00111 { 00112 uint32_t size = 0; 00113 size += ros::serialization::serializationLength(error_id); 00114 size += ros::serialization::serializationLength(node_name); 00115 size += ros::serialization::serializationLength(error_description); 00116 return size; 00117 } 00118 00119 typedef boost::shared_ptr< ::vision_msgs::system_error_<ContainerAllocator> > Ptr; 00120 typedef boost::shared_ptr< ::vision_msgs::system_error_<ContainerAllocator> const> ConstPtr; 00121 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00122 }; // struct system_error 00123 typedef ::vision_msgs::system_error_<std::allocator<void> > system_error; 00124 00125 typedef boost::shared_ptr< ::vision_msgs::system_error> system_errorPtr; 00126 typedef boost::shared_ptr< ::vision_msgs::system_error const> system_errorConstPtr; 00127 00128 00129 template<typename ContainerAllocator> 00130 std::ostream& operator<<(std::ostream& s, const ::vision_msgs::system_error_<ContainerAllocator> & v) 00131 { 00132 ros::message_operations::Printer< ::vision_msgs::system_error_<ContainerAllocator> >::stream(s, "", v); 00133 return s;} 00134 00135 } // namespace vision_msgs 00136 00137 namespace ros 00138 { 00139 namespace message_traits 00140 { 00141 template<class ContainerAllocator> struct IsMessage< ::vision_msgs::system_error_<ContainerAllocator> > : public TrueType {}; 00142 template<class ContainerAllocator> struct IsMessage< ::vision_msgs::system_error_<ContainerAllocator> const> : public TrueType {}; 00143 template<class ContainerAllocator> 00144 struct MD5Sum< ::vision_msgs::system_error_<ContainerAllocator> > { 00145 static const char* value() 00146 { 00147 return "a26e239d3a42fd6822d79621c90c2d42"; 00148 } 00149 00150 static const char* value(const ::vision_msgs::system_error_<ContainerAllocator> &) { return value(); } 00151 static const uint64_t static_value1 = 0xa26e239d3a42fd68ULL; 00152 static const uint64_t static_value2 = 0x22d79621c90c2d42ULL; 00153 }; 00154 00155 template<class ContainerAllocator> 00156 struct DataType< ::vision_msgs::system_error_<ContainerAllocator> > { 00157 static const char* value() 00158 { 00159 return "vision_msgs/system_error"; 00160 } 00161 00162 static const char* value(const ::vision_msgs::system_error_<ContainerAllocator> &) { return value(); } 00163 }; 00164 00165 template<class ContainerAllocator> 00166 struct Definition< ::vision_msgs::system_error_<ContainerAllocator> > { 00167 static const char* value() 00168 { 00169 return "uint64 MANIPULATION_POSE_UNREACHABLE = 64\n\ 00170 uint64 GRASP_FAILED = 128 # Grasp into the void\n\ 00171 uint64 OBJECT_NOT_FOUND = 256\n\ 00172 uint64 VISION_PRIMITIVE_FAILED = 512\n\ 00173 uint64 CONTRADICTING_TACTILE_FEEDBACK = 1024 # Collide without expecting it\n\ 00174 uint64 CONTRADICTING_VISION_RESULTS = 2048\n\ 00175 uint64 GRASP_FAILED_AND_CRASHED = 4096 # Throwing something out of the way\n\ 00176 uint64 JLO_ERROR = 8192 # Could not get position\n\ 00177 uint64 VECTOR_FIELD_CANT_REACH = 16384 # The arm got stuck along the way, did not reach the final grasping pose\n\ 00178 \n\ 00179 uint64 error_id # One of the error constants defined above\n\ 00180 string node_name # The node causing this error\n\ 00181 string error_description # Further information about the error\n\ 00182 \n\ 00183 "; 00184 } 00185 00186 static const char* value(const ::vision_msgs::system_error_<ContainerAllocator> &) { return value(); } 00187 }; 00188 00189 } // namespace message_traits 00190 } // namespace ros 00191 00192 namespace ros 00193 { 00194 namespace serialization 00195 { 00196 00197 template<class ContainerAllocator> struct Serializer< ::vision_msgs::system_error_<ContainerAllocator> > 00198 { 00199 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00200 { 00201 stream.next(m.error_id); 00202 stream.next(m.node_name); 00203 stream.next(m.error_description); 00204 } 00205 00206 ROS_DECLARE_ALLINONE_SERIALIZER; 00207 }; // struct system_error_ 00208 } // namespace serialization 00209 } // namespace ros 00210 00211 namespace ros 00212 { 00213 namespace message_operations 00214 { 00215 00216 template<class ContainerAllocator> 00217 struct Printer< ::vision_msgs::system_error_<ContainerAllocator> > 00218 { 00219 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::vision_msgs::system_error_<ContainerAllocator> & v) 00220 { 00221 s << indent << "error_id: "; 00222 Printer<uint64_t>::stream(s, indent + " ", v.error_id); 00223 s << indent << "node_name: "; 00224 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.node_name); 00225 s << indent << "error_description: "; 00226 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.error_description); 00227 } 00228 }; 00229 00230 00231 } // namespace message_operations 00232 } // namespace ros 00233 00234 #endif // VISION_MSGS_MESSAGE_SYSTEM_ERROR_H 00235