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


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