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


app_manager
Author(s): Jeremy Leibs, Ken Conley
autogenerated on Mon Dec 2 2013 11:36:52