class documentation

class tagJOGLParams: (source)

Constructor: tagJOGLParams.unpack(data)

View In Hierarchy

Represents JOG linear parameters with velocity and acceleration.

Class Method unpack Unpacks a bytes sequence into a tagJOGLParams object.
Method pack Packs the tagJOGLParams object into a bytes sequence.
Class Variable acceleration Undocumented
Class Variable velocity Undocumented
def unpack(cls, data: bytes) -> tagJOGLParams: (source)

Unpacks a bytes sequence into a tagJOGLParams object.

Parameters
data:bytesThe bytes to unpack, expected to be 16 bytes (2 doubles).
Returns
tagJOGLParamsA tagJOGLParams object.
Raises
struct.errorIf the input bytes are not the expected size (16 bytes).
def pack(self) -> bytes: (source)

Packs the tagJOGLParams object into a bytes sequence.

Packs the velocity and acceleration (floats) into a byte string. Uses little-endian byte order.

Returns
bytesA bytes object representing the packed data (16 bytes).
acceleration: float = (source)

Undocumented

Undocumented