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