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


control_msgs
Author(s): Stuart Glaser
autogenerated on Sat Dec 28 2013 16:52:54