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 _v3.data = str[start:end]
00282 start = end
00283 end += 4
00284 (length,) = _struct_I.unpack(str[start:end])
00285 val1.client_apps = []
00286 for i in range(0, length):
00287 val2 = app_manager.msg.ClientApp()
00288 start = end
00289 end += 4
00290 (length,) = _struct_I.unpack(str[start:end])
00291 start = end
00292 end += length
00293 if python3:
00294 val2.client_type = str[start:end].decode('utf-8')
00295 else:
00296 val2.client_type = str[start:end]
00297 start = end
00298 end += 4
00299 (length,) = _struct_I.unpack(str[start:end])
00300 val2.manager_data = []
00301 for i in range(0, length):
00302 val3 = app_manager.msg.KeyValue()
00303 start = end
00304 end += 4
00305 (length,) = _struct_I.unpack(str[start:end])
00306 start = end
00307 end += length
00308 if python3:
00309 val3.key = str[start:end].decode('utf-8')
00310 else:
00311 val3.key = str[start:end]
00312 start = end
00313 end += 4
00314 (length,) = _struct_I.unpack(str[start:end])
00315 start = end
00316 end += length
00317 if python3:
00318 val3.value = str[start:end].decode('utf-8')
00319 else:
00320 val3.value = str[start:end]
00321 val2.manager_data.append(val3)
00322 start = end
00323 end += 4
00324 (length,) = _struct_I.unpack(str[start:end])
00325 val2.app_data = []
00326 for i in range(0, length):
00327 val3 = app_manager.msg.KeyValue()
00328 start = end
00329 end += 4
00330 (length,) = _struct_I.unpack(str[start:end])
00331 start = end
00332 end += length
00333 if python3:
00334 val3.key = str[start:end].decode('utf-8')
00335 else:
00336 val3.key = str[start:end]
00337 start = end
00338 end += 4
00339 (length,) = _struct_I.unpack(str[start:end])
00340 start = end
00341 end += length
00342 if python3:
00343 val3.value = str[start:end].decode('utf-8')
00344 else:
00345 val3.value = str[start:end]
00346 val2.app_data.append(val3)
00347 val1.client_apps.append(val2)
00348 self.running_apps.append(val1)
00349 start = end
00350 end += 4
00351 (length,) = _struct_I.unpack(str[start:end])
00352 self.available_apps = []
00353 for i in range(0, length):
00354 val1 = app_manager.msg.App()
00355 start = end
00356 end += 4
00357 (length,) = _struct_I.unpack(str[start:end])
00358 start = end
00359 end += length
00360 if python3:
00361 val1.name = str[start:end].decode('utf-8')
00362 else:
00363 val1.name = str[start:end]
00364 start = end
00365 end += 4
00366 (length,) = _struct_I.unpack(str[start:end])
00367 start = end
00368 end += length
00369 if python3:
00370 val1.display_name = str[start:end].decode('utf-8')
00371 else:
00372 val1.display_name = str[start:end]
00373 _v4 = val1.icon
00374 start = end
00375 end += 4
00376 (length,) = _struct_I.unpack(str[start:end])
00377 start = end
00378 end += length
00379 if python3:
00380 _v4.format = str[start:end].decode('utf-8')
00381 else:
00382 _v4.format = str[start:end]
00383 start = end
00384 end += 4
00385 (length,) = _struct_I.unpack(str[start:end])
00386 start = end
00387 end += length
00388 _v4.data = str[start:end]
00389 start = end
00390 end += 4
00391 (length,) = _struct_I.unpack(str[start:end])
00392 val1.client_apps = []
00393 for i in range(0, length):
00394 val2 = app_manager.msg.ClientApp()
00395 start = end
00396 end += 4
00397 (length,) = _struct_I.unpack(str[start:end])
00398 start = end
00399 end += length
00400 if python3:
00401 val2.client_type = str[start:end].decode('utf-8')
00402 else:
00403 val2.client_type = str[start:end]
00404 start = end
00405 end += 4
00406 (length,) = _struct_I.unpack(str[start:end])
00407 val2.manager_data = []
00408 for i in range(0, length):
00409 val3 = app_manager.msg.KeyValue()
00410 start = end
00411 end += 4
00412 (length,) = _struct_I.unpack(str[start:end])
00413 start = end
00414 end += length
00415 if python3:
00416 val3.key = str[start:end].decode('utf-8')
00417 else:
00418 val3.key = str[start:end]
00419 start = end
00420 end += 4
00421 (length,) = _struct_I.unpack(str[start:end])
00422 start = end
00423 end += length
00424 if python3:
00425 val3.value = str[start:end].decode('utf-8')
00426 else:
00427 val3.value = str[start:end]
00428 val2.manager_data.append(val3)
00429 start = end
00430 end += 4
00431 (length,) = _struct_I.unpack(str[start:end])
00432 val2.app_data = []
00433 for i in range(0, length):
00434 val3 = app_manager.msg.KeyValue()
00435 start = end
00436 end += 4
00437 (length,) = _struct_I.unpack(str[start:end])
00438 start = end
00439 end += length
00440 if python3:
00441 val3.key = str[start:end].decode('utf-8')
00442 else:
00443 val3.key = str[start:end]
00444 start = end
00445 end += 4
00446 (length,) = _struct_I.unpack(str[start:end])
00447 start = end
00448 end += length
00449 if python3:
00450 val3.value = str[start:end].decode('utf-8')
00451 else:
00452 val3.value = str[start:end]
00453 val2.app_data.append(val3)
00454 val1.client_apps.append(val2)
00455 self.available_apps.append(val1)
00456 return self
00457 except struct.error as e:
00458 raise genpy.DeserializationError(e)
00459
00460
00461 def serialize_numpy(self, buff, numpy):
00462 """
00463 serialize message with numpy array types into buffer
00464 :param buff: buffer, ``StringIO``
00465 :param numpy: numpy python module
00466 """
00467 try:
00468 length = len(self.running_apps)
00469 buff.write(_struct_I.pack(length))
00470 for val1 in self.running_apps:
00471 _x = val1.name
00472 length = len(_x)
00473 if python3 or type(_x) == unicode:
00474 _x = _x.encode('utf-8')
00475 length = len(_x)
00476 buff.write(struct.pack('<I%ss'%length, length, _x))
00477 _x = val1.display_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 _v5 = val1.icon
00484 _x = _v5.format
00485 length = len(_x)
00486 if python3 or type(_x) == unicode:
00487 _x = _x.encode('utf-8')
00488 length = len(_x)
00489 buff.write(struct.pack('<I%ss'%length, length, _x))
00490 _x = _v5.data
00491 length = len(_x)
00492
00493 if type(_x) in [list, tuple]:
00494 buff.write(struct.pack('<I%sB'%length, length, *_x))
00495 else:
00496 buff.write(struct.pack('<I%ss'%length, length, _x))
00497 length = len(val1.client_apps)
00498 buff.write(_struct_I.pack(length))
00499 for val2 in val1.client_apps:
00500 _x = val2.client_type
00501 length = len(_x)
00502 if python3 or type(_x) == unicode:
00503 _x = _x.encode('utf-8')
00504 length = len(_x)
00505 buff.write(struct.pack('<I%ss'%length, length, _x))
00506 length = len(val2.manager_data)
00507 buff.write(_struct_I.pack(length))
00508 for val3 in val2.manager_data:
00509 _x = val3.key
00510 length = len(_x)
00511 if python3 or type(_x) == unicode:
00512 _x = _x.encode('utf-8')
00513 length = len(_x)
00514 buff.write(struct.pack('<I%ss'%length, length, _x))
00515 _x = val3.value
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 length = len(val2.app_data)
00522 buff.write(_struct_I.pack(length))
00523 for val3 in val2.app_data:
00524 _x = val3.key
00525 length = len(_x)
00526 if python3 or type(_x) == unicode:
00527 _x = _x.encode('utf-8')
00528 length = len(_x)
00529 buff.write(struct.pack('<I%ss'%length, length, _x))
00530 _x = val3.value
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 length = len(self.available_apps)
00537 buff.write(_struct_I.pack(length))
00538 for val1 in self.available_apps:
00539 _x = val1.name
00540 length = len(_x)
00541 if python3 or type(_x) == unicode:
00542 _x = _x.encode('utf-8')
00543 length = len(_x)
00544 buff.write(struct.pack('<I%ss'%length, length, _x))
00545 _x = val1.display_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 _v6 = val1.icon
00552 _x = _v6.format
00553 length = len(_x)
00554 if python3 or type(_x) == unicode:
00555 _x = _x.encode('utf-8')
00556 length = len(_x)
00557 buff.write(struct.pack('<I%ss'%length, length, _x))
00558 _x = _v6.data
00559 length = len(_x)
00560
00561 if type(_x) in [list, tuple]:
00562 buff.write(struct.pack('<I%sB'%length, length, *_x))
00563 else:
00564 buff.write(struct.pack('<I%ss'%length, length, _x))
00565 length = len(val1.client_apps)
00566 buff.write(_struct_I.pack(length))
00567 for val2 in val1.client_apps:
00568 _x = val2.client_type
00569 length = len(_x)
00570 if python3 or type(_x) == unicode:
00571 _x = _x.encode('utf-8')
00572 length = len(_x)
00573 buff.write(struct.pack('<I%ss'%length, length, _x))
00574 length = len(val2.manager_data)
00575 buff.write(_struct_I.pack(length))
00576 for val3 in val2.manager_data:
00577 _x = val3.key
00578 length = len(_x)
00579 if python3 or type(_x) == unicode:
00580 _x = _x.encode('utf-8')
00581 length = len(_x)
00582 buff.write(struct.pack('<I%ss'%length, length, _x))
00583 _x = val3.value
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 length = len(val2.app_data)
00590 buff.write(_struct_I.pack(length))
00591 for val3 in val2.app_data:
00592 _x = val3.key
00593 length = len(_x)
00594 if python3 or type(_x) == unicode:
00595 _x = _x.encode('utf-8')
00596 length = len(_x)
00597 buff.write(struct.pack('<I%ss'%length, length, _x))
00598 _x = val3.value
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 except struct.error as se: self._check_types(se)
00605 except TypeError as te: self._check_types(te)
00606
00607 def deserialize_numpy(self, str, numpy):
00608 """
00609 unpack serialized message in str into this message instance using numpy for array types
00610 :param str: byte array of serialized message, ``str``
00611 :param numpy: numpy python module
00612 """
00613 try:
00614 if self.running_apps is None:
00615 self.running_apps = None
00616 if self.available_apps is None:
00617 self.available_apps = None
00618 end = 0
00619 start = end
00620 end += 4
00621 (length,) = _struct_I.unpack(str[start:end])
00622 self.running_apps = []
00623 for i in range(0, length):
00624 val1 = app_manager.msg.App()
00625 start = end
00626 end += 4
00627 (length,) = _struct_I.unpack(str[start:end])
00628 start = end
00629 end += length
00630 if python3:
00631 val1.name = str[start:end].decode('utf-8')
00632 else:
00633 val1.name = str[start:end]
00634 start = end
00635 end += 4
00636 (length,) = _struct_I.unpack(str[start:end])
00637 start = end
00638 end += length
00639 if python3:
00640 val1.display_name = str[start:end].decode('utf-8')
00641 else:
00642 val1.display_name = str[start:end]
00643 _v7 = val1.icon
00644 start = end
00645 end += 4
00646 (length,) = _struct_I.unpack(str[start:end])
00647 start = end
00648 end += length
00649 if python3:
00650 _v7.format = str[start:end].decode('utf-8')
00651 else:
00652 _v7.format = str[start:end]
00653 start = end
00654 end += 4
00655 (length,) = _struct_I.unpack(str[start:end])
00656 start = end
00657 end += length
00658 _v7.data = str[start:end]
00659 start = end
00660 end += 4
00661 (length,) = _struct_I.unpack(str[start:end])
00662 val1.client_apps = []
00663 for i in range(0, length):
00664 val2 = app_manager.msg.ClientApp()
00665 start = end
00666 end += 4
00667 (length,) = _struct_I.unpack(str[start:end])
00668 start = end
00669 end += length
00670 if python3:
00671 val2.client_type = str[start:end].decode('utf-8')
00672 else:
00673 val2.client_type = str[start:end]
00674 start = end
00675 end += 4
00676 (length,) = _struct_I.unpack(str[start:end])
00677 val2.manager_data = []
00678 for i in range(0, length):
00679 val3 = app_manager.msg.KeyValue()
00680 start = end
00681 end += 4
00682 (length,) = _struct_I.unpack(str[start:end])
00683 start = end
00684 end += length
00685 if python3:
00686 val3.key = str[start:end].decode('utf-8')
00687 else:
00688 val3.key = str[start:end]
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.value = str[start:end].decode('utf-8')
00696 else:
00697 val3.value = str[start:end]
00698 val2.manager_data.append(val3)
00699 start = end
00700 end += 4
00701 (length,) = _struct_I.unpack(str[start:end])
00702 val2.app_data = []
00703 for i in range(0, length):
00704 val3 = app_manager.msg.KeyValue()
00705 start = end
00706 end += 4
00707 (length,) = _struct_I.unpack(str[start:end])
00708 start = end
00709 end += length
00710 if python3:
00711 val3.key = str[start:end].decode('utf-8')
00712 else:
00713 val3.key = str[start:end]
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.value = str[start:end].decode('utf-8')
00721 else:
00722 val3.value = str[start:end]
00723 val2.app_data.append(val3)
00724 val1.client_apps.append(val2)
00725 self.running_apps.append(val1)
00726 start = end
00727 end += 4
00728 (length,) = _struct_I.unpack(str[start:end])
00729 self.available_apps = []
00730 for i in range(0, length):
00731 val1 = app_manager.msg.App()
00732 start = end
00733 end += 4
00734 (length,) = _struct_I.unpack(str[start:end])
00735 start = end
00736 end += length
00737 if python3:
00738 val1.name = str[start:end].decode('utf-8')
00739 else:
00740 val1.name = str[start:end]
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.display_name = str[start:end].decode('utf-8')
00748 else:
00749 val1.display_name = str[start:end]
00750 _v8 = val1.icon
00751 start = end
00752 end += 4
00753 (length,) = _struct_I.unpack(str[start:end])
00754 start = end
00755 end += length
00756 if python3:
00757 _v8.format = str[start:end].decode('utf-8')
00758 else:
00759 _v8.format = str[start:end]
00760 start = end
00761 end += 4
00762 (length,) = _struct_I.unpack(str[start:end])
00763 start = end
00764 end += length
00765 _v8.data = str[start:end]
00766 start = end
00767 end += 4
00768 (length,) = _struct_I.unpack(str[start:end])
00769 val1.client_apps = []
00770 for i in range(0, length):
00771 val2 = app_manager.msg.ClientApp()
00772 start = end
00773 end += 4
00774 (length,) = _struct_I.unpack(str[start:end])
00775 start = end
00776 end += length
00777 if python3:
00778 val2.client_type = str[start:end].decode('utf-8')
00779 else:
00780 val2.client_type = str[start:end]
00781 start = end
00782 end += 4
00783 (length,) = _struct_I.unpack(str[start:end])
00784 val2.manager_data = []
00785 for i in range(0, length):
00786 val3 = app_manager.msg.KeyValue()
00787 start = end
00788 end += 4
00789 (length,) = _struct_I.unpack(str[start:end])
00790 start = end
00791 end += length
00792 if python3:
00793 val3.key = str[start:end].decode('utf-8')
00794 else:
00795 val3.key = str[start:end]
00796 start = end
00797 end += 4
00798 (length,) = _struct_I.unpack(str[start:end])
00799 start = end
00800 end += length
00801 if python3:
00802 val3.value = str[start:end].decode('utf-8')
00803 else:
00804 val3.value = str[start:end]
00805 val2.manager_data.append(val3)
00806 start = end
00807 end += 4
00808 (length,) = _struct_I.unpack(str[start:end])
00809 val2.app_data = []
00810 for i in range(0, length):
00811 val3 = app_manager.msg.KeyValue()
00812 start = end
00813 end += 4
00814 (length,) = _struct_I.unpack(str[start:end])
00815 start = end
00816 end += length
00817 if python3:
00818 val3.key = str[start:end].decode('utf-8')
00819 else:
00820 val3.key = str[start:end]
00821 start = end
00822 end += 4
00823 (length,) = _struct_I.unpack(str[start:end])
00824 start = end
00825 end += length
00826 if python3:
00827 val3.value = str[start:end].decode('utf-8')
00828 else:
00829 val3.value = str[start:end]
00830 val2.app_data.append(val3)
00831 val1.client_apps.append(val2)
00832 self.available_apps.append(val1)
00833 return self
00834 except struct.error as e:
00835 raise genpy.DeserializationError(e)
00836
00837 _struct_I = genpy.struct_I