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