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