00001
00002 import roslib.message
00003 import struct
00004
00005
00006
00007 class direction(roslib.message.Message):
00008 _md5sum = "260b8897f970e5623bdcdc313ccbab8e"
00009 _type = "tele_mobile/direction"
00010 _has_header = False
00011 _full_text = """float64 x
00012 float64 y
00013 float64 reset
00014 float64 zen
00015 float64 xvel
00016 float64 yvel
00017 float64 avel
00018 float64 zen_reset
00019 float64 lock
00020
00021 """
00022 __slots__ = ['x','y','reset','zen','xvel','yvel','avel','zen_reset','lock']
00023 _slot_types = ['float64','float64','float64','float64','float64','float64','float64','float64','float64']
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 def __init__(self, *args, **kwds):
00037 super(direction, self).__init__(*args, **kwds)
00038
00039 if self.x is None:
00040 self.x = 0.
00041 if self.y is None:
00042 self.y = 0.
00043 if self.reset is None:
00044 self.reset = 0.
00045 if self.zen is None:
00046 self.zen = 0.
00047 if self.xvel is None:
00048 self.xvel = 0.
00049 if self.yvel is None:
00050 self.yvel = 0.
00051 if self.avel is None:
00052 self.avel = 0.
00053 if self.zen_reset is None:
00054 self.zen_reset = 0.
00055 if self.lock is None:
00056 self.lock = 0.
00057
00058
00059 def _get_types(self): return direction._slot_types
00060
00061
00062
00063 def serialize(self, buff):
00064 try:
00065 buff.write(struct.pack('<9d', self.x, self.y, self.reset, self.zen, self.xvel, self.yvel, self.avel, self.zen_reset, self.lock))
00066 except struct.error, se: self._check_types(se)
00067 except TypeError, te: self._check_types(te)
00068
00069
00070
00071 def deserialize(self, str):
00072 try:
00073 end = 0
00074 start = end
00075 end += 72
00076 (self.x, self.y, self.reset, self.zen, self.xvel, self.yvel, self.avel, self.zen_reset, self.lock,) = struct.unpack('<9d',str[start:end])
00077 return self
00078 except struct.error, e:
00079 raise roslib.message.DeserializationError(e)
00080
00081
00082
00083
00084
00085 def serialize_numpy(self, buff, numpy):
00086 try:
00087 buff.write(struct.pack('<9d', self.x, self.y, self.reset, self.zen, self.xvel, self.yvel, self.avel, self.zen_reset, self.lock))
00088 except struct.error, se: self._check_types(se)
00089 except TypeError, te: self._check_types(te)
00090
00091
00092
00093
00094 def deserialize_numpy(self, str, numpy):
00095 try:
00096 end = 0
00097 start = end
00098 end += 72
00099 (self.x, self.y, self.reset, self.zen, self.xvel, self.yvel, self.avel, self.zen_reset, self.lock,) = struct.unpack('<9d',str[start:end])
00100 return self
00101 except struct.error, e:
00102 raise roslib.message.DeserializationError(e)
00103