class documentation
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:bytes | The bytes to unpack, expected to be 64 bytes (8 doubles). |
Returns | |
tagPTPJointParams | A tagPTPJointParams object. |
Raises | |
struct.error | If the input bytes are not the expected size (64 bytes). |
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 | |
bytes | A bytes object representing the packed data (64 bytes). |
Raises | |
ValueError | If velocity or acceleration lists do not contain exactly 4 elements. |