class documentation
class tagPTPCoordinateParams: (source)
Constructor: tagPTPCoordinateParams.unpack(data)
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 | r |
Undocumented |
Class Variable | r |
Undocumented |
Class Variable | xyz |
Undocumented |
Class Variable | xyz |
Undocumented |
Unpacks a bytes sequence into a tagPTPCoordinateParams object.
Parameters | |
data:bytes | The bytes to unpack, expected to be 32 bytes (4 doubles). |
Returns | |
tagPTPCoordinateParams | A tagPTPCoordinateParams object. |
Raises | |
struct.error | If the input bytes are not the expected size (32 bytes). |
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 | |
bytes | A bytes object representing the packed data (32 bytes). |