class documentation

class tagPTPLParams: (source)

Constructor: tagPTPLParams.unpack(data)

View In Hierarchy

Represents PTP linear parameters with velocity and acceleration.

Class Method unpack Unpacks a bytes sequence into a tagPTPLParams object.
Method pack Packs the tagPTPLParams object into a bytes sequence.
Class Variable acceleration Undocumented
Class Variable velocity Undocumented
def unpack(cls, data: bytes) -> tagPTPLParams: (source)

Unpacks a bytes sequence into a tagPTPLParams object.

Parameters
data:bytesThe bytes to unpack, expected to be 16 bytes (2 doubles).
Returns
tagPTPLParamsA tagPTPLParams object.
Raises
struct.errorIf the input bytes are not the expected size (16 bytes).
def pack(self) -> bytes: (source)

Packs the tagPTPLParams object into a bytes sequence.

Packs the velocity and acceleration (floats) into a byte string. Uses little-endian byte order.

Returns
bytesA bytes object representing the packed data (16 bytes).
acceleration: float = (source)

Undocumented

Undocumented