_None_Bool.py
Go to the documentation of this file.
00001 """autogenerated by genpy from hrl_srvs/None_BoolRequest.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 None_BoolRequest(genpy.Message):
00009   _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00010   _type = "hrl_srvs/None_BoolRequest"
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(None_BoolRequest, 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 hrl_srvs/None_BoolResponse.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 None_BoolResponse(genpy.Message):
00094   _md5sum = "8b94c1b53db61fb6aed406028ad6332a"
00095   _type = "hrl_srvs/None_BoolResponse"
00096   _has_header = False #flag to mark the presence of a Header object
00097   _full_text = """bool data
00098 
00099 
00100 
00101 """
00102   __slots__ = ['data']
00103   _slot_types = ['bool']
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        data
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(None_BoolResponse, self).__init__(*args, **kwds)
00121       #message fields cannot be None, assign default values for those that are
00122       if self.data is None:
00123         self.data = False
00124     else:
00125       self.data = False
00126 
00127   def _get_types(self):
00128     """
00129     internal API method
00130     """
00131     return self._slot_types
00132 
00133   def serialize(self, buff):
00134     """
00135     serialize message into buffer
00136     :param buff: buffer, ``StringIO``
00137     """
00138     try:
00139       buff.write(_struct_B.pack(self.data))
00140     except struct.error as se: self._check_types(se)
00141     except TypeError as te: self._check_types(te)
00142 
00143   def deserialize(self, str):
00144     """
00145     unpack serialized message in str into this message instance
00146     :param str: byte array of serialized message, ``str``
00147     """
00148     try:
00149       end = 0
00150       start = end
00151       end += 1
00152       (self.data,) = _struct_B.unpack(str[start:end])
00153       self.data = bool(self.data)
00154       return self
00155     except struct.error as e:
00156       raise genpy.DeserializationError(e) #most likely buffer underfill
00157 
00158 
00159   def serialize_numpy(self, buff, numpy):
00160     """
00161     serialize message with numpy array types into buffer
00162     :param buff: buffer, ``StringIO``
00163     :param numpy: numpy python module
00164     """
00165     try:
00166       buff.write(_struct_B.pack(self.data))
00167     except struct.error as se: self._check_types(se)
00168     except TypeError as te: self._check_types(te)
00169 
00170   def deserialize_numpy(self, str, numpy):
00171     """
00172     unpack serialized message in str into this message instance using numpy for array types
00173     :param str: byte array of serialized message, ``str``
00174     :param numpy: numpy python module
00175     """
00176     try:
00177       end = 0
00178       start = end
00179       end += 1
00180       (self.data,) = _struct_B.unpack(str[start:end])
00181       self.data = bool(self.data)
00182       return self
00183     except struct.error as e:
00184       raise genpy.DeserializationError(e) #most likely buffer underfill
00185 
00186 _struct_I = genpy.struct_I
00187 _struct_B = struct.Struct("<B")
00188 class None_Bool(object):
00189   _type          = 'hrl_srvs/None_Bool'
00190   _md5sum = '8b94c1b53db61fb6aed406028ad6332a'
00191   _request_class  = None_BoolRequest
00192   _response_class = None_BoolResponse


hrl_srvs
Author(s): Advait Jain
autogenerated on Wed Nov 27 2013 11:32:22