class documentation
Represents JOG joint parameters with velocity and acceleration.
| Class Method | unpack |
Unpacks a bytes sequence into a tagJOGJointParams object. |
| Method | pack |
Packs the tagJOGJointParams object into a bytes sequence. |
| Class Variable | acceleration |
Undocumented |
| Class Variable | velocity |
Undocumented |
Unpacks a bytes sequence into a tagJOGJointParams object.
| Parameters | |
data:bytes | The bytes to unpack, expected to be 64 bytes (8 doubles). |
| Returns | |
tagJOGJointParams | A tagJOGJointParams object. |
| Raises | |
struct.error | If the input bytes are not the expected size (64 bytes). |
Packs the tagJOGJointParams 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. |