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


lfd_common
Author(s): Russell Toris
autogenerated on Thu Jan 2 2014 11:23:52