class documentation

class tagPTPCoordinateParams: (source)

Constructor: tagPTPCoordinateParams.unpack(data)

View In Hierarchy

Represents PTP coordinate parameters with velocity and acceleration.

Class Method unpack Unpacks a bytes sequence into a tagPTPCoordinateParams object.
Method pack Packs the tagPTPCoordinateParams object into a bytes sequence.
Class Variable rAcceleration Undocumented
Class Variable rVelocity Undocumented
Class Variable xyzAcceleration Undocumented
Class Variable xyzVelocity Undocumented

Unpacks a bytes sequence into a tagPTPCoordinateParams object.

Parameters
data:bytesThe bytes to unpack, expected to be 32 bytes (4 doubles).
Returns
tagPTPCoordinateParamsA tagPTPCoordinateParams object.
Raises
struct.errorIf the input bytes are not the expected size (32 bytes).
def pack(self) -> bytes: (source)

Packs the tagPTPCoordinateParams object into a bytes sequence.

Packs the xyzVelocity, rVelocity, xyzAcceleration, and rAcceleration (floats) into a byte string. Uses little-endian byte order.

Returns
bytesA bytes object representing the packed data (32 bytes).
rAcceleration: float = (source)

Undocumented

rVelocity: float = (source)

Undocumented

xyzAcceleration: float = (source)

Undocumented

xyzVelocity: float = (source)

Undocumented