00001 """autogenerated by genpy from gazebo_taskboard/TaskboardPanelA.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 TaskboardPanelA(genpy.Message):
00009 _md5sum = "ee4c1b86056331dd76c8ef8469b7f0fd"
00010 _type = "gazebo_taskboard/TaskboardPanelA"
00011 _has_header = False
00012 _full_text = """string PANEL_POWER_COVER
00013 string PANEL_POWER_SWITCH
00014 string PANEL_POWER_LED
00015 string A01_ROCKER_SWITCH
00016 string A01_ROCKER_LED_TOP
00017 string A01_ROCKER_LED_BOTTOM
00018 string A02_LED_NUM_PAD_A1
00019 string A02_LED_NUM_PAD_A2
00020 string A02_LED_NUM_PAD_A3
00021 string A02_LED_NUM_PAD_B1
00022 string A02_LED_NUM_PAD_B2
00023 string A02_LED_NUM_PAD_B3
00024 string A02_LED_NUM_PAD_C1
00025 string A02_LED_NUM_PAD_C2
00026 string A02_LED_NUM_PAD_C3
00027 string A02_NUM_PAD_A1
00028 string A02_NUM_PAD_A2
00029 string A02_NUM_PAD_A3
00030 string A02_NUM_PAD_B1
00031 string A02_NUM_PAD_B2
00032 string A02_NUM_PAD_B3
00033 string A02_NUM_PAD_C1
00034 string A02_NUM_PAD_C2
00035 string A02_NUM_PAD_C3
00036 string A03_TOGGLE
00037 string A03_LED
00038 string A04_TOGGLE
00039 string A04_LED_TOP
00040 string A04_LED_BOTTOM
00041 string A05_TOGGLE
00042 string A05_LED
00043
00044 """
00045 __slots__ = ['PANEL_POWER_COVER','PANEL_POWER_SWITCH','PANEL_POWER_LED','A01_ROCKER_SWITCH','A01_ROCKER_LED_TOP','A01_ROCKER_LED_BOTTOM','A02_LED_NUM_PAD_A1','A02_LED_NUM_PAD_A2','A02_LED_NUM_PAD_A3','A02_LED_NUM_PAD_B1','A02_LED_NUM_PAD_B2','A02_LED_NUM_PAD_B3','A02_LED_NUM_PAD_C1','A02_LED_NUM_PAD_C2','A02_LED_NUM_PAD_C3','A02_NUM_PAD_A1','A02_NUM_PAD_A2','A02_NUM_PAD_A3','A02_NUM_PAD_B1','A02_NUM_PAD_B2','A02_NUM_PAD_B3','A02_NUM_PAD_C1','A02_NUM_PAD_C2','A02_NUM_PAD_C3','A03_TOGGLE','A03_LED','A04_TOGGLE','A04_LED_TOP','A04_LED_BOTTOM','A05_TOGGLE','A05_LED']
00046 _slot_types = ['string','string','string','string','string','string','string','string','string','string','string','string','string','string','string','string','string','string','string','string','string','string','string','string','string','string','string','string','string','string','string']
00047
00048 def __init__(self, *args, **kwds):
00049 """
00050 Constructor. Any message fields that are implicitly/explicitly
00051 set to None will be assigned a default value. The recommend
00052 use is keyword arguments as this is more robust to future message
00053 changes. You cannot mix in-order arguments and keyword arguments.
00054
00055 The available fields are:
00056 PANEL_POWER_COVER,PANEL_POWER_SWITCH,PANEL_POWER_LED,A01_ROCKER_SWITCH,A01_ROCKER_LED_TOP,A01_ROCKER_LED_BOTTOM,A02_LED_NUM_PAD_A1,A02_LED_NUM_PAD_A2,A02_LED_NUM_PAD_A3,A02_LED_NUM_PAD_B1,A02_LED_NUM_PAD_B2,A02_LED_NUM_PAD_B3,A02_LED_NUM_PAD_C1,A02_LED_NUM_PAD_C2,A02_LED_NUM_PAD_C3,A02_NUM_PAD_A1,A02_NUM_PAD_A2,A02_NUM_PAD_A3,A02_NUM_PAD_B1,A02_NUM_PAD_B2,A02_NUM_PAD_B3,A02_NUM_PAD_C1,A02_NUM_PAD_C2,A02_NUM_PAD_C3,A03_TOGGLE,A03_LED,A04_TOGGLE,A04_LED_TOP,A04_LED_BOTTOM,A05_TOGGLE,A05_LED
00057
00058 :param args: complete set of field values, in .msg order
00059 :param kwds: use keyword arguments corresponding to message field names
00060 to set specific fields.
00061 """
00062 if args or kwds:
00063 super(TaskboardPanelA, self).__init__(*args, **kwds)
00064
00065 if self.PANEL_POWER_COVER is None:
00066 self.PANEL_POWER_COVER = ''
00067 if self.PANEL_POWER_SWITCH is None:
00068 self.PANEL_POWER_SWITCH = ''
00069 if self.PANEL_POWER_LED is None:
00070 self.PANEL_POWER_LED = ''
00071 if self.A01_ROCKER_SWITCH is None:
00072 self.A01_ROCKER_SWITCH = ''
00073 if self.A01_ROCKER_LED_TOP is None:
00074 self.A01_ROCKER_LED_TOP = ''
00075 if self.A01_ROCKER_LED_BOTTOM is None:
00076 self.A01_ROCKER_LED_BOTTOM = ''
00077 if self.A02_LED_NUM_PAD_A1 is None:
00078 self.A02_LED_NUM_PAD_A1 = ''
00079 if self.A02_LED_NUM_PAD_A2 is None:
00080 self.A02_LED_NUM_PAD_A2 = ''
00081 if self.A02_LED_NUM_PAD_A3 is None:
00082 self.A02_LED_NUM_PAD_A3 = ''
00083 if self.A02_LED_NUM_PAD_B1 is None:
00084 self.A02_LED_NUM_PAD_B1 = ''
00085 if self.A02_LED_NUM_PAD_B2 is None:
00086 self.A02_LED_NUM_PAD_B2 = ''
00087 if self.A02_LED_NUM_PAD_B3 is None:
00088 self.A02_LED_NUM_PAD_B3 = ''
00089 if self.A02_LED_NUM_PAD_C1 is None:
00090 self.A02_LED_NUM_PAD_C1 = ''
00091 if self.A02_LED_NUM_PAD_C2 is None:
00092 self.A02_LED_NUM_PAD_C2 = ''
00093 if self.A02_LED_NUM_PAD_C3 is None:
00094 self.A02_LED_NUM_PAD_C3 = ''
00095 if self.A02_NUM_PAD_A1 is None:
00096 self.A02_NUM_PAD_A1 = ''
00097 if self.A02_NUM_PAD_A2 is None:
00098 self.A02_NUM_PAD_A2 = ''
00099 if self.A02_NUM_PAD_A3 is None:
00100 self.A02_NUM_PAD_A3 = ''
00101 if self.A02_NUM_PAD_B1 is None:
00102 self.A02_NUM_PAD_B1 = ''
00103 if self.A02_NUM_PAD_B2 is None:
00104 self.A02_NUM_PAD_B2 = ''
00105 if self.A02_NUM_PAD_B3 is None:
00106 self.A02_NUM_PAD_B3 = ''
00107 if self.A02_NUM_PAD_C1 is None:
00108 self.A02_NUM_PAD_C1 = ''
00109 if self.A02_NUM_PAD_C2 is None:
00110 self.A02_NUM_PAD_C2 = ''
00111 if self.A02_NUM_PAD_C3 is None:
00112 self.A02_NUM_PAD_C3 = ''
00113 if self.A03_TOGGLE is None:
00114 self.A03_TOGGLE = ''
00115 if self.A03_LED is None:
00116 self.A03_LED = ''
00117 if self.A04_TOGGLE is None:
00118 self.A04_TOGGLE = ''
00119 if self.A04_LED_TOP is None:
00120 self.A04_LED_TOP = ''
00121 if self.A04_LED_BOTTOM is None:
00122 self.A04_LED_BOTTOM = ''
00123 if self.A05_TOGGLE is None:
00124 self.A05_TOGGLE = ''
00125 if self.A05_LED is None:
00126 self.A05_LED = ''
00127 else:
00128 self.PANEL_POWER_COVER = ''
00129 self.PANEL_POWER_SWITCH = ''
00130 self.PANEL_POWER_LED = ''
00131 self.A01_ROCKER_SWITCH = ''
00132 self.A01_ROCKER_LED_TOP = ''
00133 self.A01_ROCKER_LED_BOTTOM = ''
00134 self.A02_LED_NUM_PAD_A1 = ''
00135 self.A02_LED_NUM_PAD_A2 = ''
00136 self.A02_LED_NUM_PAD_A3 = ''
00137 self.A02_LED_NUM_PAD_B1 = ''
00138 self.A02_LED_NUM_PAD_B2 = ''
00139 self.A02_LED_NUM_PAD_B3 = ''
00140 self.A02_LED_NUM_PAD_C1 = ''
00141 self.A02_LED_NUM_PAD_C2 = ''
00142 self.A02_LED_NUM_PAD_C3 = ''
00143 self.A02_NUM_PAD_A1 = ''
00144 self.A02_NUM_PAD_A2 = ''
00145 self.A02_NUM_PAD_A3 = ''
00146 self.A02_NUM_PAD_B1 = ''
00147 self.A02_NUM_PAD_B2 = ''
00148 self.A02_NUM_PAD_B3 = ''
00149 self.A02_NUM_PAD_C1 = ''
00150 self.A02_NUM_PAD_C2 = ''
00151 self.A02_NUM_PAD_C3 = ''
00152 self.A03_TOGGLE = ''
00153 self.A03_LED = ''
00154 self.A04_TOGGLE = ''
00155 self.A04_LED_TOP = ''
00156 self.A04_LED_BOTTOM = ''
00157 self.A05_TOGGLE = ''
00158 self.A05_LED = ''
00159
00160 def _get_types(self):
00161 """
00162 internal API method
00163 """
00164 return self._slot_types
00165
00166 def serialize(self, buff):
00167 """
00168 serialize message into buffer
00169 :param buff: buffer, ``StringIO``
00170 """
00171 try:
00172 _x = self.PANEL_POWER_COVER
00173 length = len(_x)
00174 if python3 or type(_x) == unicode:
00175 _x = _x.encode('utf-8')
00176 length = len(_x)
00177 buff.write(struct.pack('<I%ss'%length, length, _x))
00178 _x = self.PANEL_POWER_SWITCH
00179 length = len(_x)
00180 if python3 or type(_x) == unicode:
00181 _x = _x.encode('utf-8')
00182 length = len(_x)
00183 buff.write(struct.pack('<I%ss'%length, length, _x))
00184 _x = self.PANEL_POWER_LED
00185 length = len(_x)
00186 if python3 or type(_x) == unicode:
00187 _x = _x.encode('utf-8')
00188 length = len(_x)
00189 buff.write(struct.pack('<I%ss'%length, length, _x))
00190 _x = self.A01_ROCKER_SWITCH
00191 length = len(_x)
00192 if python3 or type(_x) == unicode:
00193 _x = _x.encode('utf-8')
00194 length = len(_x)
00195 buff.write(struct.pack('<I%ss'%length, length, _x))
00196 _x = self.A01_ROCKER_LED_TOP
00197 length = len(_x)
00198 if python3 or type(_x) == unicode:
00199 _x = _x.encode('utf-8')
00200 length = len(_x)
00201 buff.write(struct.pack('<I%ss'%length, length, _x))
00202 _x = self.A01_ROCKER_LED_BOTTOM
00203 length = len(_x)
00204 if python3 or type(_x) == unicode:
00205 _x = _x.encode('utf-8')
00206 length = len(_x)
00207 buff.write(struct.pack('<I%ss'%length, length, _x))
00208 _x = self.A02_LED_NUM_PAD_A1
00209 length = len(_x)
00210 if python3 or type(_x) == unicode:
00211 _x = _x.encode('utf-8')
00212 length = len(_x)
00213 buff.write(struct.pack('<I%ss'%length, length, _x))
00214 _x = self.A02_LED_NUM_PAD_A2
00215 length = len(_x)
00216 if python3 or type(_x) == unicode:
00217 _x = _x.encode('utf-8')
00218 length = len(_x)
00219 buff.write(struct.pack('<I%ss'%length, length, _x))
00220 _x = self.A02_LED_NUM_PAD_A3
00221 length = len(_x)
00222 if python3 or type(_x) == unicode:
00223 _x = _x.encode('utf-8')
00224 length = len(_x)
00225 buff.write(struct.pack('<I%ss'%length, length, _x))
00226 _x = self.A02_LED_NUM_PAD_B1
00227 length = len(_x)
00228 if python3 or type(_x) == unicode:
00229 _x = _x.encode('utf-8')
00230 length = len(_x)
00231 buff.write(struct.pack('<I%ss'%length, length, _x))
00232 _x = self.A02_LED_NUM_PAD_B2
00233 length = len(_x)
00234 if python3 or type(_x) == unicode:
00235 _x = _x.encode('utf-8')
00236 length = len(_x)
00237 buff.write(struct.pack('<I%ss'%length, length, _x))
00238 _x = self.A02_LED_NUM_PAD_B3
00239 length = len(_x)
00240 if python3 or type(_x) == unicode:
00241 _x = _x.encode('utf-8')
00242 length = len(_x)
00243 buff.write(struct.pack('<I%ss'%length, length, _x))
00244 _x = self.A02_LED_NUM_PAD_C1
00245 length = len(_x)
00246 if python3 or type(_x) == unicode:
00247 _x = _x.encode('utf-8')
00248 length = len(_x)
00249 buff.write(struct.pack('<I%ss'%length, length, _x))
00250 _x = self.A02_LED_NUM_PAD_C2
00251 length = len(_x)
00252 if python3 or type(_x) == unicode:
00253 _x = _x.encode('utf-8')
00254 length = len(_x)
00255 buff.write(struct.pack('<I%ss'%length, length, _x))
00256 _x = self.A02_LED_NUM_PAD_C3
00257 length = len(_x)
00258 if python3 or type(_x) == unicode:
00259 _x = _x.encode('utf-8')
00260 length = len(_x)
00261 buff.write(struct.pack('<I%ss'%length, length, _x))
00262 _x = self.A02_NUM_PAD_A1
00263 length = len(_x)
00264 if python3 or type(_x) == unicode:
00265 _x = _x.encode('utf-8')
00266 length = len(_x)
00267 buff.write(struct.pack('<I%ss'%length, length, _x))
00268 _x = self.A02_NUM_PAD_A2
00269 length = len(_x)
00270 if python3 or type(_x) == unicode:
00271 _x = _x.encode('utf-8')
00272 length = len(_x)
00273 buff.write(struct.pack('<I%ss'%length, length, _x))
00274 _x = self.A02_NUM_PAD_A3
00275 length = len(_x)
00276 if python3 or type(_x) == unicode:
00277 _x = _x.encode('utf-8')
00278 length = len(_x)
00279 buff.write(struct.pack('<I%ss'%length, length, _x))
00280 _x = self.A02_NUM_PAD_B1
00281 length = len(_x)
00282 if python3 or type(_x) == unicode:
00283 _x = _x.encode('utf-8')
00284 length = len(_x)
00285 buff.write(struct.pack('<I%ss'%length, length, _x))
00286 _x = self.A02_NUM_PAD_B2
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 = self.A02_NUM_PAD_B3
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 _x = self.A02_NUM_PAD_C1
00299 length = len(_x)
00300 if python3 or type(_x) == unicode:
00301 _x = _x.encode('utf-8')
00302 length = len(_x)
00303 buff.write(struct.pack('<I%ss'%length, length, _x))
00304 _x = self.A02_NUM_PAD_C2
00305 length = len(_x)
00306 if python3 or type(_x) == unicode:
00307 _x = _x.encode('utf-8')
00308 length = len(_x)
00309 buff.write(struct.pack('<I%ss'%length, length, _x))
00310 _x = self.A02_NUM_PAD_C3
00311 length = len(_x)
00312 if python3 or type(_x) == unicode:
00313 _x = _x.encode('utf-8')
00314 length = len(_x)
00315 buff.write(struct.pack('<I%ss'%length, length, _x))
00316 _x = self.A03_TOGGLE
00317 length = len(_x)
00318 if python3 or type(_x) == unicode:
00319 _x = _x.encode('utf-8')
00320 length = len(_x)
00321 buff.write(struct.pack('<I%ss'%length, length, _x))
00322 _x = self.A03_LED
00323 length = len(_x)
00324 if python3 or type(_x) == unicode:
00325 _x = _x.encode('utf-8')
00326 length = len(_x)
00327 buff.write(struct.pack('<I%ss'%length, length, _x))
00328 _x = self.A04_TOGGLE
00329 length = len(_x)
00330 if python3 or type(_x) == unicode:
00331 _x = _x.encode('utf-8')
00332 length = len(_x)
00333 buff.write(struct.pack('<I%ss'%length, length, _x))
00334 _x = self.A04_LED_TOP
00335 length = len(_x)
00336 if python3 or type(_x) == unicode:
00337 _x = _x.encode('utf-8')
00338 length = len(_x)
00339 buff.write(struct.pack('<I%ss'%length, length, _x))
00340 _x = self.A04_LED_BOTTOM
00341 length = len(_x)
00342 if python3 or type(_x) == unicode:
00343 _x = _x.encode('utf-8')
00344 length = len(_x)
00345 buff.write(struct.pack('<I%ss'%length, length, _x))
00346 _x = self.A05_TOGGLE
00347 length = len(_x)
00348 if python3 or type(_x) == unicode:
00349 _x = _x.encode('utf-8')
00350 length = len(_x)
00351 buff.write(struct.pack('<I%ss'%length, length, _x))
00352 _x = self.A05_LED
00353 length = len(_x)
00354 if python3 or type(_x) == unicode:
00355 _x = _x.encode('utf-8')
00356 length = len(_x)
00357 buff.write(struct.pack('<I%ss'%length, length, _x))
00358 except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00359 except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00360
00361 def deserialize(self, str):
00362 """
00363 unpack serialized message in str into this message instance
00364 :param str: byte array of serialized message, ``str``
00365 """
00366 try:
00367 end = 0
00368 start = end
00369 end += 4
00370 (length,) = _struct_I.unpack(str[start:end])
00371 start = end
00372 end += length
00373 if python3:
00374 self.PANEL_POWER_COVER = str[start:end].decode('utf-8')
00375 else:
00376 self.PANEL_POWER_COVER = str[start:end]
00377 start = end
00378 end += 4
00379 (length,) = _struct_I.unpack(str[start:end])
00380 start = end
00381 end += length
00382 if python3:
00383 self.PANEL_POWER_SWITCH = str[start:end].decode('utf-8')
00384 else:
00385 self.PANEL_POWER_SWITCH = str[start:end]
00386 start = end
00387 end += 4
00388 (length,) = _struct_I.unpack(str[start:end])
00389 start = end
00390 end += length
00391 if python3:
00392 self.PANEL_POWER_LED = str[start:end].decode('utf-8')
00393 else:
00394 self.PANEL_POWER_LED = str[start:end]
00395 start = end
00396 end += 4
00397 (length,) = _struct_I.unpack(str[start:end])
00398 start = end
00399 end += length
00400 if python3:
00401 self.A01_ROCKER_SWITCH = str[start:end].decode('utf-8')
00402 else:
00403 self.A01_ROCKER_SWITCH = str[start:end]
00404 start = end
00405 end += 4
00406 (length,) = _struct_I.unpack(str[start:end])
00407 start = end
00408 end += length
00409 if python3:
00410 self.A01_ROCKER_LED_TOP = str[start:end].decode('utf-8')
00411 else:
00412 self.A01_ROCKER_LED_TOP = str[start:end]
00413 start = end
00414 end += 4
00415 (length,) = _struct_I.unpack(str[start:end])
00416 start = end
00417 end += length
00418 if python3:
00419 self.A01_ROCKER_LED_BOTTOM = str[start:end].decode('utf-8')
00420 else:
00421 self.A01_ROCKER_LED_BOTTOM = str[start:end]
00422 start = end
00423 end += 4
00424 (length,) = _struct_I.unpack(str[start:end])
00425 start = end
00426 end += length
00427 if python3:
00428 self.A02_LED_NUM_PAD_A1 = str[start:end].decode('utf-8')
00429 else:
00430 self.A02_LED_NUM_PAD_A1 = str[start:end]
00431 start = end
00432 end += 4
00433 (length,) = _struct_I.unpack(str[start:end])
00434 start = end
00435 end += length
00436 if python3:
00437 self.A02_LED_NUM_PAD_A2 = str[start:end].decode('utf-8')
00438 else:
00439 self.A02_LED_NUM_PAD_A2 = str[start:end]
00440 start = end
00441 end += 4
00442 (length,) = _struct_I.unpack(str[start:end])
00443 start = end
00444 end += length
00445 if python3:
00446 self.A02_LED_NUM_PAD_A3 = str[start:end].decode('utf-8')
00447 else:
00448 self.A02_LED_NUM_PAD_A3 = str[start:end]
00449 start = end
00450 end += 4
00451 (length,) = _struct_I.unpack(str[start:end])
00452 start = end
00453 end += length
00454 if python3:
00455 self.A02_LED_NUM_PAD_B1 = str[start:end].decode('utf-8')
00456 else:
00457 self.A02_LED_NUM_PAD_B1 = str[start:end]
00458 start = end
00459 end += 4
00460 (length,) = _struct_I.unpack(str[start:end])
00461 start = end
00462 end += length
00463 if python3:
00464 self.A02_LED_NUM_PAD_B2 = str[start:end].decode('utf-8')
00465 else:
00466 self.A02_LED_NUM_PAD_B2 = str[start:end]
00467 start = end
00468 end += 4
00469 (length,) = _struct_I.unpack(str[start:end])
00470 start = end
00471 end += length
00472 if python3:
00473 self.A02_LED_NUM_PAD_B3 = str[start:end].decode('utf-8')
00474 else:
00475 self.A02_LED_NUM_PAD_B3 = str[start:end]
00476 start = end
00477 end += 4
00478 (length,) = _struct_I.unpack(str[start:end])
00479 start = end
00480 end += length
00481 if python3:
00482 self.A02_LED_NUM_PAD_C1 = str[start:end].decode('utf-8')
00483 else:
00484 self.A02_LED_NUM_PAD_C1 = str[start:end]
00485 start = end
00486 end += 4
00487 (length,) = _struct_I.unpack(str[start:end])
00488 start = end
00489 end += length
00490 if python3:
00491 self.A02_LED_NUM_PAD_C2 = str[start:end].decode('utf-8')
00492 else:
00493 self.A02_LED_NUM_PAD_C2 = str[start:end]
00494 start = end
00495 end += 4
00496 (length,) = _struct_I.unpack(str[start:end])
00497 start = end
00498 end += length
00499 if python3:
00500 self.A02_LED_NUM_PAD_C3 = str[start:end].decode('utf-8')
00501 else:
00502 self.A02_LED_NUM_PAD_C3 = str[start:end]
00503 start = end
00504 end += 4
00505 (length,) = _struct_I.unpack(str[start:end])
00506 start = end
00507 end += length
00508 if python3:
00509 self.A02_NUM_PAD_A1 = str[start:end].decode('utf-8')
00510 else:
00511 self.A02_NUM_PAD_A1 = str[start:end]
00512 start = end
00513 end += 4
00514 (length,) = _struct_I.unpack(str[start:end])
00515 start = end
00516 end += length
00517 if python3:
00518 self.A02_NUM_PAD_A2 = str[start:end].decode('utf-8')
00519 else:
00520 self.A02_NUM_PAD_A2 = str[start:end]
00521 start = end
00522 end += 4
00523 (length,) = _struct_I.unpack(str[start:end])
00524 start = end
00525 end += length
00526 if python3:
00527 self.A02_NUM_PAD_A3 = str[start:end].decode('utf-8')
00528 else:
00529 self.A02_NUM_PAD_A3 = str[start:end]
00530 start = end
00531 end += 4
00532 (length,) = _struct_I.unpack(str[start:end])
00533 start = end
00534 end += length
00535 if python3:
00536 self.A02_NUM_PAD_B1 = str[start:end].decode('utf-8')
00537 else:
00538 self.A02_NUM_PAD_B1 = str[start:end]
00539 start = end
00540 end += 4
00541 (length,) = _struct_I.unpack(str[start:end])
00542 start = end
00543 end += length
00544 if python3:
00545 self.A02_NUM_PAD_B2 = str[start:end].decode('utf-8')
00546 else:
00547 self.A02_NUM_PAD_B2 = str[start:end]
00548 start = end
00549 end += 4
00550 (length,) = _struct_I.unpack(str[start:end])
00551 start = end
00552 end += length
00553 if python3:
00554 self.A02_NUM_PAD_B3 = str[start:end].decode('utf-8')
00555 else:
00556 self.A02_NUM_PAD_B3 = str[start:end]
00557 start = end
00558 end += 4
00559 (length,) = _struct_I.unpack(str[start:end])
00560 start = end
00561 end += length
00562 if python3:
00563 self.A02_NUM_PAD_C1 = str[start:end].decode('utf-8')
00564 else:
00565 self.A02_NUM_PAD_C1 = str[start:end]
00566 start = end
00567 end += 4
00568 (length,) = _struct_I.unpack(str[start:end])
00569 start = end
00570 end += length
00571 if python3:
00572 self.A02_NUM_PAD_C2 = str[start:end].decode('utf-8')
00573 else:
00574 self.A02_NUM_PAD_C2 = str[start:end]
00575 start = end
00576 end += 4
00577 (length,) = _struct_I.unpack(str[start:end])
00578 start = end
00579 end += length
00580 if python3:
00581 self.A02_NUM_PAD_C3 = str[start:end].decode('utf-8')
00582 else:
00583 self.A02_NUM_PAD_C3 = str[start:end]
00584 start = end
00585 end += 4
00586 (length,) = _struct_I.unpack(str[start:end])
00587 start = end
00588 end += length
00589 if python3:
00590 self.A03_TOGGLE = str[start:end].decode('utf-8')
00591 else:
00592 self.A03_TOGGLE = str[start:end]
00593 start = end
00594 end += 4
00595 (length,) = _struct_I.unpack(str[start:end])
00596 start = end
00597 end += length
00598 if python3:
00599 self.A03_LED = str[start:end].decode('utf-8')
00600 else:
00601 self.A03_LED = str[start:end]
00602 start = end
00603 end += 4
00604 (length,) = _struct_I.unpack(str[start:end])
00605 start = end
00606 end += length
00607 if python3:
00608 self.A04_TOGGLE = str[start:end].decode('utf-8')
00609 else:
00610 self.A04_TOGGLE = str[start:end]
00611 start = end
00612 end += 4
00613 (length,) = _struct_I.unpack(str[start:end])
00614 start = end
00615 end += length
00616 if python3:
00617 self.A04_LED_TOP = str[start:end].decode('utf-8')
00618 else:
00619 self.A04_LED_TOP = str[start:end]
00620 start = end
00621 end += 4
00622 (length,) = _struct_I.unpack(str[start:end])
00623 start = end
00624 end += length
00625 if python3:
00626 self.A04_LED_BOTTOM = str[start:end].decode('utf-8')
00627 else:
00628 self.A04_LED_BOTTOM = str[start:end]
00629 start = end
00630 end += 4
00631 (length,) = _struct_I.unpack(str[start:end])
00632 start = end
00633 end += length
00634 if python3:
00635 self.A05_TOGGLE = str[start:end].decode('utf-8')
00636 else:
00637 self.A05_TOGGLE = str[start:end]
00638 start = end
00639 end += 4
00640 (length,) = _struct_I.unpack(str[start:end])
00641 start = end
00642 end += length
00643 if python3:
00644 self.A05_LED = str[start:end].decode('utf-8')
00645 else:
00646 self.A05_LED = str[start:end]
00647 return self
00648 except struct.error as e:
00649 raise genpy.DeserializationError(e)
00650
00651
00652 def serialize_numpy(self, buff, numpy):
00653 """
00654 serialize message with numpy array types into buffer
00655 :param buff: buffer, ``StringIO``
00656 :param numpy: numpy python module
00657 """
00658 try:
00659 _x = self.PANEL_POWER_COVER
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 _x = self.PANEL_POWER_SWITCH
00666 length = len(_x)
00667 if python3 or type(_x) == unicode:
00668 _x = _x.encode('utf-8')
00669 length = len(_x)
00670 buff.write(struct.pack('<I%ss'%length, length, _x))
00671 _x = self.PANEL_POWER_LED
00672 length = len(_x)
00673 if python3 or type(_x) == unicode:
00674 _x = _x.encode('utf-8')
00675 length = len(_x)
00676 buff.write(struct.pack('<I%ss'%length, length, _x))
00677 _x = self.A01_ROCKER_SWITCH
00678 length = len(_x)
00679 if python3 or type(_x) == unicode:
00680 _x = _x.encode('utf-8')
00681 length = len(_x)
00682 buff.write(struct.pack('<I%ss'%length, length, _x))
00683 _x = self.A01_ROCKER_LED_TOP
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 = self.A01_ROCKER_LED_BOTTOM
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 _x = self.A02_LED_NUM_PAD_A1
00696 length = len(_x)
00697 if python3 or type(_x) == unicode:
00698 _x = _x.encode('utf-8')
00699 length = len(_x)
00700 buff.write(struct.pack('<I%ss'%length, length, _x))
00701 _x = self.A02_LED_NUM_PAD_A2
00702 length = len(_x)
00703 if python3 or type(_x) == unicode:
00704 _x = _x.encode('utf-8')
00705 length = len(_x)
00706 buff.write(struct.pack('<I%ss'%length, length, _x))
00707 _x = self.A02_LED_NUM_PAD_A3
00708 length = len(_x)
00709 if python3 or type(_x) == unicode:
00710 _x = _x.encode('utf-8')
00711 length = len(_x)
00712 buff.write(struct.pack('<I%ss'%length, length, _x))
00713 _x = self.A02_LED_NUM_PAD_B1
00714 length = len(_x)
00715 if python3 or type(_x) == unicode:
00716 _x = _x.encode('utf-8')
00717 length = len(_x)
00718 buff.write(struct.pack('<I%ss'%length, length, _x))
00719 _x = self.A02_LED_NUM_PAD_B2
00720 length = len(_x)
00721 if python3 or type(_x) == unicode:
00722 _x = _x.encode('utf-8')
00723 length = len(_x)
00724 buff.write(struct.pack('<I%ss'%length, length, _x))
00725 _x = self.A02_LED_NUM_PAD_B3
00726 length = len(_x)
00727 if python3 or type(_x) == unicode:
00728 _x = _x.encode('utf-8')
00729 length = len(_x)
00730 buff.write(struct.pack('<I%ss'%length, length, _x))
00731 _x = self.A02_LED_NUM_PAD_C1
00732 length = len(_x)
00733 if python3 or type(_x) == unicode:
00734 _x = _x.encode('utf-8')
00735 length = len(_x)
00736 buff.write(struct.pack('<I%ss'%length, length, _x))
00737 _x = self.A02_LED_NUM_PAD_C2
00738 length = len(_x)
00739 if python3 or type(_x) == unicode:
00740 _x = _x.encode('utf-8')
00741 length = len(_x)
00742 buff.write(struct.pack('<I%ss'%length, length, _x))
00743 _x = self.A02_LED_NUM_PAD_C3
00744 length = len(_x)
00745 if python3 or type(_x) == unicode:
00746 _x = _x.encode('utf-8')
00747 length = len(_x)
00748 buff.write(struct.pack('<I%ss'%length, length, _x))
00749 _x = self.A02_NUM_PAD_A1
00750 length = len(_x)
00751 if python3 or type(_x) == unicode:
00752 _x = _x.encode('utf-8')
00753 length = len(_x)
00754 buff.write(struct.pack('<I%ss'%length, length, _x))
00755 _x = self.A02_NUM_PAD_A2
00756 length = len(_x)
00757 if python3 or type(_x) == unicode:
00758 _x = _x.encode('utf-8')
00759 length = len(_x)
00760 buff.write(struct.pack('<I%ss'%length, length, _x))
00761 _x = self.A02_NUM_PAD_A3
00762 length = len(_x)
00763 if python3 or type(_x) == unicode:
00764 _x = _x.encode('utf-8')
00765 length = len(_x)
00766 buff.write(struct.pack('<I%ss'%length, length, _x))
00767 _x = self.A02_NUM_PAD_B1
00768 length = len(_x)
00769 if python3 or type(_x) == unicode:
00770 _x = _x.encode('utf-8')
00771 length = len(_x)
00772 buff.write(struct.pack('<I%ss'%length, length, _x))
00773 _x = self.A02_NUM_PAD_B2
00774 length = len(_x)
00775 if python3 or type(_x) == unicode:
00776 _x = _x.encode('utf-8')
00777 length = len(_x)
00778 buff.write(struct.pack('<I%ss'%length, length, _x))
00779 _x = self.A02_NUM_PAD_B3
00780 length = len(_x)
00781 if python3 or type(_x) == unicode:
00782 _x = _x.encode('utf-8')
00783 length = len(_x)
00784 buff.write(struct.pack('<I%ss'%length, length, _x))
00785 _x = self.A02_NUM_PAD_C1
00786 length = len(_x)
00787 if python3 or type(_x) == unicode:
00788 _x = _x.encode('utf-8')
00789 length = len(_x)
00790 buff.write(struct.pack('<I%ss'%length, length, _x))
00791 _x = self.A02_NUM_PAD_C2
00792 length = len(_x)
00793 if python3 or type(_x) == unicode:
00794 _x = _x.encode('utf-8')
00795 length = len(_x)
00796 buff.write(struct.pack('<I%ss'%length, length, _x))
00797 _x = self.A02_NUM_PAD_C3
00798 length = len(_x)
00799 if python3 or type(_x) == unicode:
00800 _x = _x.encode('utf-8')
00801 length = len(_x)
00802 buff.write(struct.pack('<I%ss'%length, length, _x))
00803 _x = self.A03_TOGGLE
00804 length = len(_x)
00805 if python3 or type(_x) == unicode:
00806 _x = _x.encode('utf-8')
00807 length = len(_x)
00808 buff.write(struct.pack('<I%ss'%length, length, _x))
00809 _x = self.A03_LED
00810 length = len(_x)
00811 if python3 or type(_x) == unicode:
00812 _x = _x.encode('utf-8')
00813 length = len(_x)
00814 buff.write(struct.pack('<I%ss'%length, length, _x))
00815 _x = self.A04_TOGGLE
00816 length = len(_x)
00817 if python3 or type(_x) == unicode:
00818 _x = _x.encode('utf-8')
00819 length = len(_x)
00820 buff.write(struct.pack('<I%ss'%length, length, _x))
00821 _x = self.A04_LED_TOP
00822 length = len(_x)
00823 if python3 or type(_x) == unicode:
00824 _x = _x.encode('utf-8')
00825 length = len(_x)
00826 buff.write(struct.pack('<I%ss'%length, length, _x))
00827 _x = self.A04_LED_BOTTOM
00828 length = len(_x)
00829 if python3 or type(_x) == unicode:
00830 _x = _x.encode('utf-8')
00831 length = len(_x)
00832 buff.write(struct.pack('<I%ss'%length, length, _x))
00833 _x = self.A05_TOGGLE
00834 length = len(_x)
00835 if python3 or type(_x) == unicode:
00836 _x = _x.encode('utf-8')
00837 length = len(_x)
00838 buff.write(struct.pack('<I%ss'%length, length, _x))
00839 _x = self.A05_LED
00840 length = len(_x)
00841 if python3 or type(_x) == unicode:
00842 _x = _x.encode('utf-8')
00843 length = len(_x)
00844 buff.write(struct.pack('<I%ss'%length, length, _x))
00845 except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00846 except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00847
00848 def deserialize_numpy(self, str, numpy):
00849 """
00850 unpack serialized message in str into this message instance using numpy for array types
00851 :param str: byte array of serialized message, ``str``
00852 :param numpy: numpy python module
00853 """
00854 try:
00855 end = 0
00856 start = end
00857 end += 4
00858 (length,) = _struct_I.unpack(str[start:end])
00859 start = end
00860 end += length
00861 if python3:
00862 self.PANEL_POWER_COVER = str[start:end].decode('utf-8')
00863 else:
00864 self.PANEL_POWER_COVER = str[start:end]
00865 start = end
00866 end += 4
00867 (length,) = _struct_I.unpack(str[start:end])
00868 start = end
00869 end += length
00870 if python3:
00871 self.PANEL_POWER_SWITCH = str[start:end].decode('utf-8')
00872 else:
00873 self.PANEL_POWER_SWITCH = str[start:end]
00874 start = end
00875 end += 4
00876 (length,) = _struct_I.unpack(str[start:end])
00877 start = end
00878 end += length
00879 if python3:
00880 self.PANEL_POWER_LED = str[start:end].decode('utf-8')
00881 else:
00882 self.PANEL_POWER_LED = str[start:end]
00883 start = end
00884 end += 4
00885 (length,) = _struct_I.unpack(str[start:end])
00886 start = end
00887 end += length
00888 if python3:
00889 self.A01_ROCKER_SWITCH = str[start:end].decode('utf-8')
00890 else:
00891 self.A01_ROCKER_SWITCH = str[start:end]
00892 start = end
00893 end += 4
00894 (length,) = _struct_I.unpack(str[start:end])
00895 start = end
00896 end += length
00897 if python3:
00898 self.A01_ROCKER_LED_TOP = str[start:end].decode('utf-8')
00899 else:
00900 self.A01_ROCKER_LED_TOP = str[start:end]
00901 start = end
00902 end += 4
00903 (length,) = _struct_I.unpack(str[start:end])
00904 start = end
00905 end += length
00906 if python3:
00907 self.A01_ROCKER_LED_BOTTOM = str[start:end].decode('utf-8')
00908 else:
00909 self.A01_ROCKER_LED_BOTTOM = str[start:end]
00910 start = end
00911 end += 4
00912 (length,) = _struct_I.unpack(str[start:end])
00913 start = end
00914 end += length
00915 if python3:
00916 self.A02_LED_NUM_PAD_A1 = str[start:end].decode('utf-8')
00917 else:
00918 self.A02_LED_NUM_PAD_A1 = str[start:end]
00919 start = end
00920 end += 4
00921 (length,) = _struct_I.unpack(str[start:end])
00922 start = end
00923 end += length
00924 if python3:
00925 self.A02_LED_NUM_PAD_A2 = str[start:end].decode('utf-8')
00926 else:
00927 self.A02_LED_NUM_PAD_A2 = str[start:end]
00928 start = end
00929 end += 4
00930 (length,) = _struct_I.unpack(str[start:end])
00931 start = end
00932 end += length
00933 if python3:
00934 self.A02_LED_NUM_PAD_A3 = str[start:end].decode('utf-8')
00935 else:
00936 self.A02_LED_NUM_PAD_A3 = str[start:end]
00937 start = end
00938 end += 4
00939 (length,) = _struct_I.unpack(str[start:end])
00940 start = end
00941 end += length
00942 if python3:
00943 self.A02_LED_NUM_PAD_B1 = str[start:end].decode('utf-8')
00944 else:
00945 self.A02_LED_NUM_PAD_B1 = str[start:end]
00946 start = end
00947 end += 4
00948 (length,) = _struct_I.unpack(str[start:end])
00949 start = end
00950 end += length
00951 if python3:
00952 self.A02_LED_NUM_PAD_B2 = str[start:end].decode('utf-8')
00953 else:
00954 self.A02_LED_NUM_PAD_B2 = str[start:end]
00955 start = end
00956 end += 4
00957 (length,) = _struct_I.unpack(str[start:end])
00958 start = end
00959 end += length
00960 if python3:
00961 self.A02_LED_NUM_PAD_B3 = str[start:end].decode('utf-8')
00962 else:
00963 self.A02_LED_NUM_PAD_B3 = str[start:end]
00964 start = end
00965 end += 4
00966 (length,) = _struct_I.unpack(str[start:end])
00967 start = end
00968 end += length
00969 if python3:
00970 self.A02_LED_NUM_PAD_C1 = str[start:end].decode('utf-8')
00971 else:
00972 self.A02_LED_NUM_PAD_C1 = str[start:end]
00973 start = end
00974 end += 4
00975 (length,) = _struct_I.unpack(str[start:end])
00976 start = end
00977 end += length
00978 if python3:
00979 self.A02_LED_NUM_PAD_C2 = str[start:end].decode('utf-8')
00980 else:
00981 self.A02_LED_NUM_PAD_C2 = str[start:end]
00982 start = end
00983 end += 4
00984 (length,) = _struct_I.unpack(str[start:end])
00985 start = end
00986 end += length
00987 if python3:
00988 self.A02_LED_NUM_PAD_C3 = str[start:end].decode('utf-8')
00989 else:
00990 self.A02_LED_NUM_PAD_C3 = str[start:end]
00991 start = end
00992 end += 4
00993 (length,) = _struct_I.unpack(str[start:end])
00994 start = end
00995 end += length
00996 if python3:
00997 self.A02_NUM_PAD_A1 = str[start:end].decode('utf-8')
00998 else:
00999 self.A02_NUM_PAD_A1 = str[start:end]
01000 start = end
01001 end += 4
01002 (length,) = _struct_I.unpack(str[start:end])
01003 start = end
01004 end += length
01005 if python3:
01006 self.A02_NUM_PAD_A2 = str[start:end].decode('utf-8')
01007 else:
01008 self.A02_NUM_PAD_A2 = str[start:end]
01009 start = end
01010 end += 4
01011 (length,) = _struct_I.unpack(str[start:end])
01012 start = end
01013 end += length
01014 if python3:
01015 self.A02_NUM_PAD_A3 = str[start:end].decode('utf-8')
01016 else:
01017 self.A02_NUM_PAD_A3 = str[start:end]
01018 start = end
01019 end += 4
01020 (length,) = _struct_I.unpack(str[start:end])
01021 start = end
01022 end += length
01023 if python3:
01024 self.A02_NUM_PAD_B1 = str[start:end].decode('utf-8')
01025 else:
01026 self.A02_NUM_PAD_B1 = str[start:end]
01027 start = end
01028 end += 4
01029 (length,) = _struct_I.unpack(str[start:end])
01030 start = end
01031 end += length
01032 if python3:
01033 self.A02_NUM_PAD_B2 = str[start:end].decode('utf-8')
01034 else:
01035 self.A02_NUM_PAD_B2 = str[start:end]
01036 start = end
01037 end += 4
01038 (length,) = _struct_I.unpack(str[start:end])
01039 start = end
01040 end += length
01041 if python3:
01042 self.A02_NUM_PAD_B3 = str[start:end].decode('utf-8')
01043 else:
01044 self.A02_NUM_PAD_B3 = str[start:end]
01045 start = end
01046 end += 4
01047 (length,) = _struct_I.unpack(str[start:end])
01048 start = end
01049 end += length
01050 if python3:
01051 self.A02_NUM_PAD_C1 = str[start:end].decode('utf-8')
01052 else:
01053 self.A02_NUM_PAD_C1 = str[start:end]
01054 start = end
01055 end += 4
01056 (length,) = _struct_I.unpack(str[start:end])
01057 start = end
01058 end += length
01059 if python3:
01060 self.A02_NUM_PAD_C2 = str[start:end].decode('utf-8')
01061 else:
01062 self.A02_NUM_PAD_C2 = str[start:end]
01063 start = end
01064 end += 4
01065 (length,) = _struct_I.unpack(str[start:end])
01066 start = end
01067 end += length
01068 if python3:
01069 self.A02_NUM_PAD_C3 = str[start:end].decode('utf-8')
01070 else:
01071 self.A02_NUM_PAD_C3 = str[start:end]
01072 start = end
01073 end += 4
01074 (length,) = _struct_I.unpack(str[start:end])
01075 start = end
01076 end += length
01077 if python3:
01078 self.A03_TOGGLE = str[start:end].decode('utf-8')
01079 else:
01080 self.A03_TOGGLE = str[start:end]
01081 start = end
01082 end += 4
01083 (length,) = _struct_I.unpack(str[start:end])
01084 start = end
01085 end += length
01086 if python3:
01087 self.A03_LED = str[start:end].decode('utf-8')
01088 else:
01089 self.A03_LED = str[start:end]
01090 start = end
01091 end += 4
01092 (length,) = _struct_I.unpack(str[start:end])
01093 start = end
01094 end += length
01095 if python3:
01096 self.A04_TOGGLE = str[start:end].decode('utf-8')
01097 else:
01098 self.A04_TOGGLE = str[start:end]
01099 start = end
01100 end += 4
01101 (length,) = _struct_I.unpack(str[start:end])
01102 start = end
01103 end += length
01104 if python3:
01105 self.A04_LED_TOP = str[start:end].decode('utf-8')
01106 else:
01107 self.A04_LED_TOP = str[start:end]
01108 start = end
01109 end += 4
01110 (length,) = _struct_I.unpack(str[start:end])
01111 start = end
01112 end += length
01113 if python3:
01114 self.A04_LED_BOTTOM = str[start:end].decode('utf-8')
01115 else:
01116 self.A04_LED_BOTTOM = str[start:end]
01117 start = end
01118 end += 4
01119 (length,) = _struct_I.unpack(str[start:end])
01120 start = end
01121 end += length
01122 if python3:
01123 self.A05_TOGGLE = str[start:end].decode('utf-8')
01124 else:
01125 self.A05_TOGGLE = str[start:end]
01126 start = end
01127 end += 4
01128 (length,) = _struct_I.unpack(str[start:end])
01129 start = end
01130 end += length
01131 if python3:
01132 self.A05_LED = str[start:end].decode('utf-8')
01133 else:
01134 self.A05_LED = str[start:end]
01135 return self
01136 except struct.error as e:
01137 raise genpy.DeserializationError(e)
01138
01139 _struct_I = genpy.struct_I