class documentation
Undocumented
| Class Method | unpack |
Unpacks a bytes sequence into a tagPose object. |
| Method | pack |
Packs the tagPose object into a bytes sequence. |
| Class Variable | joint |
Undocumented |
| Class Variable | r |
Undocumented |
| Class Variable | x |
Undocumented |
| Class Variable | y |
Undocumented |
| Class Variable | z |
Undocumented |
Unpacks a bytes sequence into a tagPose object.
| Parameters | |
data:bytes | The bytes to unpack, expected to be 64 bytes (8 doubles). |
| Returns | |
tagPose | A tagPose object. |
| Raises | |
struct.error | If the input bytes are not the expected size (64 bytes). |
Packs the tagPose object into a bytes sequence.
Packs 4 floats (x, y, z, r) and 4 joint angles (floats) into a byte string. Assumes jointAngle contains exactly 4 float values. Uses little-endian byte order.
| Returns | |
bytes | A bytes object representing the packed data. |
| Raises | |
ValueError | If jointAngle does not contain exactly 4 elements. |