_Status.py
Go to the documentation of this file.
00001 """autogenerated by genpy from corobot_teleop/StatusRequest.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 StatusRequest(genpy.Message):
00009   _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00010   _type = "corobot_teleop/StatusRequest"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """
00013 """
00014   __slots__ = []
00015   _slot_types = []
00016 
00017   def __init__(self, *args, **kwds):
00018     """
00019     Constructor. Any message fields that are implicitly/explicitly
00020     set to None will be assigned a default value. The recommend
00021     use is keyword arguments as this is more robust to future message
00022     changes.  You cannot mix in-order arguments and keyword arguments.
00023 
00024     The available fields are:
00025        
00026 
00027     :param args: complete set of field values, in .msg order
00028     :param kwds: use keyword arguments corresponding to message field names
00029     to set specific fields.
00030     """
00031     if args or kwds:
00032       super(StatusRequest, self).__init__(*args, **kwds)
00033 
00034   def _get_types(self):
00035     """
00036     internal API method
00037     """
00038     return self._slot_types
00039 
00040   def serialize(self, buff):
00041     """
00042     serialize message into buffer
00043     :param buff: buffer, ``StringIO``
00044     """
00045     try:
00046       pass
00047     except struct.error as se: self._check_types(se)
00048     except TypeError as te: self._check_types(te)
00049 
00050   def deserialize(self, str):
00051     """
00052     unpack serialized message in str into this message instance
00053     :param str: byte array of serialized message, ``str``
00054     """
00055     try:
00056       end = 0
00057       return self
00058     except struct.error as e:
00059       raise genpy.DeserializationError(e) #most likely buffer underfill
00060 
00061 
00062   def serialize_numpy(self, buff, numpy):
00063     """
00064     serialize message with numpy array types into buffer
00065     :param buff: buffer, ``StringIO``
00066     :param numpy: numpy python module
00067     """
00068     try:
00069       pass
00070     except struct.error as se: self._check_types(se)
00071     except TypeError as te: self._check_types(te)
00072 
00073   def deserialize_numpy(self, str, numpy):
00074     """
00075     unpack serialized message in str into this message instance using numpy for array types
00076     :param str: byte array of serialized message, ``str``
00077     :param numpy: numpy python module
00078     """
00079     try:
00080       end = 0
00081       return self
00082     except struct.error as e:
00083       raise genpy.DeserializationError(e) #most likely buffer underfill
00084 
00085 _struct_I = genpy.struct_I
00086 """autogenerated by genpy from corobot_teleop/StatusResponse.msg. Do not edit."""
00087 import sys
00088 python3 = True if sys.hexversion > 0x03000000 else False
00089 import genpy
00090 import struct
00091 
00092 
00093 class StatusResponse(genpy.Message):
00094   _md5sum = "713ed1a57a1a0c1d71c43b6f7553e50f"
00095   _type = "corobot_teleop/StatusResponse"
00096   _has_header = False #flag to mark the presence of a Header object
00097   _full_text = """int8 err
00098 int32 status
00099 
00100 
00101 """
00102   __slots__ = ['err','status']
00103   _slot_types = ['int8','int32']
00104 
00105   def __init__(self, *args, **kwds):
00106     """
00107     Constructor. Any message fields that are implicitly/explicitly
00108     set to None will be assigned a default value. The recommend
00109     use is keyword arguments as this is more robust to future message
00110     changes.  You cannot mix in-order arguments and keyword arguments.
00111 
00112     The available fields are:
00113        err,status
00114 
00115     :param args: complete set of field values, in .msg order
00116     :param kwds: use keyword arguments corresponding to message field names
00117     to set specific fields.
00118     """
00119     if args or kwds:
00120       super(StatusResponse, self).__init__(*args, **kwds)
00121       #message fields cannot be None, assign default values for those that are
00122       if self.err is None:
00123         self.err = 0
00124       if self.status is None:
00125         self.status = 0
00126     else:
00127       self.err = 0
00128       self.status = 0
00129 
00130   def _get_types(self):
00131     """
00132     internal API method
00133     """
00134     return self._slot_types
00135 
00136   def serialize(self, buff):
00137     """
00138     serialize message into buffer
00139     :param buff: buffer, ``StringIO``
00140     """
00141     try:
00142       _x = self
00143       buff.write(_struct_bi.pack(_x.err, _x.status))
00144     except struct.error as se: self._check_types(se)
00145     except TypeError as te: self._check_types(te)
00146 
00147   def deserialize(self, str):
00148     """
00149     unpack serialized message in str into this message instance
00150     :param str: byte array of serialized message, ``str``
00151     """
00152     try:
00153       end = 0
00154       _x = self
00155       start = end
00156       end += 5
00157       (_x.err, _x.status,) = _struct_bi.unpack(str[start:end])
00158       return self
00159     except struct.error as e:
00160       raise genpy.DeserializationError(e) #most likely buffer underfill
00161 
00162 
00163   def serialize_numpy(self, buff, numpy):
00164     """
00165     serialize message with numpy array types into buffer
00166     :param buff: buffer, ``StringIO``
00167     :param numpy: numpy python module
00168     """
00169     try:
00170       _x = self
00171       buff.write(_struct_bi.pack(_x.err, _x.status))
00172     except struct.error as se: self._check_types(se)
00173     except TypeError as te: self._check_types(te)
00174 
00175   def deserialize_numpy(self, str, numpy):
00176     """
00177     unpack serialized message in str into this message instance using numpy for array types
00178     :param str: byte array of serialized message, ``str``
00179     :param numpy: numpy python module
00180     """
00181     try:
00182       end = 0
00183       _x = self
00184       start = end
00185       end += 5
00186       (_x.err, _x.status,) = _struct_bi.unpack(str[start:end])
00187       return self
00188     except struct.error as e:
00189       raise genpy.DeserializationError(e) #most likely buffer underfill
00190 
00191 _struct_I = genpy.struct_I
00192 _struct_bi = struct.Struct("<bi")
00193 class Status(object):
00194   _type          = 'corobot_teleop/Status'
00195   _md5sum = '713ed1a57a1a0c1d71c43b6f7553e50f'
00196   _request_class  = StatusRequest
00197   _response_class = StatusResponse


corobot_teleop
Author(s):
autogenerated on Wed Aug 26 2015 11:09:59