class documentation

class tagJOGCmd: (source)

Constructor: tagJOGCmd.unpack(data)

View In Hierarchy

Represents a JOG command.

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

Unpacks a bytes sequence into a tagJOGCmd object.

Parameters
data:bytesThe bytes to unpack, expected to be 2 bytes (2 uint8s).
Returns
tagJOGCmdA tagJOGCmd object.
Raises
struct.errorIf the input bytes are not the expected size (2 bytes).
ValueErrorIf the unpacked byte values do not correspond to valid enum members.
def pack(self) -> bytes: (source)

Packs the tagJOGCmd object into a bytes sequence.

Packs the isJoint (JogMode value) and cmd (JogCmd value) into a byte string. Uses little-endian byte order.

Returns
bytesA bytes object representing the packed data (2 bytes).

Undocumented

Undocumented