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


telekyb_srvs
Author(s): Dr. Antonio Franchi and Martin Riedel
autogenerated on Mon Nov 11 2013 11:12:21