class documentation

class tagJOGJointParams: (source)

Constructor: tagJOGJointParams.unpack(data)

View In Hierarchy

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:bytesThe bytes to unpack, expected to be 64 bytes (8 doubles).
Returns
tagJOGJointParamsA tagJOGJointParams object.
Raises
struct.errorIf the input bytes are not the expected size (64 bytes).
def pack(self) -> bytes: (source)

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
bytesA bytes object representing the packed data (64 bytes).
Raises
ValueErrorIf velocity or acceleration lists do not contain exactly 4 elements.
acceleration: list[float] = (source)

Undocumented

Undocumented