class documentation

class tagPTPJointParams: (source)

Constructor: tagPTPJointParams.unpack(data)

View In Hierarchy

Represents PTP joint parameters with velocity and acceleration.

Class Method unpack Unpacks a bytes sequence into a tagPTPJointParams object.
Method pack Packs the tagPTPJointParams object into a bytes sequence.
Class Variable acceleration Undocumented
Class Variable velocity Undocumented

Unpacks a bytes sequence into a tagPTPJointParams object.

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

Packs the tagPTPJointParams object into a bytes sequence.

Packs 4 velocity floats and 4 acceleration floats into a byte string. Assumes both velocity and acceleration lists contain exactly 4 float values. Uses little-endian byte order.

Returns
bytesA bytes object representing the packed data (64 bytes).
Raises
ValueErrorIf velocity or acceleration lists do not contain exactly 4 elements.
acceleration: list[float] = (source)

Undocumented

Undocumented