class documentation

class tagPose: (source)

Constructor: tagPose.unpack(data)

View In Hierarchy

Undocumented

Class Method unpack Unpacks a bytes sequence into a tagPose object.
Method pack Packs the tagPose object into a bytes sequence.
Class Variable jointAngle Undocumented
Class Variable r Undocumented
Class Variable x Undocumented
Class Variable y Undocumented
Class Variable z Undocumented
def unpack(cls, data: bytes) -> tagPose: (source)

Unpacks a bytes sequence into a tagPose object.

Parameters
data:bytesThe bytes to unpack, expected to be 64 bytes (8 doubles).
Returns
tagPoseA tagPose object.
Raises
struct.errorIf the input bytes are not the expected size (64 bytes).
def pack(self) -> bytes: (source)

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
bytesA bytes object representing the packed data.
Raises
ValueErrorIf jointAngle does not contain exactly 4 elements.
jointAngle: list[float] = (source)

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented