00001 """autogenerated by genmsg_py from FollowJointTrajectoryResult.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005
00006 class FollowJointTrajectoryResult(roslib.message.Message):
00007 _md5sum = "6243274b5d629dc838814109754410d5"
00008 _type = "control_msgs/FollowJointTrajectoryResult"
00009 _has_header = False
00010 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00011 int32 error_code
00012 int32 SUCCESSFUL = 0
00013 int32 INVALID_GOAL = -1
00014 int32 INVALID_JOINTS = -2
00015 int32 OLD_HEADER_TIMESTAMP = -3
00016 int32 PATH_TOLERANCE_VIOLATED = -4
00017 int32 GOAL_TOLERANCE_VIOLATED = -5
00018
00019
00020 """
00021
00022 SUCCESSFUL = 0
00023 INVALID_GOAL = -1
00024 INVALID_JOINTS = -2
00025 OLD_HEADER_TIMESTAMP = -3
00026 PATH_TOLERANCE_VIOLATED = -4
00027 GOAL_TOLERANCE_VIOLATED = -5
00028
00029 __slots__ = ['error_code']
00030 _slot_types = ['int32']
00031
00032 def __init__(self, *args, **kwds):
00033 """
00034 Constructor. Any message fields that are implicitly/explicitly
00035 set to None will be assigned a default value. The recommend
00036 use is keyword arguments as this is more robust to future message
00037 changes. You cannot mix in-order arguments and keyword arguments.
00038
00039 The available fields are:
00040 error_code
00041
00042 @param args: complete set of field values, in .msg order
00043 @param kwds: use keyword arguments corresponding to message field names
00044 to set specific fields.
00045 """
00046 if args or kwds:
00047 super(FollowJointTrajectoryResult, self).__init__(*args, **kwds)
00048
00049 if self.error_code is None:
00050 self.error_code = 0
00051 else:
00052 self.error_code = 0
00053
00054 def _get_types(self):
00055 """
00056 internal API method
00057 """
00058 return self._slot_types
00059
00060 def serialize(self, buff):
00061 """
00062 serialize message into buffer
00063 @param buff: buffer
00064 @type buff: StringIO
00065 """
00066 try:
00067 buff.write(_struct_i.pack(self.error_code))
00068 except struct.error, se: self._check_types(se)
00069 except TypeError, te: self._check_types(te)
00070
00071 def deserialize(self, str):
00072 """
00073 unpack serialized message in str into this message instance
00074 @param str: byte array of serialized message
00075 @type str: str
00076 """
00077 try:
00078 end = 0
00079 start = end
00080 end += 4
00081 (self.error_code,) = _struct_i.unpack(str[start:end])
00082 return self
00083 except struct.error, e:
00084 raise roslib.message.DeserializationError(e)
00085
00086
00087 def serialize_numpy(self, buff, numpy):
00088 """
00089 serialize message with numpy array types into buffer
00090 @param buff: buffer
00091 @type buff: StringIO
00092 @param numpy: numpy python module
00093 @type numpy module
00094 """
00095 try:
00096 buff.write(_struct_i.pack(self.error_code))
00097 except struct.error, se: self._check_types(se)
00098 except TypeError, te: self._check_types(te)
00099
00100 def deserialize_numpy(self, str, numpy):
00101 """
00102 unpack serialized message in str into this message instance using numpy for array types
00103 @param str: byte array of serialized message
00104 @type str: str
00105 @param numpy: numpy python module
00106 @type numpy: module
00107 """
00108 try:
00109 end = 0
00110 start = end
00111 end += 4
00112 (self.error_code,) = _struct_i.unpack(str[start:end])
00113 return self
00114 except struct.error, e:
00115 raise roslib.message.DeserializationError(e)
00116
00117 _struct_I = roslib.message.struct_I
00118 _struct_i = struct.Struct("<i")