_ttsFeedback.py
Go to the documentation of this file.
00001 """autogenerated by genpy from iri_common_drivers_msgs/ttsFeedback.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 ttsFeedback(genpy.Message):
00009   _md5sum = "06f6731b96bef0a1982b1e3c82971af6"
00010   _type = "iri_common_drivers_msgs/ttsFeedback"
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 #feedback
00014 bool   busy
00015 
00016 
00017 
00018 """
00019   __slots__ = ['busy']
00020   _slot_types = ['bool']
00021 
00022   def __init__(self, *args, **kwds):
00023     """
00024     Constructor. Any message fields that are implicitly/explicitly
00025     set to None will be assigned a default value. The recommend
00026     use is keyword arguments as this is more robust to future message
00027     changes.  You cannot mix in-order arguments and keyword arguments.
00028 
00029     The available fields are:
00030        busy
00031 
00032     :param args: complete set of field values, in .msg order
00033     :param kwds: use keyword arguments corresponding to message field names
00034     to set specific fields.
00035     """
00036     if args or kwds:
00037       super(ttsFeedback, self).__init__(*args, **kwds)
00038       #message fields cannot be None, assign default values for those that are
00039       if self.busy is None:
00040         self.busy = False
00041     else:
00042       self.busy = False
00043 
00044   def _get_types(self):
00045     """
00046     internal API method
00047     """
00048     return self._slot_types
00049 
00050   def serialize(self, buff):
00051     """
00052     serialize message into buffer
00053     :param buff: buffer, ``StringIO``
00054     """
00055     try:
00056       buff.write(_struct_B.pack(self.busy))
00057     except struct.error as se: self._check_types(se)
00058     except TypeError as te: self._check_types(te)
00059 
00060   def deserialize(self, str):
00061     """
00062     unpack serialized message in str into this message instance
00063     :param str: byte array of serialized message, ``str``
00064     """
00065     try:
00066       end = 0
00067       start = end
00068       end += 1
00069       (self.busy,) = _struct_B.unpack(str[start:end])
00070       self.busy = bool(self.busy)
00071       return self
00072     except struct.error as e:
00073       raise genpy.DeserializationError(e) #most likely buffer underfill
00074 
00075 
00076   def serialize_numpy(self, buff, numpy):
00077     """
00078     serialize message with numpy array types into buffer
00079     :param buff: buffer, ``StringIO``
00080     :param numpy: numpy python module
00081     """
00082     try:
00083       buff.write(_struct_B.pack(self.busy))
00084     except struct.error as se: self._check_types(se)
00085     except TypeError as te: self._check_types(te)
00086 
00087   def deserialize_numpy(self, str, numpy):
00088     """
00089     unpack serialized message in str into this message instance using numpy for array types
00090     :param str: byte array of serialized message, ``str``
00091     :param numpy: numpy python module
00092     """
00093     try:
00094       end = 0
00095       start = end
00096       end += 1
00097       (self.busy,) = _struct_B.unpack(str[start:end])
00098       self.busy = bool(self.busy)
00099       return self
00100     except struct.error as e:
00101       raise genpy.DeserializationError(e) #most likely buffer underfill
00102 
00103 _struct_I = genpy.struct_I
00104 _struct_B = struct.Struct("<B")


iri_common_drivers_msgs
Author(s): Marti Morta, mmorta at iri.upc.ed
autogenerated on Fri Dec 6 2013 19:59:38