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