00001 """autogenerated by genpy from app_manager/AppList.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006
00007 import app_manager.msg
00008
00009 class AppList(genpy.Message):
00010 _md5sum = "8a71ede6bf51909653c7c551f462cb30"
00011 _type = "app_manager/AppList"
00012 _has_header = False
00013 _full_text = """App[] running_apps
00014 App[] available_apps
00015
00016 ================================================================================
00017 MSG: app_manager/App
00018 # app name
00019 string name
00020 # user-friendly display name of application
00021 string display_name
00022 # icon for showing app
00023 Icon icon
00024 # ordered list (by preference) of client applications to interact with this robot app.
00025 ClientApp[] client_apps
00026
00027 ================================================================================
00028 MSG: app_manager/Icon
00029 # Image data format. "jpeg" or "png"
00030 string format
00031
00032 # Image data.
00033 uint8[] data
00034
00035 ================================================================================
00036 MSG: app_manager/ClientApp
00037 # like "android" or "web" or "linux"
00038 string client_type
00039
00040 # like "intent = ros.android.teleop" and "accelerometer = true", used to choose which ClientApp to use
00041 KeyValue[] manager_data
00042
00043 # parameters which just get passed through to the client app.
00044 KeyValue[] app_data
00045
00046 ================================================================================
00047 MSG: app_manager/KeyValue
00048 string key
00049 string value
00050
00051 """
00052 __slots__ = ['running_apps','available_apps']
00053 _slot_types = ['app_manager/App[]','app_manager/App[]']
00054
00055 def __init__(self, *args, **kwds):
00056 """
00057 Constructor. Any message fields that are implicitly/explicitly
00058 set to None will be assigned a default value. The recommend
00059 use is keyword arguments as this is more robust to future message
00060 changes. You cannot mix in-order arguments and keyword arguments.
00061
00062 The available fields are:
00063 running_apps,available_apps
00064
00065 :param args: complete set of field values, in .msg order
00066 :param kwds: use keyword arguments corresponding to message field names
00067 to set specific fields.
00068 """
00069 if args or kwds:
00070 super(AppList, self).__init__(*args, **kwds)
00071
00072 if self.running_apps is None:
00073 self.running_apps = []
00074 if self.available_apps is None:
00075 self.available_apps = []
00076 else:
00077 self.running_apps = []
00078 self.available_apps = []
00079
00080 def _get_types(self):
00081 """
00082 internal API method
00083 """
00084 return self._slot_types
00085
00086 def serialize(self, buff):
00087 """
00088 serialize message into buffer
00089 :param buff: buffer, ``StringIO``
00090 """
00091 try:
00092 length = len(self.running_apps)
00093 buff.write(_struct_I.pack(length))
00094 for val1 in self.running_apps:
00095 _x = val1.name
00096 length = len(_x)
00097 if python3 or type(_x) == unicode:
00098 _x = _x.encode('utf-8')
00099 length = len(_x)
00100 buff.write(struct.pack('<I%ss'%length, length, _x))
00101 _x = val1.display_name
00102 length = len(_x)
00103 if python3 or type(_x) == unicode:
00104 _x = _x.encode('utf-8')
00105 length = len(_x)
00106 buff.write(struct.pack('<I%ss'%length, length, _x))
00107 _v1 = val1.icon
00108 _x = _v1.format
00109 length = len(_x)
00110 if python3 or type(_x) == unicode:
00111 _x = _x.encode('utf-8')
00112 length = len(_x)
00113 buff.write(struct.pack('<I%ss'%length, length, _x))
00114 _x = _v1.data
00115 length = len(_x)
00116
00117 if type(_x) in [list, tuple]:
00118 buff.write(struct.pack('<I%sB'%length, length, *_x))
00119 else:
00120 buff.write(struct.pack('<I%ss'%length, length, _x))
00121 length = len(val1.client_apps)
00122 buff.write(_struct_I.pack(length))
00123 for val2 in val1.client_apps:
00124 _x = val2.client_type
00125 length = len(_x)
00126 if python3 or type(_x) == unicode:
00127 _x = _x.encode('utf-8')
00128 length = len(_x)
00129 buff.write(struct.pack('<I%ss'%length, length, _x))
00130 length = len(val2.manager_data)
00131 buff.write(_struct_I.pack(length))
00132 for val3 in val2.manager_data:
00133 _x = val3.key
00134 length = len(_x)
00135 if python3 or type(_x) == unicode:
00136 _x = _x.encode('utf-8')
00137 length = len(_x)
00138 buff.write(struct.pack('<I%ss'%length, length, _x))
00139 _x = val3.value
00140 length = len(_x)
00141 if python3 or type(_x) == unicode:
00142 _x = _x.encode('utf-8')
00143 length = len(_x)
00144 buff.write(struct.pack('<I%ss'%length, length, _x))
00145 length = len(val2.app_data)
00146 buff.write(_struct_I.pack(length))
00147 for val3 in val2.app_data:
00148 _x = val3.key
00149 length = len(_x)
00150 if python3 or type(_x) == unicode:
00151 _x = _x.encode('utf-8')
00152 length = len(_x)
00153 buff.write(struct.pack('<I%ss'%length, length, _x))
00154 _x = val3.value
00155 length = len(_x)
00156 if python3 or type(_x) == unicode:
00157 _x = _x.encode('utf-8')
00158 length = len(_x)
00159 buff.write(struct.pack('<I%ss'%length, length, _x))
00160 length = len(self.available_apps)
00161 buff.write(_struct_I.pack(length))
00162 for val1 in self.available_apps:
00163 _x = val1.name
00164 length = len(_x)
00165 if python3 or type(_x) == unicode:
00166 _x = _x.encode('utf-8')
00167 length = len(_x)
00168 buff.write(struct.pack('<I%ss'%length, length, _x))
00169 _x = val1.display_name
00170 length = len(_x)
00171 if python3 or type(_x) == unicode:
00172 _x = _x.encode('utf-8')
00173 length = len(_x)
00174 buff.write(struct.pack('<I%ss'%length, length, _x))
00175 _v2 = val1.icon
00176 _x = _v2.format
00177 length = len(_x)
00178 if python3 or type(_x) == unicode:
00179 _x = _x.encode('utf-8')
00180 length = len(_x)
00181 buff.write(struct.pack('<I%ss'%length, length, _x))
00182 _x = _v2.data
00183 length = len(_x)
00184
00185 if type(_x) in [list, tuple]:
00186 buff.write(struct.pack('<I%sB'%length, length, *_x))
00187 else:
00188 buff.write(struct.pack('<I%ss'%length, length, _x))
00189 length = len(val1.client_apps)
00190 buff.write(_struct_I.pack(length))
00191 for val2 in val1.client_apps:
00192 _x = val2.client_type
00193 length = len(_x)
00194 if python3 or type(_x) == unicode:
00195 _x = _x.encode('utf-8')
00196 length = len(_x)
00197 buff.write(struct.pack('<I%ss'%length, length, _x))
00198 length = len(val2.manager_data)
00199 buff.write(_struct_I.pack(length))
00200 for val3 in val2.manager_data:
00201 _x = val3.key
00202 length = len(_x)
00203 if python3 or type(_x) == unicode:
00204 _x = _x.encode('utf-8')
00205 length = len(_x)
00206 buff.write(struct.pack('<I%ss'%length, length, _x))
00207 _x = val3.value
00208 length = len(_x)
00209 if python3 or type(_x) == unicode:
00210 _x = _x.encode('utf-8')
00211 length = len(_x)
00212 buff.write(struct.pack('<I%ss'%length, length, _x))
00213 length = len(val2.app_data)
00214 buff.write(_struct_I.pack(length))
00215 for val3 in val2.app_data:
00216 _x = val3.key
00217 length = len(_x)
00218 if python3 or type(_x) == unicode:
00219 _x = _x.encode('utf-8')
00220 length = len(_x)
00221 buff.write(struct.pack('<I%ss'%length, length, _x))
00222 _x = val3.value
00223 length = len(_x)
00224 if python3 or type(_x) == unicode:
00225 _x = _x.encode('utf-8')
00226 length = len(_x)
00227 buff.write(struct.pack('<I%ss'%length, length, _x))
00228 except struct.error as se: self._check_types(se)
00229 except TypeError as te: self._check_types(te)
00230
00231 def deserialize(self, str):
00232 """
00233 unpack serialized message in str into this message instance
00234 :param str: byte array of serialized message, ``str``
00235 """
00236 try:
00237 if self.running_apps is None:
00238 self.running_apps = None
00239 if self.available_apps is None:
00240 self.available_apps = None
00241 end = 0
00242 start = end
00243 end += 4
00244 (length,) = _struct_I.unpack(str[start:end])
00245 self.running_apps = []
00246 for i in range(0, length):
00247 val1 = app_manager.msg.App()
00248 start = end
00249 end += 4
00250 (length,) = _struct_I.unpack(str[start:end])
00251 start = end
00252 end += length
00253 if python3:
00254 val1.name = str[start:end].decode('utf-8')
00255 else:
00256 val1.name = str[start:end]
00257 start = end
00258 end += 4
00259 (length,) = _struct_I.unpack(str[start:end])
00260 start = end
00261 end += length
00262 if python3:
00263 val1.display_name = str[start:end].decode('utf-8')
00264 else:
00265 val1.display_name = str[start:end]
00266 _v3 = val1.icon
00267 start = end
00268 end += 4
00269 (length,) = _struct_I.unpack(str[start:end])
00270 start = end
00271 end += length
00272 if python3:
00273 _v3.format = str[start:end].decode('utf-8')
00274 else:
00275 _v3.format = str[start:end]
00276 start = end
00277 end += 4
00278 (length,) = _struct_I.unpack(str[start:end])
00279 start = end
00280 end += length
00281 if python3:
00282 _v3.data = str[start:end].decode('utf-8')
00283 else:
00284 _v3.data = str[start:end]
00285 start = end
00286 end += 4
00287 (length,) = _struct_I.unpack(str[start:end])
00288 val1.client_apps = []
00289 for i in range(0, length):
00290 val2 = app_manager.msg.ClientApp()
00291 start = end
00292 end += 4
00293 (length,) = _struct_I.unpack(str[start:end])
00294 start = end
00295 end += length
00296 if python3:
00297 val2.client_type = str[start:end].decode('utf-8')
00298 else:
00299 val2.client_type = str[start:end]
00300 start = end
00301 end += 4
00302 (length,) = _struct_I.unpack(str[start:end])
00303 val2.manager_data = []
00304 for i in range(0, length):
00305 val3 = app_manager.msg.KeyValue()
00306 start = end
00307 end += 4
00308 (length,) = _struct_I.unpack(str[start:end])
00309 start = end
00310 end += length
00311 if python3:
00312 val3.key = str[start:end].decode('utf-8')
00313 else:
00314 val3.key = str[start:end]
00315 start = end
00316 end += 4
00317 (length,) = _struct_I.unpack(str[start:end])
00318 start = end
00319 end += length
00320 if python3:
00321 val3.value = str[start:end].decode('utf-8')
00322 else:
00323 val3.value = str[start:end]
00324 val2.manager_data.append(val3)
00325 start = end
00326 end += 4
00327 (length,) = _struct_I.unpack(str[start:end])
00328 val2.app_data = []
00329 for i in range(0, length):
00330 val3 = app_manager.msg.KeyValue()
00331 start = end
00332 end += 4
00333 (length,) = _struct_I.unpack(str[start:end])
00334 start = end
00335 end += length
00336 if python3:
00337 val3.key = str[start:end].decode('utf-8')
00338 else:
00339 val3.key = str[start:end]
00340 start = end
00341 end += 4
00342 (length,) = _struct_I.unpack(str[start:end])
00343 start = end
00344 end += length
00345 if python3:
00346 val3.value = str[start:end].decode('utf-8')
00347 else:
00348 val3.value = str[start:end]
00349 val2.app_data.append(val3)
00350 val1.client_apps.append(val2)
00351 self.running_apps.append(val1)
00352 start = end
00353 end += 4
00354 (length,) = _struct_I.unpack(str[start:end])
00355 self.available_apps = []
00356 for i in range(0, length):
00357 val1 = app_manager.msg.App()
00358 start = end
00359 end += 4
00360 (length,) = _struct_I.unpack(str[start:end])
00361 start = end
00362 end += length
00363 if python3:
00364 val1.name = str[start:end].decode('utf-8')
00365 else:
00366 val1.name = str[start:end]
00367 start = end
00368 end += 4
00369 (length,) = _struct_I.unpack(str[start:end])
00370 start = end
00371 end += length
00372 if python3:
00373 val1.display_name = str[start:end].decode('utf-8')
00374 else:
00375 val1.display_name = str[start:end]
00376 _v4 = val1.icon
00377 start = end
00378 end += 4
00379 (length,) = _struct_I.unpack(str[start:end])
00380 start = end
00381 end += length
00382 if python3:
00383 _v4.format = str[start:end].decode('utf-8')
00384 else:
00385 _v4.format = str[start:end]
00386 start = end
00387 end += 4
00388 (length,) = _struct_I.unpack(str[start:end])
00389 start = end
00390 end += length
00391 if python3:
00392 _v4.data = str[start:end].decode('utf-8')
00393 else:
00394 _v4.data = str[start:end]
00395 start = end
00396 end += 4
00397 (length,) = _struct_I.unpack(str[start:end])
00398 val1.client_apps = []
00399 for i in range(0, length):
00400 val2 = app_manager.msg.ClientApp()
00401 start = end
00402 end += 4
00403 (length,) = _struct_I.unpack(str[start:end])
00404 start = end
00405 end += length
00406 if python3:
00407 val2.client_type = str[start:end].decode('utf-8')
00408 else:
00409 val2.client_type = str[start:end]
00410 start = end
00411 end += 4
00412 (length,) = _struct_I.unpack(str[start:end])
00413 val2.manager_data = []
00414 for i in range(0, length):
00415 val3 = app_manager.msg.KeyValue()
00416 start = end
00417 end += 4
00418 (length,) = _struct_I.unpack(str[start:end])
00419 start = end
00420 end += length
00421 if python3:
00422 val3.key = str[start:end].decode('utf-8')
00423 else:
00424 val3.key = str[start:end]
00425 start = end
00426 end += 4
00427 (length,) = _struct_I.unpack(str[start:end])
00428 start = end
00429 end += length
00430 if python3:
00431 val3.value = str[start:end].decode('utf-8')
00432 else:
00433 val3.value = str[start:end]
00434 val2.manager_data.append(val3)
00435 start = end
00436 end += 4
00437 (length,) = _struct_I.unpack(str[start:end])
00438 val2.app_data = []
00439 for i in range(0, length):
00440 val3 = app_manager.msg.KeyValue()
00441 start = end
00442 end += 4
00443 (length,) = _struct_I.unpack(str[start:end])
00444 start = end
00445 end += length
00446 if python3:
00447 val3.key = str[start:end].decode('utf-8')
00448 else:
00449 val3.key = str[start:end]
00450 start = end
00451 end += 4
00452 (length,) = _struct_I.unpack(str[start:end])
00453 start = end
00454 end += length
00455 if python3:
00456 val3.value = str[start:end].decode('utf-8')
00457 else:
00458 val3.value = str[start:end]
00459 val2.app_data.append(val3)
00460 val1.client_apps.append(val2)
00461 self.available_apps.append(val1)
00462 return self
00463 except struct.error as e:
00464 raise genpy.DeserializationError(e)
00465
00466
00467 def serialize_numpy(self, buff, numpy):
00468 """
00469 serialize message with numpy array types into buffer
00470 :param buff: buffer, ``StringIO``
00471 :param numpy: numpy python module
00472 """
00473 try:
00474 length = len(self.running_apps)
00475 buff.write(_struct_I.pack(length))
00476 for val1 in self.running_apps:
00477 _x = val1.name
00478 length = len(_x)
00479 if python3 or type(_x) == unicode:
00480 _x = _x.encode('utf-8')
00481 length = len(_x)
00482 buff.write(struct.pack('<I%ss'%length, length, _x))
00483 _x = val1.display_name
00484 length = len(_x)
00485 if python3 or type(_x) == unicode:
00486 _x = _x.encode('utf-8')
00487 length = len(_x)
00488 buff.write(struct.pack('<I%ss'%length, length, _x))
00489 _v5 = val1.icon
00490 _x = _v5.format
00491 length = len(_x)
00492 if python3 or type(_x) == unicode:
00493 _x = _x.encode('utf-8')
00494 length = len(_x)
00495 buff.write(struct.pack('<I%ss'%length, length, _x))
00496 _x = _v5.data
00497 length = len(_x)
00498
00499 if type(_x) in [list, tuple]:
00500 buff.write(struct.pack('<I%sB'%length, length, *_x))
00501 else:
00502 buff.write(struct.pack('<I%ss'%length, length, _x))
00503 length = len(val1.client_apps)
00504 buff.write(_struct_I.pack(length))
00505 for val2 in val1.client_apps:
00506 _x = val2.client_type
00507 length = len(_x)
00508 if python3 or type(_x) == unicode:
00509 _x = _x.encode('utf-8')
00510 length = len(_x)
00511 buff.write(struct.pack('<I%ss'%length, length, _x))
00512 length = len(val2.manager_data)
00513 buff.write(_struct_I.pack(length))
00514 for val3 in val2.manager_data:
00515 _x = val3.key
00516 length = len(_x)
00517 if python3 or type(_x) == unicode:
00518 _x = _x.encode('utf-8')
00519 length = len(_x)
00520 buff.write(struct.pack('<I%ss'%length, length, _x))
00521 _x = val3.value
00522 length = len(_x)
00523 if python3 or type(_x) == unicode:
00524 _x = _x.encode('utf-8')
00525 length = len(_x)
00526 buff.write(struct.pack('<I%ss'%length, length, _x))
00527 length = len(val2.app_data)
00528 buff.write(_struct_I.pack(length))
00529 for val3 in val2.app_data:
00530 _x = val3.key
00531 length = len(_x)
00532 if python3 or type(_x) == unicode:
00533 _x = _x.encode('utf-8')
00534 length = len(_x)
00535 buff.write(struct.pack('<I%ss'%length, length, _x))
00536 _x = val3.value
00537 length = len(_x)
00538 if python3 or type(_x) == unicode:
00539 _x = _x.encode('utf-8')
00540 length = len(_x)
00541 buff.write(struct.pack('<I%ss'%length, length, _x))
00542 length = len(self.available_apps)
00543 buff.write(_struct_I.pack(length))
00544 for val1 in self.available_apps:
00545 _x = val1.name
00546 length = len(_x)
00547 if python3 or type(_x) == unicode:
00548 _x = _x.encode('utf-8')
00549 length = len(_x)
00550 buff.write(struct.pack('<I%ss'%length, length, _x))
00551 _x = val1.display_name
00552 length = len(_x)
00553 if python3 or type(_x) == unicode:
00554 _x = _x.encode('utf-8')
00555 length = len(_x)
00556 buff.write(struct.pack('<I%ss'%length, length, _x))
00557 _v6 = val1.icon
00558 _x = _v6.format
00559 length = len(_x)
00560 if python3 or type(_x) == unicode:
00561 _x = _x.encode('utf-8')
00562 length = len(_x)
00563 buff.write(struct.pack('<I%ss'%length, length, _x))
00564 _x = _v6.data
00565 length = len(_x)
00566
00567 if type(_x) in [list, tuple]:
00568 buff.write(struct.pack('<I%sB'%length, length, *_x))
00569 else:
00570 buff.write(struct.pack('<I%ss'%length, length, _x))
00571 length = len(val1.client_apps)
00572 buff.write(_struct_I.pack(length))
00573 for val2 in val1.client_apps:
00574 _x = val2.client_type
00575 length = len(_x)
00576 if python3 or type(_x) == unicode:
00577 _x = _x.encode('utf-8')
00578 length = len(_x)
00579 buff.write(struct.pack('<I%ss'%length, length, _x))
00580 length = len(val2.manager_data)
00581 buff.write(_struct_I.pack(length))
00582 for val3 in val2.manager_data:
00583 _x = val3.key
00584 length = len(_x)
00585 if python3 or type(_x) == unicode:
00586 _x = _x.encode('utf-8')
00587 length = len(_x)
00588 buff.write(struct.pack('<I%ss'%length, length, _x))
00589 _x = val3.value
00590 length = len(_x)
00591 if python3 or type(_x) == unicode:
00592 _x = _x.encode('utf-8')
00593 length = len(_x)
00594 buff.write(struct.pack('<I%ss'%length, length, _x))
00595 length = len(val2.app_data)
00596 buff.write(_struct_I.pack(length))
00597 for val3 in val2.app_data:
00598 _x = val3.key
00599 length = len(_x)
00600 if python3 or type(_x) == unicode:
00601 _x = _x.encode('utf-8')
00602 length = len(_x)
00603 buff.write(struct.pack('<I%ss'%length, length, _x))
00604 _x = val3.value
00605 length = len(_x)
00606 if python3 or type(_x) == unicode:
00607 _x = _x.encode('utf-8')
00608 length = len(_x)
00609 buff.write(struct.pack('<I%ss'%length, length, _x))
00610 except struct.error as se: self._check_types(se)
00611 except TypeError as te: self._check_types(te)
00612
00613 def deserialize_numpy(self, str, numpy):
00614 """
00615 unpack serialized message in str into this message instance using numpy for array types
00616 :param str: byte array of serialized message, ``str``
00617 :param numpy: numpy python module
00618 """
00619 try:
00620 if self.running_apps is None:
00621 self.running_apps = None
00622 if self.available_apps is None:
00623 self.available_apps = None
00624 end = 0
00625 start = end
00626 end += 4
00627 (length,) = _struct_I.unpack(str[start:end])
00628 self.running_apps = []
00629 for i in range(0, length):
00630 val1 = app_manager.msg.App()
00631 start = end
00632 end += 4
00633 (length,) = _struct_I.unpack(str[start:end])
00634 start = end
00635 end += length
00636 if python3:
00637 val1.name = str[start:end].decode('utf-8')
00638 else:
00639 val1.name = str[start:end]
00640 start = end
00641 end += 4
00642 (length,) = _struct_I.unpack(str[start:end])
00643 start = end
00644 end += length
00645 if python3:
00646 val1.display_name = str[start:end].decode('utf-8')
00647 else:
00648 val1.display_name = str[start:end]
00649 _v7 = val1.icon
00650 start = end
00651 end += 4
00652 (length,) = _struct_I.unpack(str[start:end])
00653 start = end
00654 end += length
00655 if python3:
00656 _v7.format = str[start:end].decode('utf-8')
00657 else:
00658 _v7.format = str[start:end]
00659 start = end
00660 end += 4
00661 (length,) = _struct_I.unpack(str[start:end])
00662 start = end
00663 end += length
00664 if python3:
00665 _v7.data = str[start:end].decode('utf-8')
00666 else:
00667 _v7.data = str[start:end]
00668 start = end
00669 end += 4
00670 (length,) = _struct_I.unpack(str[start:end])
00671 val1.client_apps = []
00672 for i in range(0, length):
00673 val2 = app_manager.msg.ClientApp()
00674 start = end
00675 end += 4
00676 (length,) = _struct_I.unpack(str[start:end])
00677 start = end
00678 end += length
00679 if python3:
00680 val2.client_type = str[start:end].decode('utf-8')
00681 else:
00682 val2.client_type = str[start:end]
00683 start = end
00684 end += 4
00685 (length,) = _struct_I.unpack(str[start:end])
00686 val2.manager_data = []
00687 for i in range(0, length):
00688 val3 = app_manager.msg.KeyValue()
00689 start = end
00690 end += 4
00691 (length,) = _struct_I.unpack(str[start:end])
00692 start = end
00693 end += length
00694 if python3:
00695 val3.key = str[start:end].decode('utf-8')
00696 else:
00697 val3.key = str[start:end]
00698 start = end
00699 end += 4
00700 (length,) = _struct_I.unpack(str[start:end])
00701 start = end
00702 end += length
00703 if python3:
00704 val3.value = str[start:end].decode('utf-8')
00705 else:
00706 val3.value = str[start:end]
00707 val2.manager_data.append(val3)
00708 start = end
00709 end += 4
00710 (length,) = _struct_I.unpack(str[start:end])
00711 val2.app_data = []
00712 for i in range(0, length):
00713 val3 = app_manager.msg.KeyValue()
00714 start = end
00715 end += 4
00716 (length,) = _struct_I.unpack(str[start:end])
00717 start = end
00718 end += length
00719 if python3:
00720 val3.key = str[start:end].decode('utf-8')
00721 else:
00722 val3.key = str[start:end]
00723 start = end
00724 end += 4
00725 (length,) = _struct_I.unpack(str[start:end])
00726 start = end
00727 end += length
00728 if python3:
00729 val3.value = str[start:end].decode('utf-8')
00730 else:
00731 val3.value = str[start:end]
00732 val2.app_data.append(val3)
00733 val1.client_apps.append(val2)
00734 self.running_apps.append(val1)
00735 start = end
00736 end += 4
00737 (length,) = _struct_I.unpack(str[start:end])
00738 self.available_apps = []
00739 for i in range(0, length):
00740 val1 = app_manager.msg.App()
00741 start = end
00742 end += 4
00743 (length,) = _struct_I.unpack(str[start:end])
00744 start = end
00745 end += length
00746 if python3:
00747 val1.name = str[start:end].decode('utf-8')
00748 else:
00749 val1.name = str[start:end]
00750 start = end
00751 end += 4
00752 (length,) = _struct_I.unpack(str[start:end])
00753 start = end
00754 end += length
00755 if python3:
00756 val1.display_name = str[start:end].decode('utf-8')
00757 else:
00758 val1.display_name = str[start:end]
00759 _v8 = val1.icon
00760 start = end
00761 end += 4
00762 (length,) = _struct_I.unpack(str[start:end])
00763 start = end
00764 end += length
00765 if python3:
00766 _v8.format = str[start:end].decode('utf-8')
00767 else:
00768 _v8.format = str[start:end]
00769 start = end
00770 end += 4
00771 (length,) = _struct_I.unpack(str[start:end])
00772 start = end
00773 end += length
00774 if python3:
00775 _v8.data = str[start:end].decode('utf-8')
00776 else:
00777 _v8.data = str[start:end]
00778 start = end
00779 end += 4
00780 (length,) = _struct_I.unpack(str[start:end])
00781 val1.client_apps = []
00782 for i in range(0, length):
00783 val2 = app_manager.msg.ClientApp()
00784 start = end
00785 end += 4
00786 (length,) = _struct_I.unpack(str[start:end])
00787 start = end
00788 end += length
00789 if python3:
00790 val2.client_type = str[start:end].decode('utf-8')
00791 else:
00792 val2.client_type = str[start:end]
00793 start = end
00794 end += 4
00795 (length,) = _struct_I.unpack(str[start:end])
00796 val2.manager_data = []
00797 for i in range(0, length):
00798 val3 = app_manager.msg.KeyValue()
00799 start = end
00800 end += 4
00801 (length,) = _struct_I.unpack(str[start:end])
00802 start = end
00803 end += length
00804 if python3:
00805 val3.key = str[start:end].decode('utf-8')
00806 else:
00807 val3.key = str[start:end]
00808 start = end
00809 end += 4
00810 (length,) = _struct_I.unpack(str[start:end])
00811 start = end
00812 end += length
00813 if python3:
00814 val3.value = str[start:end].decode('utf-8')
00815 else:
00816 val3.value = str[start:end]
00817 val2.manager_data.append(val3)
00818 start = end
00819 end += 4
00820 (length,) = _struct_I.unpack(str[start:end])
00821 val2.app_data = []
00822 for i in range(0, length):
00823 val3 = app_manager.msg.KeyValue()
00824 start = end
00825 end += 4
00826 (length,) = _struct_I.unpack(str[start:end])
00827 start = end
00828 end += length
00829 if python3:
00830 val3.key = str[start:end].decode('utf-8')
00831 else:
00832 val3.key = str[start:end]
00833 start = end
00834 end += 4
00835 (length,) = _struct_I.unpack(str[start:end])
00836 start = end
00837 end += length
00838 if python3:
00839 val3.value = str[start:end].decode('utf-8')
00840 else:
00841 val3.value = str[start:end]
00842 val2.app_data.append(val3)
00843 val1.client_apps.append(val2)
00844 self.available_apps.append(val1)
00845 return self
00846 except struct.error as e:
00847 raise genpy.DeserializationError(e)
00848
00849 _struct_I = genpy.struct_I