00001 """autogenerated by genpy from concert_msgs/ClientListRequest.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 ClientListRequest(genpy.Message):
00009 _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00010 _type = "concert_msgs/ClientListRequest"
00011 _has_header = False
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(ClientListRequest, 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)
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)
00084
00085 _struct_I = genpy.struct_I
00086 """autogenerated by genpy from concert_msgs/ClientListResponse.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 concert_msgs.msg
00093 import appmanager_msgs.msg
00094 import genpy
00095
00096 class ClientListResponse(genpy.Message):
00097 _md5sum = "ca5bde9313481be0700a430a87dd022f"
00098 _type = "concert_msgs/ClientListResponse"
00099 _has_header = False
00100 _full_text = """ConcertClient[] clients
00101
00102
00103 ================================================================================
00104 MSG: concert_msgs/ConcertClient
00105 #
00106 # Describes a concert client - used only on the concert side
00107 #
00108 # Unique name (comes from the gateway systems unique naming system)
00109 string name
00110
00111 # The platform id triple (refer to concert_clients/PlatformInfo.msg for string values)
00112 string platform
00113 string system
00114 string robot
00115
00116 # Current status of the concert client (refer to concert_msgs/ConcertClient.msg for mode strings)
00117 string client_status
00118 string app_status
00119
00120 # Depracate this
00121 string status
00122
00123 # Statistics
00124 time last_connection_timestamp
00125
00126 appmanager_msgs/AppDescription[] apps
00127
00128 ================================================================================
00129 MSG: appmanager_msgs/AppDescription
00130 string name
00131 string display
00132 string description
00133 string platform
00134 string status
00135
00136 """
00137 __slots__ = ['clients']
00138 _slot_types = ['concert_msgs/ConcertClient[]']
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 clients
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(ClientListResponse, self).__init__(*args, **kwds)
00156
00157 if self.clients is None:
00158 self.clients = []
00159 else:
00160 self.clients = []
00161
00162 def _get_types(self):
00163 """
00164 internal API method
00165 """
00166 return self._slot_types
00167
00168 def serialize(self, buff):
00169 """
00170 serialize message into buffer
00171 :param buff: buffer, ``StringIO``
00172 """
00173 try:
00174 length = len(self.clients)
00175 buff.write(_struct_I.pack(length))
00176 for val1 in self.clients:
00177 _x = val1.name
00178 length = len(_x)
00179 if python3 or type(_x) == unicode:
00180 _x = _x.encode('utf-8')
00181 length = len(_x)
00182 buff.write(struct.pack('<I%ss'%length, length, _x))
00183 _x = val1.platform
00184 length = len(_x)
00185 if python3 or type(_x) == unicode:
00186 _x = _x.encode('utf-8')
00187 length = len(_x)
00188 buff.write(struct.pack('<I%ss'%length, length, _x))
00189 _x = val1.system
00190 length = len(_x)
00191 if python3 or type(_x) == unicode:
00192 _x = _x.encode('utf-8')
00193 length = len(_x)
00194 buff.write(struct.pack('<I%ss'%length, length, _x))
00195 _x = val1.robot
00196 length = len(_x)
00197 if python3 or type(_x) == unicode:
00198 _x = _x.encode('utf-8')
00199 length = len(_x)
00200 buff.write(struct.pack('<I%ss'%length, length, _x))
00201 _x = val1.client_status
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 = val1.app_status
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 _x = val1.status
00214 length = len(_x)
00215 if python3 or type(_x) == unicode:
00216 _x = _x.encode('utf-8')
00217 length = len(_x)
00218 buff.write(struct.pack('<I%ss'%length, length, _x))
00219 _v1 = val1.last_connection_timestamp
00220 _x = _v1
00221 buff.write(_struct_2I.pack(_x.secs, _x.nsecs))
00222 length = len(val1.apps)
00223 buff.write(_struct_I.pack(length))
00224 for val2 in val1.apps:
00225 _x = val2.name
00226 length = len(_x)
00227 if python3 or type(_x) == unicode:
00228 _x = _x.encode('utf-8')
00229 length = len(_x)
00230 buff.write(struct.pack('<I%ss'%length, length, _x))
00231 _x = val2.display
00232 length = len(_x)
00233 if python3 or type(_x) == unicode:
00234 _x = _x.encode('utf-8')
00235 length = len(_x)
00236 buff.write(struct.pack('<I%ss'%length, length, _x))
00237 _x = val2.description
00238 length = len(_x)
00239 if python3 or type(_x) == unicode:
00240 _x = _x.encode('utf-8')
00241 length = len(_x)
00242 buff.write(struct.pack('<I%ss'%length, length, _x))
00243 _x = val2.platform
00244 length = len(_x)
00245 if python3 or type(_x) == unicode:
00246 _x = _x.encode('utf-8')
00247 length = len(_x)
00248 buff.write(struct.pack('<I%ss'%length, length, _x))
00249 _x = val2.status
00250 length = len(_x)
00251 if python3 or type(_x) == unicode:
00252 _x = _x.encode('utf-8')
00253 length = len(_x)
00254 buff.write(struct.pack('<I%ss'%length, length, _x))
00255 except struct.error as se: self._check_types(se)
00256 except TypeError as te: self._check_types(te)
00257
00258 def deserialize(self, str):
00259 """
00260 unpack serialized message in str into this message instance
00261 :param str: byte array of serialized message, ``str``
00262 """
00263 try:
00264 if self.clients is None:
00265 self.clients = None
00266 end = 0
00267 start = end
00268 end += 4
00269 (length,) = _struct_I.unpack(str[start:end])
00270 self.clients = []
00271 for i in range(0, length):
00272 val1 = concert_msgs.msg.ConcertClient()
00273 start = end
00274 end += 4
00275 (length,) = _struct_I.unpack(str[start:end])
00276 start = end
00277 end += length
00278 if python3:
00279 val1.name = str[start:end].decode('utf-8')
00280 else:
00281 val1.name = str[start:end]
00282 start = end
00283 end += 4
00284 (length,) = _struct_I.unpack(str[start:end])
00285 start = end
00286 end += length
00287 if python3:
00288 val1.platform = str[start:end].decode('utf-8')
00289 else:
00290 val1.platform = str[start:end]
00291 start = end
00292 end += 4
00293 (length,) = _struct_I.unpack(str[start:end])
00294 start = end
00295 end += length
00296 if python3:
00297 val1.system = str[start:end].decode('utf-8')
00298 else:
00299 val1.system = str[start:end]
00300 start = end
00301 end += 4
00302 (length,) = _struct_I.unpack(str[start:end])
00303 start = end
00304 end += length
00305 if python3:
00306 val1.robot = str[start:end].decode('utf-8')
00307 else:
00308 val1.robot = str[start:end]
00309 start = end
00310 end += 4
00311 (length,) = _struct_I.unpack(str[start:end])
00312 start = end
00313 end += length
00314 if python3:
00315 val1.client_status = str[start:end].decode('utf-8')
00316 else:
00317 val1.client_status = str[start:end]
00318 start = end
00319 end += 4
00320 (length,) = _struct_I.unpack(str[start:end])
00321 start = end
00322 end += length
00323 if python3:
00324 val1.app_status = str[start:end].decode('utf-8')
00325 else:
00326 val1.app_status = str[start:end]
00327 start = end
00328 end += 4
00329 (length,) = _struct_I.unpack(str[start:end])
00330 start = end
00331 end += length
00332 if python3:
00333 val1.status = str[start:end].decode('utf-8')
00334 else:
00335 val1.status = str[start:end]
00336 _v2 = val1.last_connection_timestamp
00337 _x = _v2
00338 start = end
00339 end += 8
00340 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end])
00341 start = end
00342 end += 4
00343 (length,) = _struct_I.unpack(str[start:end])
00344 val1.apps = []
00345 for i in range(0, length):
00346 val2 = appmanager_msgs.msg.AppDescription()
00347 start = end
00348 end += 4
00349 (length,) = _struct_I.unpack(str[start:end])
00350 start = end
00351 end += length
00352 if python3:
00353 val2.name = str[start:end].decode('utf-8')
00354 else:
00355 val2.name = str[start:end]
00356 start = end
00357 end += 4
00358 (length,) = _struct_I.unpack(str[start:end])
00359 start = end
00360 end += length
00361 if python3:
00362 val2.display = str[start:end].decode('utf-8')
00363 else:
00364 val2.display = str[start:end]
00365 start = end
00366 end += 4
00367 (length,) = _struct_I.unpack(str[start:end])
00368 start = end
00369 end += length
00370 if python3:
00371 val2.description = str[start:end].decode('utf-8')
00372 else:
00373 val2.description = str[start:end]
00374 start = end
00375 end += 4
00376 (length,) = _struct_I.unpack(str[start:end])
00377 start = end
00378 end += length
00379 if python3:
00380 val2.platform = str[start:end].decode('utf-8')
00381 else:
00382 val2.platform = str[start:end]
00383 start = end
00384 end += 4
00385 (length,) = _struct_I.unpack(str[start:end])
00386 start = end
00387 end += length
00388 if python3:
00389 val2.status = str[start:end].decode('utf-8')
00390 else:
00391 val2.status = str[start:end]
00392 val1.apps.append(val2)
00393 self.clients.append(val1)
00394 return self
00395 except struct.error as e:
00396 raise genpy.DeserializationError(e)
00397
00398
00399 def serialize_numpy(self, buff, numpy):
00400 """
00401 serialize message with numpy array types into buffer
00402 :param buff: buffer, ``StringIO``
00403 :param numpy: numpy python module
00404 """
00405 try:
00406 length = len(self.clients)
00407 buff.write(_struct_I.pack(length))
00408 for val1 in self.clients:
00409 _x = val1.name
00410 length = len(_x)
00411 if python3 or type(_x) == unicode:
00412 _x = _x.encode('utf-8')
00413 length = len(_x)
00414 buff.write(struct.pack('<I%ss'%length, length, _x))
00415 _x = val1.platform
00416 length = len(_x)
00417 if python3 or type(_x) == unicode:
00418 _x = _x.encode('utf-8')
00419 length = len(_x)
00420 buff.write(struct.pack('<I%ss'%length, length, _x))
00421 _x = val1.system
00422 length = len(_x)
00423 if python3 or type(_x) == unicode:
00424 _x = _x.encode('utf-8')
00425 length = len(_x)
00426 buff.write(struct.pack('<I%ss'%length, length, _x))
00427 _x = val1.robot
00428 length = len(_x)
00429 if python3 or type(_x) == unicode:
00430 _x = _x.encode('utf-8')
00431 length = len(_x)
00432 buff.write(struct.pack('<I%ss'%length, length, _x))
00433 _x = val1.client_status
00434 length = len(_x)
00435 if python3 or type(_x) == unicode:
00436 _x = _x.encode('utf-8')
00437 length = len(_x)
00438 buff.write(struct.pack('<I%ss'%length, length, _x))
00439 _x = val1.app_status
00440 length = len(_x)
00441 if python3 or type(_x) == unicode:
00442 _x = _x.encode('utf-8')
00443 length = len(_x)
00444 buff.write(struct.pack('<I%ss'%length, length, _x))
00445 _x = val1.status
00446 length = len(_x)
00447 if python3 or type(_x) == unicode:
00448 _x = _x.encode('utf-8')
00449 length = len(_x)
00450 buff.write(struct.pack('<I%ss'%length, length, _x))
00451 _v3 = val1.last_connection_timestamp
00452 _x = _v3
00453 buff.write(_struct_2I.pack(_x.secs, _x.nsecs))
00454 length = len(val1.apps)
00455 buff.write(_struct_I.pack(length))
00456 for val2 in val1.apps:
00457 _x = val2.name
00458 length = len(_x)
00459 if python3 or type(_x) == unicode:
00460 _x = _x.encode('utf-8')
00461 length = len(_x)
00462 buff.write(struct.pack('<I%ss'%length, length, _x))
00463 _x = val2.display
00464 length = len(_x)
00465 if python3 or type(_x) == unicode:
00466 _x = _x.encode('utf-8')
00467 length = len(_x)
00468 buff.write(struct.pack('<I%ss'%length, length, _x))
00469 _x = val2.description
00470 length = len(_x)
00471 if python3 or type(_x) == unicode:
00472 _x = _x.encode('utf-8')
00473 length = len(_x)
00474 buff.write(struct.pack('<I%ss'%length, length, _x))
00475 _x = val2.platform
00476 length = len(_x)
00477 if python3 or type(_x) == unicode:
00478 _x = _x.encode('utf-8')
00479 length = len(_x)
00480 buff.write(struct.pack('<I%ss'%length, length, _x))
00481 _x = val2.status
00482 length = len(_x)
00483 if python3 or type(_x) == unicode:
00484 _x = _x.encode('utf-8')
00485 length = len(_x)
00486 buff.write(struct.pack('<I%ss'%length, length, _x))
00487 except struct.error as se: self._check_types(se)
00488 except TypeError as te: self._check_types(te)
00489
00490 def deserialize_numpy(self, str, numpy):
00491 """
00492 unpack serialized message in str into this message instance using numpy for array types
00493 :param str: byte array of serialized message, ``str``
00494 :param numpy: numpy python module
00495 """
00496 try:
00497 if self.clients is None:
00498 self.clients = None
00499 end = 0
00500 start = end
00501 end += 4
00502 (length,) = _struct_I.unpack(str[start:end])
00503 self.clients = []
00504 for i in range(0, length):
00505 val1 = concert_msgs.msg.ConcertClient()
00506 start = end
00507 end += 4
00508 (length,) = _struct_I.unpack(str[start:end])
00509 start = end
00510 end += length
00511 if python3:
00512 val1.name = str[start:end].decode('utf-8')
00513 else:
00514 val1.name = str[start:end]
00515 start = end
00516 end += 4
00517 (length,) = _struct_I.unpack(str[start:end])
00518 start = end
00519 end += length
00520 if python3:
00521 val1.platform = str[start:end].decode('utf-8')
00522 else:
00523 val1.platform = str[start:end]
00524 start = end
00525 end += 4
00526 (length,) = _struct_I.unpack(str[start:end])
00527 start = end
00528 end += length
00529 if python3:
00530 val1.system = str[start:end].decode('utf-8')
00531 else:
00532 val1.system = str[start:end]
00533 start = end
00534 end += 4
00535 (length,) = _struct_I.unpack(str[start:end])
00536 start = end
00537 end += length
00538 if python3:
00539 val1.robot = str[start:end].decode('utf-8')
00540 else:
00541 val1.robot = str[start:end]
00542 start = end
00543 end += 4
00544 (length,) = _struct_I.unpack(str[start:end])
00545 start = end
00546 end += length
00547 if python3:
00548 val1.client_status = str[start:end].decode('utf-8')
00549 else:
00550 val1.client_status = str[start:end]
00551 start = end
00552 end += 4
00553 (length,) = _struct_I.unpack(str[start:end])
00554 start = end
00555 end += length
00556 if python3:
00557 val1.app_status = str[start:end].decode('utf-8')
00558 else:
00559 val1.app_status = str[start:end]
00560 start = end
00561 end += 4
00562 (length,) = _struct_I.unpack(str[start:end])
00563 start = end
00564 end += length
00565 if python3:
00566 val1.status = str[start:end].decode('utf-8')
00567 else:
00568 val1.status = str[start:end]
00569 _v4 = val1.last_connection_timestamp
00570 _x = _v4
00571 start = end
00572 end += 8
00573 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end])
00574 start = end
00575 end += 4
00576 (length,) = _struct_I.unpack(str[start:end])
00577 val1.apps = []
00578 for i in range(0, length):
00579 val2 = appmanager_msgs.msg.AppDescription()
00580 start = end
00581 end += 4
00582 (length,) = _struct_I.unpack(str[start:end])
00583 start = end
00584 end += length
00585 if python3:
00586 val2.name = str[start:end].decode('utf-8')
00587 else:
00588 val2.name = str[start:end]
00589 start = end
00590 end += 4
00591 (length,) = _struct_I.unpack(str[start:end])
00592 start = end
00593 end += length
00594 if python3:
00595 val2.display = str[start:end].decode('utf-8')
00596 else:
00597 val2.display = str[start:end]
00598 start = end
00599 end += 4
00600 (length,) = _struct_I.unpack(str[start:end])
00601 start = end
00602 end += length
00603 if python3:
00604 val2.description = str[start:end].decode('utf-8')
00605 else:
00606 val2.description = str[start:end]
00607 start = end
00608 end += 4
00609 (length,) = _struct_I.unpack(str[start:end])
00610 start = end
00611 end += length
00612 if python3:
00613 val2.platform = str[start:end].decode('utf-8')
00614 else:
00615 val2.platform = str[start:end]
00616 start = end
00617 end += 4
00618 (length,) = _struct_I.unpack(str[start:end])
00619 start = end
00620 end += length
00621 if python3:
00622 val2.status = str[start:end].decode('utf-8')
00623 else:
00624 val2.status = str[start:end]
00625 val1.apps.append(val2)
00626 self.clients.append(val1)
00627 return self
00628 except struct.error as e:
00629 raise genpy.DeserializationError(e)
00630
00631 _struct_I = genpy.struct_I
00632 _struct_2I = struct.Struct("<2I")
00633 class ClientList(object):
00634 _type = 'concert_msgs/ClientList'
00635 _md5sum = 'ca5bde9313481be0700a430a87dd022f'
00636 _request_class = ClientListRequest
00637 _response_class = ClientListResponse