$search
00001 """autogenerated by genmsg_py from GetInstallationStateRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class GetInstallationStateRequest(roslib.message.Message): 00007 _md5sum = "f7e64723808960ca985ba81f45f1b8a7" 00008 _type = "app_manager/GetInstallationStateRequest" 00009 _has_header = False #flag to mark the presence of a Header object 00010 _full_text = """bool remote_update 00011 00012 """ 00013 __slots__ = ['remote_update'] 00014 _slot_types = ['bool'] 00015 00016 def __init__(self, *args, **kwds): 00017 """ 00018 Constructor. Any message fields that are implicitly/explicitly 00019 set to None will be assigned a default value. The recommend 00020 use is keyword arguments as this is more robust to future message 00021 changes. You cannot mix in-order arguments and keyword arguments. 00022 00023 The available fields are: 00024 remote_update 00025 00026 @param args: complete set of field values, in .msg order 00027 @param kwds: use keyword arguments corresponding to message field names 00028 to set specific fields. 00029 """ 00030 if args or kwds: 00031 super(GetInstallationStateRequest, self).__init__(*args, **kwds) 00032 #message fields cannot be None, assign default values for those that are 00033 if self.remote_update is None: 00034 self.remote_update = False 00035 else: 00036 self.remote_update = False 00037 00038 def _get_types(self): 00039 """ 00040 internal API method 00041 """ 00042 return self._slot_types 00043 00044 def serialize(self, buff): 00045 """ 00046 serialize message into buffer 00047 @param buff: buffer 00048 @type buff: StringIO 00049 """ 00050 try: 00051 buff.write(_struct_B.pack(self.remote_update)) 00052 except struct.error as se: self._check_types(se) 00053 except TypeError as te: self._check_types(te) 00054 00055 def deserialize(self, str): 00056 """ 00057 unpack serialized message in str into this message instance 00058 @param str: byte array of serialized message 00059 @type str: str 00060 """ 00061 try: 00062 end = 0 00063 start = end 00064 end += 1 00065 (self.remote_update,) = _struct_B.unpack(str[start:end]) 00066 self.remote_update = bool(self.remote_update) 00067 return self 00068 except struct.error as e: 00069 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00070 00071 00072 def serialize_numpy(self, buff, numpy): 00073 """ 00074 serialize message with numpy array types into buffer 00075 @param buff: buffer 00076 @type buff: StringIO 00077 @param numpy: numpy python module 00078 @type numpy module 00079 """ 00080 try: 00081 buff.write(_struct_B.pack(self.remote_update)) 00082 except struct.error as se: self._check_types(se) 00083 except TypeError as te: self._check_types(te) 00084 00085 def deserialize_numpy(self, str, numpy): 00086 """ 00087 unpack serialized message in str into this message instance using numpy for array types 00088 @param str: byte array of serialized message 00089 @type str: str 00090 @param numpy: numpy python module 00091 @type numpy: module 00092 """ 00093 try: 00094 end = 0 00095 start = end 00096 end += 1 00097 (self.remote_update,) = _struct_B.unpack(str[start:end]) 00098 self.remote_update = bool(self.remote_update) 00099 return self 00100 except struct.error as e: 00101 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00102 00103 _struct_I = roslib.message.struct_I 00104 _struct_B = struct.Struct("<B") 00105 """autogenerated by genmsg_py from GetInstallationStateResponse.msg. Do not edit.""" 00106 import roslib.message 00107 import struct 00108 00109 import app_manager.msg 00110 00111 class GetInstallationStateResponse(roslib.message.Message): 00112 _md5sum = "46d45bbda08250199267aff8c0ee8c41" 00113 _type = "app_manager/GetInstallationStateResponse" 00114 _has_header = False #flag to mark the presence of a Header object 00115 _full_text = """ExchangeApp[] installed_apps 00116 ExchangeApp[] available_apps 00117 00118 ================================================================================ 00119 MSG: app_manager/ExchangeApp 00120 # app name 00121 string name 00122 # user-friendly display name of application 00123 string display_name 00124 # the version of the package currently installed 00125 string version 00126 # latest version of the package avaliable 00127 string latest_version 00128 # the detailed description of the app 00129 string description 00130 # icon for showing app 00131 Icon icon 00132 # hidden apps are not show - used for cases where multiple apps are in a deb 00133 bool hidden 00134 ================================================================================ 00135 MSG: app_manager/Icon 00136 # Image data format. "jpeg" or "png" 00137 string format 00138 00139 # Image data. 00140 uint8[] data 00141 00142 """ 00143 __slots__ = ['installed_apps','available_apps'] 00144 _slot_types = ['app_manager/ExchangeApp[]','app_manager/ExchangeApp[]'] 00145 00146 def __init__(self, *args, **kwds): 00147 """ 00148 Constructor. Any message fields that are implicitly/explicitly 00149 set to None will be assigned a default value. The recommend 00150 use is keyword arguments as this is more robust to future message 00151 changes. You cannot mix in-order arguments and keyword arguments. 00152 00153 The available fields are: 00154 installed_apps,available_apps 00155 00156 @param args: complete set of field values, in .msg order 00157 @param kwds: use keyword arguments corresponding to message field names 00158 to set specific fields. 00159 """ 00160 if args or kwds: 00161 super(GetInstallationStateResponse, self).__init__(*args, **kwds) 00162 #message fields cannot be None, assign default values for those that are 00163 if self.installed_apps is None: 00164 self.installed_apps = [] 00165 if self.available_apps is None: 00166 self.available_apps = [] 00167 else: 00168 self.installed_apps = [] 00169 self.available_apps = [] 00170 00171 def _get_types(self): 00172 """ 00173 internal API method 00174 """ 00175 return self._slot_types 00176 00177 def serialize(self, buff): 00178 """ 00179 serialize message into buffer 00180 @param buff: buffer 00181 @type buff: StringIO 00182 """ 00183 try: 00184 length = len(self.installed_apps) 00185 buff.write(_struct_I.pack(length)) 00186 for val1 in self.installed_apps: 00187 _x = val1.name 00188 length = len(_x) 00189 buff.write(struct.pack('<I%ss'%length, length, _x)) 00190 _x = val1.display_name 00191 length = len(_x) 00192 buff.write(struct.pack('<I%ss'%length, length, _x)) 00193 _x = val1.version 00194 length = len(_x) 00195 buff.write(struct.pack('<I%ss'%length, length, _x)) 00196 _x = val1.latest_version 00197 length = len(_x) 00198 buff.write(struct.pack('<I%ss'%length, length, _x)) 00199 _x = val1.description 00200 length = len(_x) 00201 buff.write(struct.pack('<I%ss'%length, length, _x)) 00202 _v1 = val1.icon 00203 _x = _v1.format 00204 length = len(_x) 00205 buff.write(struct.pack('<I%ss'%length, length, _x)) 00206 _x = _v1.data 00207 length = len(_x) 00208 # - if encoded as a list instead, serialize as bytes instead of string 00209 if type(_x) in [list, tuple]: 00210 buff.write(struct.pack('<I%sB'%length, length, *_x)) 00211 else: 00212 buff.write(struct.pack('<I%ss'%length, length, _x)) 00213 buff.write(_struct_B.pack(val1.hidden)) 00214 length = len(self.available_apps) 00215 buff.write(_struct_I.pack(length)) 00216 for val1 in self.available_apps: 00217 _x = val1.name 00218 length = len(_x) 00219 buff.write(struct.pack('<I%ss'%length, length, _x)) 00220 _x = val1.display_name 00221 length = len(_x) 00222 buff.write(struct.pack('<I%ss'%length, length, _x)) 00223 _x = val1.version 00224 length = len(_x) 00225 buff.write(struct.pack('<I%ss'%length, length, _x)) 00226 _x = val1.latest_version 00227 length = len(_x) 00228 buff.write(struct.pack('<I%ss'%length, length, _x)) 00229 _x = val1.description 00230 length = len(_x) 00231 buff.write(struct.pack('<I%ss'%length, length, _x)) 00232 _v2 = val1.icon 00233 _x = _v2.format 00234 length = len(_x) 00235 buff.write(struct.pack('<I%ss'%length, length, _x)) 00236 _x = _v2.data 00237 length = len(_x) 00238 # - if encoded as a list instead, serialize as bytes instead of string 00239 if type(_x) in [list, tuple]: 00240 buff.write(struct.pack('<I%sB'%length, length, *_x)) 00241 else: 00242 buff.write(struct.pack('<I%ss'%length, length, _x)) 00243 buff.write(_struct_B.pack(val1.hidden)) 00244 except struct.error as se: self._check_types(se) 00245 except TypeError as te: self._check_types(te) 00246 00247 def deserialize(self, str): 00248 """ 00249 unpack serialized message in str into this message instance 00250 @param str: byte array of serialized message 00251 @type str: str 00252 """ 00253 try: 00254 end = 0 00255 start = end 00256 end += 4 00257 (length,) = _struct_I.unpack(str[start:end]) 00258 self.installed_apps = [] 00259 for i in range(0, length): 00260 val1 = app_manager.msg.ExchangeApp() 00261 start = end 00262 end += 4 00263 (length,) = _struct_I.unpack(str[start:end]) 00264 start = end 00265 end += length 00266 val1.name = str[start:end] 00267 start = end 00268 end += 4 00269 (length,) = _struct_I.unpack(str[start:end]) 00270 start = end 00271 end += length 00272 val1.display_name = str[start:end] 00273 start = end 00274 end += 4 00275 (length,) = _struct_I.unpack(str[start:end]) 00276 start = end 00277 end += length 00278 val1.version = str[start:end] 00279 start = end 00280 end += 4 00281 (length,) = _struct_I.unpack(str[start:end]) 00282 start = end 00283 end += length 00284 val1.latest_version = str[start:end] 00285 start = end 00286 end += 4 00287 (length,) = _struct_I.unpack(str[start:end]) 00288 start = end 00289 end += length 00290 val1.description = str[start:end] 00291 _v3 = val1.icon 00292 start = end 00293 end += 4 00294 (length,) = _struct_I.unpack(str[start:end]) 00295 start = end 00296 end += length 00297 _v3.format = str[start:end] 00298 start = end 00299 end += 4 00300 (length,) = _struct_I.unpack(str[start:end]) 00301 start = end 00302 end += length 00303 _v3.data = str[start:end] 00304 start = end 00305 end += 1 00306 (val1.hidden,) = _struct_B.unpack(str[start:end]) 00307 val1.hidden = bool(val1.hidden) 00308 self.installed_apps.append(val1) 00309 start = end 00310 end += 4 00311 (length,) = _struct_I.unpack(str[start:end]) 00312 self.available_apps = [] 00313 for i in range(0, length): 00314 val1 = app_manager.msg.ExchangeApp() 00315 start = end 00316 end += 4 00317 (length,) = _struct_I.unpack(str[start:end]) 00318 start = end 00319 end += length 00320 val1.name = str[start:end] 00321 start = end 00322 end += 4 00323 (length,) = _struct_I.unpack(str[start:end]) 00324 start = end 00325 end += length 00326 val1.display_name = str[start:end] 00327 start = end 00328 end += 4 00329 (length,) = _struct_I.unpack(str[start:end]) 00330 start = end 00331 end += length 00332 val1.version = str[start:end] 00333 start = end 00334 end += 4 00335 (length,) = _struct_I.unpack(str[start:end]) 00336 start = end 00337 end += length 00338 val1.latest_version = str[start:end] 00339 start = end 00340 end += 4 00341 (length,) = _struct_I.unpack(str[start:end]) 00342 start = end 00343 end += length 00344 val1.description = str[start:end] 00345 _v4 = val1.icon 00346 start = end 00347 end += 4 00348 (length,) = _struct_I.unpack(str[start:end]) 00349 start = end 00350 end += length 00351 _v4.format = str[start:end] 00352 start = end 00353 end += 4 00354 (length,) = _struct_I.unpack(str[start:end]) 00355 start = end 00356 end += length 00357 _v4.data = str[start:end] 00358 start = end 00359 end += 1 00360 (val1.hidden,) = _struct_B.unpack(str[start:end]) 00361 val1.hidden = bool(val1.hidden) 00362 self.available_apps.append(val1) 00363 return self 00364 except struct.error as e: 00365 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00366 00367 00368 def serialize_numpy(self, buff, numpy): 00369 """ 00370 serialize message with numpy array types into buffer 00371 @param buff: buffer 00372 @type buff: StringIO 00373 @param numpy: numpy python module 00374 @type numpy module 00375 """ 00376 try: 00377 length = len(self.installed_apps) 00378 buff.write(_struct_I.pack(length)) 00379 for val1 in self.installed_apps: 00380 _x = val1.name 00381 length = len(_x) 00382 buff.write(struct.pack('<I%ss'%length, length, _x)) 00383 _x = val1.display_name 00384 length = len(_x) 00385 buff.write(struct.pack('<I%ss'%length, length, _x)) 00386 _x = val1.version 00387 length = len(_x) 00388 buff.write(struct.pack('<I%ss'%length, length, _x)) 00389 _x = val1.latest_version 00390 length = len(_x) 00391 buff.write(struct.pack('<I%ss'%length, length, _x)) 00392 _x = val1.description 00393 length = len(_x) 00394 buff.write(struct.pack('<I%ss'%length, length, _x)) 00395 _v5 = val1.icon 00396 _x = _v5.format 00397 length = len(_x) 00398 buff.write(struct.pack('<I%ss'%length, length, _x)) 00399 _x = _v5.data 00400 length = len(_x) 00401 # - if encoded as a list instead, serialize as bytes instead of string 00402 if type(_x) in [list, tuple]: 00403 buff.write(struct.pack('<I%sB'%length, length, *_x)) 00404 else: 00405 buff.write(struct.pack('<I%ss'%length, length, _x)) 00406 buff.write(_struct_B.pack(val1.hidden)) 00407 length = len(self.available_apps) 00408 buff.write(_struct_I.pack(length)) 00409 for val1 in self.available_apps: 00410 _x = val1.name 00411 length = len(_x) 00412 buff.write(struct.pack('<I%ss'%length, length, _x)) 00413 _x = val1.display_name 00414 length = len(_x) 00415 buff.write(struct.pack('<I%ss'%length, length, _x)) 00416 _x = val1.version 00417 length = len(_x) 00418 buff.write(struct.pack('<I%ss'%length, length, _x)) 00419 _x = val1.latest_version 00420 length = len(_x) 00421 buff.write(struct.pack('<I%ss'%length, length, _x)) 00422 _x = val1.description 00423 length = len(_x) 00424 buff.write(struct.pack('<I%ss'%length, length, _x)) 00425 _v6 = val1.icon 00426 _x = _v6.format 00427 length = len(_x) 00428 buff.write(struct.pack('<I%ss'%length, length, _x)) 00429 _x = _v6.data 00430 length = len(_x) 00431 # - if encoded as a list instead, serialize as bytes instead of string 00432 if type(_x) in [list, tuple]: 00433 buff.write(struct.pack('<I%sB'%length, length, *_x)) 00434 else: 00435 buff.write(struct.pack('<I%ss'%length, length, _x)) 00436 buff.write(_struct_B.pack(val1.hidden)) 00437 except struct.error as se: self._check_types(se) 00438 except TypeError as te: self._check_types(te) 00439 00440 def deserialize_numpy(self, str, numpy): 00441 """ 00442 unpack serialized message in str into this message instance using numpy for array types 00443 @param str: byte array of serialized message 00444 @type str: str 00445 @param numpy: numpy python module 00446 @type numpy: module 00447 """ 00448 try: 00449 end = 0 00450 start = end 00451 end += 4 00452 (length,) = _struct_I.unpack(str[start:end]) 00453 self.installed_apps = [] 00454 for i in range(0, length): 00455 val1 = app_manager.msg.ExchangeApp() 00456 start = end 00457 end += 4 00458 (length,) = _struct_I.unpack(str[start:end]) 00459 start = end 00460 end += length 00461 val1.name = str[start:end] 00462 start = end 00463 end += 4 00464 (length,) = _struct_I.unpack(str[start:end]) 00465 start = end 00466 end += length 00467 val1.display_name = str[start:end] 00468 start = end 00469 end += 4 00470 (length,) = _struct_I.unpack(str[start:end]) 00471 start = end 00472 end += length 00473 val1.version = str[start:end] 00474 start = end 00475 end += 4 00476 (length,) = _struct_I.unpack(str[start:end]) 00477 start = end 00478 end += length 00479 val1.latest_version = str[start:end] 00480 start = end 00481 end += 4 00482 (length,) = _struct_I.unpack(str[start:end]) 00483 start = end 00484 end += length 00485 val1.description = str[start:end] 00486 _v7 = val1.icon 00487 start = end 00488 end += 4 00489 (length,) = _struct_I.unpack(str[start:end]) 00490 start = end 00491 end += length 00492 _v7.format = str[start:end] 00493 start = end 00494 end += 4 00495 (length,) = _struct_I.unpack(str[start:end]) 00496 start = end 00497 end += length 00498 _v7.data = str[start:end] 00499 start = end 00500 end += 1 00501 (val1.hidden,) = _struct_B.unpack(str[start:end]) 00502 val1.hidden = bool(val1.hidden) 00503 self.installed_apps.append(val1) 00504 start = end 00505 end += 4 00506 (length,) = _struct_I.unpack(str[start:end]) 00507 self.available_apps = [] 00508 for i in range(0, length): 00509 val1 = app_manager.msg.ExchangeApp() 00510 start = end 00511 end += 4 00512 (length,) = _struct_I.unpack(str[start:end]) 00513 start = end 00514 end += length 00515 val1.name = str[start:end] 00516 start = end 00517 end += 4 00518 (length,) = _struct_I.unpack(str[start:end]) 00519 start = end 00520 end += length 00521 val1.display_name = str[start:end] 00522 start = end 00523 end += 4 00524 (length,) = _struct_I.unpack(str[start:end]) 00525 start = end 00526 end += length 00527 val1.version = str[start:end] 00528 start = end 00529 end += 4 00530 (length,) = _struct_I.unpack(str[start:end]) 00531 start = end 00532 end += length 00533 val1.latest_version = str[start:end] 00534 start = end 00535 end += 4 00536 (length,) = _struct_I.unpack(str[start:end]) 00537 start = end 00538 end += length 00539 val1.description = str[start:end] 00540 _v8 = val1.icon 00541 start = end 00542 end += 4 00543 (length,) = _struct_I.unpack(str[start:end]) 00544 start = end 00545 end += length 00546 _v8.format = str[start:end] 00547 start = end 00548 end += 4 00549 (length,) = _struct_I.unpack(str[start:end]) 00550 start = end 00551 end += length 00552 _v8.data = str[start:end] 00553 start = end 00554 end += 1 00555 (val1.hidden,) = _struct_B.unpack(str[start:end]) 00556 val1.hidden = bool(val1.hidden) 00557 self.available_apps.append(val1) 00558 return self 00559 except struct.error as e: 00560 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00561 00562 _struct_I = roslib.message.struct_I 00563 _struct_B = struct.Struct("<B") 00564 class GetInstallationState(roslib.message.ServiceDefinition): 00565 _type = 'app_manager/GetInstallationState' 00566 _md5sum = '28f0a7294f6241e2423a9382e3c76987' 00567 _request_class = GetInstallationStateRequest 00568 _response_class = GetInstallationStateResponse