class documentation
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 |
Unpacks a bytes sequence into a tagPTPLParams object.
| Parameters | |
data:bytes | The bytes to unpack, expected to be 16 bytes (2 doubles). |
| Returns | |
tagPTPLParams | A tagPTPLParams object. |
| Raises | |
struct.error | If the input bytes are not the expected size (16 bytes). |
Packs the tagPTPLParams object into a bytes sequence.
Packs the velocity and acceleration (floats) into a byte string. Uses little-endian byte order.
| Returns | |
bytes | A bytes object representing the packed data (16 bytes). |