00001 """autogenerated by genpy from joint_qualification_controllers/WristDiffData.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006
00007 import joint_qualification_controllers.msg
00008
00009 class WristDiffData(genpy.Message):
00010 _md5sum = "b5450bf7a09b17c68a893b9c02e710f1"
00011 _type = "joint_qualification_controllers/WristDiffData"
00012 _has_header = False
00013 _full_text = """string flex_joint
00014 string roll_joint
00015 float32[] flex_pid
00016 float32[] roll_pid
00017 string[] arg_name
00018 float32[] arg_value
00019 WristRollTurn left_turn
00020 WristRollTurn right_turn
00021 bool timeout
00022
00023 ================================================================================
00024 MSG: joint_qualification_controllers/WristRollTurn
00025 float32[] time
00026 float32[] flex_position
00027 float32[] flex_effort
00028 float32[] flex_cmd
00029 float32[] roll_position
00030 float32[] roll_effort
00031 float32[] roll_cmd
00032 float32[] roll_velocity
00033
00034 """
00035 __slots__ = ['flex_joint','roll_joint','flex_pid','roll_pid','arg_name','arg_value','left_turn','right_turn','timeout']
00036 _slot_types = ['string','string','float32[]','float32[]','string[]','float32[]','joint_qualification_controllers/WristRollTurn','joint_qualification_controllers/WristRollTurn','bool']
00037
00038 def __init__(self, *args, **kwds):
00039 """
00040 Constructor. Any message fields that are implicitly/explicitly
00041 set to None will be assigned a default value. The recommend
00042 use is keyword arguments as this is more robust to future message
00043 changes. You cannot mix in-order arguments and keyword arguments.
00044
00045 The available fields are:
00046 flex_joint,roll_joint,flex_pid,roll_pid,arg_name,arg_value,left_turn,right_turn,timeout
00047
00048 :param args: complete set of field values, in .msg order
00049 :param kwds: use keyword arguments corresponding to message field names
00050 to set specific fields.
00051 """
00052 if args or kwds:
00053 super(WristDiffData, self).__init__(*args, **kwds)
00054
00055 if self.flex_joint is None:
00056 self.flex_joint = ''
00057 if self.roll_joint is None:
00058 self.roll_joint = ''
00059 if self.flex_pid is None:
00060 self.flex_pid = []
00061 if self.roll_pid is None:
00062 self.roll_pid = []
00063 if self.arg_name is None:
00064 self.arg_name = []
00065 if self.arg_value is None:
00066 self.arg_value = []
00067 if self.left_turn is None:
00068 self.left_turn = joint_qualification_controllers.msg.WristRollTurn()
00069 if self.right_turn is None:
00070 self.right_turn = joint_qualification_controllers.msg.WristRollTurn()
00071 if self.timeout is None:
00072 self.timeout = False
00073 else:
00074 self.flex_joint = ''
00075 self.roll_joint = ''
00076 self.flex_pid = []
00077 self.roll_pid = []
00078 self.arg_name = []
00079 self.arg_value = []
00080 self.left_turn = joint_qualification_controllers.msg.WristRollTurn()
00081 self.right_turn = joint_qualification_controllers.msg.WristRollTurn()
00082 self.timeout = False
00083
00084 def _get_types(self):
00085 """
00086 internal API method
00087 """
00088 return self._slot_types
00089
00090 def serialize(self, buff):
00091 """
00092 serialize message into buffer
00093 :param buff: buffer, ``StringIO``
00094 """
00095 try:
00096 _x = self.flex_joint
00097 length = len(_x)
00098 if python3 or type(_x) == unicode:
00099 _x = _x.encode('utf-8')
00100 length = len(_x)
00101 buff.write(struct.pack('<I%ss'%length, length, _x))
00102 _x = self.roll_joint
00103 length = len(_x)
00104 if python3 or type(_x) == unicode:
00105 _x = _x.encode('utf-8')
00106 length = len(_x)
00107 buff.write(struct.pack('<I%ss'%length, length, _x))
00108 length = len(self.flex_pid)
00109 buff.write(_struct_I.pack(length))
00110 pattern = '<%sf'%length
00111 buff.write(struct.pack(pattern, *self.flex_pid))
00112 length = len(self.roll_pid)
00113 buff.write(_struct_I.pack(length))
00114 pattern = '<%sf'%length
00115 buff.write(struct.pack(pattern, *self.roll_pid))
00116 length = len(self.arg_name)
00117 buff.write(_struct_I.pack(length))
00118 for val1 in self.arg_name:
00119 length = len(val1)
00120 if python3 or type(val1) == unicode:
00121 val1 = val1.encode('utf-8')
00122 length = len(val1)
00123 buff.write(struct.pack('<I%ss'%length, length, val1))
00124 length = len(self.arg_value)
00125 buff.write(_struct_I.pack(length))
00126 pattern = '<%sf'%length
00127 buff.write(struct.pack(pattern, *self.arg_value))
00128 length = len(self.left_turn.time)
00129 buff.write(_struct_I.pack(length))
00130 pattern = '<%sf'%length
00131 buff.write(struct.pack(pattern, *self.left_turn.time))
00132 length = len(self.left_turn.flex_position)
00133 buff.write(_struct_I.pack(length))
00134 pattern = '<%sf'%length
00135 buff.write(struct.pack(pattern, *self.left_turn.flex_position))
00136 length = len(self.left_turn.flex_effort)
00137 buff.write(_struct_I.pack(length))
00138 pattern = '<%sf'%length
00139 buff.write(struct.pack(pattern, *self.left_turn.flex_effort))
00140 length = len(self.left_turn.flex_cmd)
00141 buff.write(_struct_I.pack(length))
00142 pattern = '<%sf'%length
00143 buff.write(struct.pack(pattern, *self.left_turn.flex_cmd))
00144 length = len(self.left_turn.roll_position)
00145 buff.write(_struct_I.pack(length))
00146 pattern = '<%sf'%length
00147 buff.write(struct.pack(pattern, *self.left_turn.roll_position))
00148 length = len(self.left_turn.roll_effort)
00149 buff.write(_struct_I.pack(length))
00150 pattern = '<%sf'%length
00151 buff.write(struct.pack(pattern, *self.left_turn.roll_effort))
00152 length = len(self.left_turn.roll_cmd)
00153 buff.write(_struct_I.pack(length))
00154 pattern = '<%sf'%length
00155 buff.write(struct.pack(pattern, *self.left_turn.roll_cmd))
00156 length = len(self.left_turn.roll_velocity)
00157 buff.write(_struct_I.pack(length))
00158 pattern = '<%sf'%length
00159 buff.write(struct.pack(pattern, *self.left_turn.roll_velocity))
00160 length = len(self.right_turn.time)
00161 buff.write(_struct_I.pack(length))
00162 pattern = '<%sf'%length
00163 buff.write(struct.pack(pattern, *self.right_turn.time))
00164 length = len(self.right_turn.flex_position)
00165 buff.write(_struct_I.pack(length))
00166 pattern = '<%sf'%length
00167 buff.write(struct.pack(pattern, *self.right_turn.flex_position))
00168 length = len(self.right_turn.flex_effort)
00169 buff.write(_struct_I.pack(length))
00170 pattern = '<%sf'%length
00171 buff.write(struct.pack(pattern, *self.right_turn.flex_effort))
00172 length = len(self.right_turn.flex_cmd)
00173 buff.write(_struct_I.pack(length))
00174 pattern = '<%sf'%length
00175 buff.write(struct.pack(pattern, *self.right_turn.flex_cmd))
00176 length = len(self.right_turn.roll_position)
00177 buff.write(_struct_I.pack(length))
00178 pattern = '<%sf'%length
00179 buff.write(struct.pack(pattern, *self.right_turn.roll_position))
00180 length = len(self.right_turn.roll_effort)
00181 buff.write(_struct_I.pack(length))
00182 pattern = '<%sf'%length
00183 buff.write(struct.pack(pattern, *self.right_turn.roll_effort))
00184 length = len(self.right_turn.roll_cmd)
00185 buff.write(_struct_I.pack(length))
00186 pattern = '<%sf'%length
00187 buff.write(struct.pack(pattern, *self.right_turn.roll_cmd))
00188 length = len(self.right_turn.roll_velocity)
00189 buff.write(_struct_I.pack(length))
00190 pattern = '<%sf'%length
00191 buff.write(struct.pack(pattern, *self.right_turn.roll_velocity))
00192 buff.write(_struct_B.pack(self.timeout))
00193 except struct.error as se: self._check_types(se)
00194 except TypeError as te: self._check_types(te)
00195
00196 def deserialize(self, str):
00197 """
00198 unpack serialized message in str into this message instance
00199 :param str: byte array of serialized message, ``str``
00200 """
00201 try:
00202 if self.left_turn is None:
00203 self.left_turn = joint_qualification_controllers.msg.WristRollTurn()
00204 if self.right_turn is None:
00205 self.right_turn = joint_qualification_controllers.msg.WristRollTurn()
00206 end = 0
00207 start = end
00208 end += 4
00209 (length,) = _struct_I.unpack(str[start:end])
00210 start = end
00211 end += length
00212 if python3:
00213 self.flex_joint = str[start:end].decode('utf-8')
00214 else:
00215 self.flex_joint = str[start:end]
00216 start = end
00217 end += 4
00218 (length,) = _struct_I.unpack(str[start:end])
00219 start = end
00220 end += length
00221 if python3:
00222 self.roll_joint = str[start:end].decode('utf-8')
00223 else:
00224 self.roll_joint = str[start:end]
00225 start = end
00226 end += 4
00227 (length,) = _struct_I.unpack(str[start:end])
00228 pattern = '<%sf'%length
00229 start = end
00230 end += struct.calcsize(pattern)
00231 self.flex_pid = struct.unpack(pattern, str[start:end])
00232 start = end
00233 end += 4
00234 (length,) = _struct_I.unpack(str[start:end])
00235 pattern = '<%sf'%length
00236 start = end
00237 end += struct.calcsize(pattern)
00238 self.roll_pid = struct.unpack(pattern, str[start:end])
00239 start = end
00240 end += 4
00241 (length,) = _struct_I.unpack(str[start:end])
00242 self.arg_name = []
00243 for i in range(0, length):
00244 start = end
00245 end += 4
00246 (length,) = _struct_I.unpack(str[start:end])
00247 start = end
00248 end += length
00249 if python3:
00250 val1 = str[start:end].decode('utf-8')
00251 else:
00252 val1 = str[start:end]
00253 self.arg_name.append(val1)
00254 start = end
00255 end += 4
00256 (length,) = _struct_I.unpack(str[start:end])
00257 pattern = '<%sf'%length
00258 start = end
00259 end += struct.calcsize(pattern)
00260 self.arg_value = struct.unpack(pattern, str[start:end])
00261 start = end
00262 end += 4
00263 (length,) = _struct_I.unpack(str[start:end])
00264 pattern = '<%sf'%length
00265 start = end
00266 end += struct.calcsize(pattern)
00267 self.left_turn.time = struct.unpack(pattern, str[start:end])
00268 start = end
00269 end += 4
00270 (length,) = _struct_I.unpack(str[start:end])
00271 pattern = '<%sf'%length
00272 start = end
00273 end += struct.calcsize(pattern)
00274 self.left_turn.flex_position = struct.unpack(pattern, str[start:end])
00275 start = end
00276 end += 4
00277 (length,) = _struct_I.unpack(str[start:end])
00278 pattern = '<%sf'%length
00279 start = end
00280 end += struct.calcsize(pattern)
00281 self.left_turn.flex_effort = struct.unpack(pattern, str[start:end])
00282 start = end
00283 end += 4
00284 (length,) = _struct_I.unpack(str[start:end])
00285 pattern = '<%sf'%length
00286 start = end
00287 end += struct.calcsize(pattern)
00288 self.left_turn.flex_cmd = struct.unpack(pattern, str[start:end])
00289 start = end
00290 end += 4
00291 (length,) = _struct_I.unpack(str[start:end])
00292 pattern = '<%sf'%length
00293 start = end
00294 end += struct.calcsize(pattern)
00295 self.left_turn.roll_position = struct.unpack(pattern, str[start:end])
00296 start = end
00297 end += 4
00298 (length,) = _struct_I.unpack(str[start:end])
00299 pattern = '<%sf'%length
00300 start = end
00301 end += struct.calcsize(pattern)
00302 self.left_turn.roll_effort = struct.unpack(pattern, str[start:end])
00303 start = end
00304 end += 4
00305 (length,) = _struct_I.unpack(str[start:end])
00306 pattern = '<%sf'%length
00307 start = end
00308 end += struct.calcsize(pattern)
00309 self.left_turn.roll_cmd = struct.unpack(pattern, str[start:end])
00310 start = end
00311 end += 4
00312 (length,) = _struct_I.unpack(str[start:end])
00313 pattern = '<%sf'%length
00314 start = end
00315 end += struct.calcsize(pattern)
00316 self.left_turn.roll_velocity = struct.unpack(pattern, str[start:end])
00317 start = end
00318 end += 4
00319 (length,) = _struct_I.unpack(str[start:end])
00320 pattern = '<%sf'%length
00321 start = end
00322 end += struct.calcsize(pattern)
00323 self.right_turn.time = struct.unpack(pattern, str[start:end])
00324 start = end
00325 end += 4
00326 (length,) = _struct_I.unpack(str[start:end])
00327 pattern = '<%sf'%length
00328 start = end
00329 end += struct.calcsize(pattern)
00330 self.right_turn.flex_position = struct.unpack(pattern, str[start:end])
00331 start = end
00332 end += 4
00333 (length,) = _struct_I.unpack(str[start:end])
00334 pattern = '<%sf'%length
00335 start = end
00336 end += struct.calcsize(pattern)
00337 self.right_turn.flex_effort = struct.unpack(pattern, str[start:end])
00338 start = end
00339 end += 4
00340 (length,) = _struct_I.unpack(str[start:end])
00341 pattern = '<%sf'%length
00342 start = end
00343 end += struct.calcsize(pattern)
00344 self.right_turn.flex_cmd = struct.unpack(pattern, str[start:end])
00345 start = end
00346 end += 4
00347 (length,) = _struct_I.unpack(str[start:end])
00348 pattern = '<%sf'%length
00349 start = end
00350 end += struct.calcsize(pattern)
00351 self.right_turn.roll_position = struct.unpack(pattern, str[start:end])
00352 start = end
00353 end += 4
00354 (length,) = _struct_I.unpack(str[start:end])
00355 pattern = '<%sf'%length
00356 start = end
00357 end += struct.calcsize(pattern)
00358 self.right_turn.roll_effort = struct.unpack(pattern, str[start:end])
00359 start = end
00360 end += 4
00361 (length,) = _struct_I.unpack(str[start:end])
00362 pattern = '<%sf'%length
00363 start = end
00364 end += struct.calcsize(pattern)
00365 self.right_turn.roll_cmd = struct.unpack(pattern, str[start:end])
00366 start = end
00367 end += 4
00368 (length,) = _struct_I.unpack(str[start:end])
00369 pattern = '<%sf'%length
00370 start = end
00371 end += struct.calcsize(pattern)
00372 self.right_turn.roll_velocity = struct.unpack(pattern, str[start:end])
00373 start = end
00374 end += 1
00375 (self.timeout,) = _struct_B.unpack(str[start:end])
00376 self.timeout = bool(self.timeout)
00377 return self
00378 except struct.error as e:
00379 raise genpy.DeserializationError(e)
00380
00381
00382 def serialize_numpy(self, buff, numpy):
00383 """
00384 serialize message with numpy array types into buffer
00385 :param buff: buffer, ``StringIO``
00386 :param numpy: numpy python module
00387 """
00388 try:
00389 _x = self.flex_joint
00390 length = len(_x)
00391 if python3 or type(_x) == unicode:
00392 _x = _x.encode('utf-8')
00393 length = len(_x)
00394 buff.write(struct.pack('<I%ss'%length, length, _x))
00395 _x = self.roll_joint
00396 length = len(_x)
00397 if python3 or type(_x) == unicode:
00398 _x = _x.encode('utf-8')
00399 length = len(_x)
00400 buff.write(struct.pack('<I%ss'%length, length, _x))
00401 length = len(self.flex_pid)
00402 buff.write(_struct_I.pack(length))
00403 pattern = '<%sf'%length
00404 buff.write(self.flex_pid.tostring())
00405 length = len(self.roll_pid)
00406 buff.write(_struct_I.pack(length))
00407 pattern = '<%sf'%length
00408 buff.write(self.roll_pid.tostring())
00409 length = len(self.arg_name)
00410 buff.write(_struct_I.pack(length))
00411 for val1 in self.arg_name:
00412 length = len(val1)
00413 if python3 or type(val1) == unicode:
00414 val1 = val1.encode('utf-8')
00415 length = len(val1)
00416 buff.write(struct.pack('<I%ss'%length, length, val1))
00417 length = len(self.arg_value)
00418 buff.write(_struct_I.pack(length))
00419 pattern = '<%sf'%length
00420 buff.write(self.arg_value.tostring())
00421 length = len(self.left_turn.time)
00422 buff.write(_struct_I.pack(length))
00423 pattern = '<%sf'%length
00424 buff.write(self.left_turn.time.tostring())
00425 length = len(self.left_turn.flex_position)
00426 buff.write(_struct_I.pack(length))
00427 pattern = '<%sf'%length
00428 buff.write(self.left_turn.flex_position.tostring())
00429 length = len(self.left_turn.flex_effort)
00430 buff.write(_struct_I.pack(length))
00431 pattern = '<%sf'%length
00432 buff.write(self.left_turn.flex_effort.tostring())
00433 length = len(self.left_turn.flex_cmd)
00434 buff.write(_struct_I.pack(length))
00435 pattern = '<%sf'%length
00436 buff.write(self.left_turn.flex_cmd.tostring())
00437 length = len(self.left_turn.roll_position)
00438 buff.write(_struct_I.pack(length))
00439 pattern = '<%sf'%length
00440 buff.write(self.left_turn.roll_position.tostring())
00441 length = len(self.left_turn.roll_effort)
00442 buff.write(_struct_I.pack(length))
00443 pattern = '<%sf'%length
00444 buff.write(self.left_turn.roll_effort.tostring())
00445 length = len(self.left_turn.roll_cmd)
00446 buff.write(_struct_I.pack(length))
00447 pattern = '<%sf'%length
00448 buff.write(self.left_turn.roll_cmd.tostring())
00449 length = len(self.left_turn.roll_velocity)
00450 buff.write(_struct_I.pack(length))
00451 pattern = '<%sf'%length
00452 buff.write(self.left_turn.roll_velocity.tostring())
00453 length = len(self.right_turn.time)
00454 buff.write(_struct_I.pack(length))
00455 pattern = '<%sf'%length
00456 buff.write(self.right_turn.time.tostring())
00457 length = len(self.right_turn.flex_position)
00458 buff.write(_struct_I.pack(length))
00459 pattern = '<%sf'%length
00460 buff.write(self.right_turn.flex_position.tostring())
00461 length = len(self.right_turn.flex_effort)
00462 buff.write(_struct_I.pack(length))
00463 pattern = '<%sf'%length
00464 buff.write(self.right_turn.flex_effort.tostring())
00465 length = len(self.right_turn.flex_cmd)
00466 buff.write(_struct_I.pack(length))
00467 pattern = '<%sf'%length
00468 buff.write(self.right_turn.flex_cmd.tostring())
00469 length = len(self.right_turn.roll_position)
00470 buff.write(_struct_I.pack(length))
00471 pattern = '<%sf'%length
00472 buff.write(self.right_turn.roll_position.tostring())
00473 length = len(self.right_turn.roll_effort)
00474 buff.write(_struct_I.pack(length))
00475 pattern = '<%sf'%length
00476 buff.write(self.right_turn.roll_effort.tostring())
00477 length = len(self.right_turn.roll_cmd)
00478 buff.write(_struct_I.pack(length))
00479 pattern = '<%sf'%length
00480 buff.write(self.right_turn.roll_cmd.tostring())
00481 length = len(self.right_turn.roll_velocity)
00482 buff.write(_struct_I.pack(length))
00483 pattern = '<%sf'%length
00484 buff.write(self.right_turn.roll_velocity.tostring())
00485 buff.write(_struct_B.pack(self.timeout))
00486 except struct.error as se: self._check_types(se)
00487 except TypeError as te: self._check_types(te)
00488
00489 def deserialize_numpy(self, str, numpy):
00490 """
00491 unpack serialized message in str into this message instance using numpy for array types
00492 :param str: byte array of serialized message, ``str``
00493 :param numpy: numpy python module
00494 """
00495 try:
00496 if self.left_turn is None:
00497 self.left_turn = joint_qualification_controllers.msg.WristRollTurn()
00498 if self.right_turn is None:
00499 self.right_turn = joint_qualification_controllers.msg.WristRollTurn()
00500 end = 0
00501 start = end
00502 end += 4
00503 (length,) = _struct_I.unpack(str[start:end])
00504 start = end
00505 end += length
00506 if python3:
00507 self.flex_joint = str[start:end].decode('utf-8')
00508 else:
00509 self.flex_joint = 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 self.roll_joint = str[start:end].decode('utf-8')
00517 else:
00518 self.roll_joint = str[start:end]
00519 start = end
00520 end += 4
00521 (length,) = _struct_I.unpack(str[start:end])
00522 pattern = '<%sf'%length
00523 start = end
00524 end += struct.calcsize(pattern)
00525 self.flex_pid = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00526 start = end
00527 end += 4
00528 (length,) = _struct_I.unpack(str[start:end])
00529 pattern = '<%sf'%length
00530 start = end
00531 end += struct.calcsize(pattern)
00532 self.roll_pid = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00533 start = end
00534 end += 4
00535 (length,) = _struct_I.unpack(str[start:end])
00536 self.arg_name = []
00537 for i in range(0, length):
00538 start = end
00539 end += 4
00540 (length,) = _struct_I.unpack(str[start:end])
00541 start = end
00542 end += length
00543 if python3:
00544 val1 = str[start:end].decode('utf-8')
00545 else:
00546 val1 = str[start:end]
00547 self.arg_name.append(val1)
00548 start = end
00549 end += 4
00550 (length,) = _struct_I.unpack(str[start:end])
00551 pattern = '<%sf'%length
00552 start = end
00553 end += struct.calcsize(pattern)
00554 self.arg_value = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00555 start = end
00556 end += 4
00557 (length,) = _struct_I.unpack(str[start:end])
00558 pattern = '<%sf'%length
00559 start = end
00560 end += struct.calcsize(pattern)
00561 self.left_turn.time = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00562 start = end
00563 end += 4
00564 (length,) = _struct_I.unpack(str[start:end])
00565 pattern = '<%sf'%length
00566 start = end
00567 end += struct.calcsize(pattern)
00568 self.left_turn.flex_position = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00569 start = end
00570 end += 4
00571 (length,) = _struct_I.unpack(str[start:end])
00572 pattern = '<%sf'%length
00573 start = end
00574 end += struct.calcsize(pattern)
00575 self.left_turn.flex_effort = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00576 start = end
00577 end += 4
00578 (length,) = _struct_I.unpack(str[start:end])
00579 pattern = '<%sf'%length
00580 start = end
00581 end += struct.calcsize(pattern)
00582 self.left_turn.flex_cmd = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00583 start = end
00584 end += 4
00585 (length,) = _struct_I.unpack(str[start:end])
00586 pattern = '<%sf'%length
00587 start = end
00588 end += struct.calcsize(pattern)
00589 self.left_turn.roll_position = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00590 start = end
00591 end += 4
00592 (length,) = _struct_I.unpack(str[start:end])
00593 pattern = '<%sf'%length
00594 start = end
00595 end += struct.calcsize(pattern)
00596 self.left_turn.roll_effort = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00597 start = end
00598 end += 4
00599 (length,) = _struct_I.unpack(str[start:end])
00600 pattern = '<%sf'%length
00601 start = end
00602 end += struct.calcsize(pattern)
00603 self.left_turn.roll_cmd = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00604 start = end
00605 end += 4
00606 (length,) = _struct_I.unpack(str[start:end])
00607 pattern = '<%sf'%length
00608 start = end
00609 end += struct.calcsize(pattern)
00610 self.left_turn.roll_velocity = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00611 start = end
00612 end += 4
00613 (length,) = _struct_I.unpack(str[start:end])
00614 pattern = '<%sf'%length
00615 start = end
00616 end += struct.calcsize(pattern)
00617 self.right_turn.time = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00618 start = end
00619 end += 4
00620 (length,) = _struct_I.unpack(str[start:end])
00621 pattern = '<%sf'%length
00622 start = end
00623 end += struct.calcsize(pattern)
00624 self.right_turn.flex_position = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00625 start = end
00626 end += 4
00627 (length,) = _struct_I.unpack(str[start:end])
00628 pattern = '<%sf'%length
00629 start = end
00630 end += struct.calcsize(pattern)
00631 self.right_turn.flex_effort = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00632 start = end
00633 end += 4
00634 (length,) = _struct_I.unpack(str[start:end])
00635 pattern = '<%sf'%length
00636 start = end
00637 end += struct.calcsize(pattern)
00638 self.right_turn.flex_cmd = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00639 start = end
00640 end += 4
00641 (length,) = _struct_I.unpack(str[start:end])
00642 pattern = '<%sf'%length
00643 start = end
00644 end += struct.calcsize(pattern)
00645 self.right_turn.roll_position = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00646 start = end
00647 end += 4
00648 (length,) = _struct_I.unpack(str[start:end])
00649 pattern = '<%sf'%length
00650 start = end
00651 end += struct.calcsize(pattern)
00652 self.right_turn.roll_effort = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00653 start = end
00654 end += 4
00655 (length,) = _struct_I.unpack(str[start:end])
00656 pattern = '<%sf'%length
00657 start = end
00658 end += struct.calcsize(pattern)
00659 self.right_turn.roll_cmd = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00660 start = end
00661 end += 4
00662 (length,) = _struct_I.unpack(str[start:end])
00663 pattern = '<%sf'%length
00664 start = end
00665 end += struct.calcsize(pattern)
00666 self.right_turn.roll_velocity = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length)
00667 start = end
00668 end += 1
00669 (self.timeout,) = _struct_B.unpack(str[start:end])
00670 self.timeout = bool(self.timeout)
00671 return self
00672 except struct.error as e:
00673 raise genpy.DeserializationError(e)
00674
00675 _struct_I = genpy.struct_I
00676 _struct_B = struct.Struct("<B")