pycozmo.frame

Cozmo protocol frame representation and encoding and decoding.

Classes

Frame(type_id, first_seq, seq, ack, pkts) Cozmo protocol frame.
class pycozmo.frame.Frame(type_id: pycozmo.protocol_ast.FrameType, first_seq: int, seq: int, ack: int, pkts: List[pycozmo.protocol_base.Packet])

Bases: object

Cozmo protocol frame.

ack
first_seq
classmethod from_bytes(buffer: bytes) → pycozmo.frame.Frame
classmethod from_reader(reader: pycozmo.protocol_utils.BinaryReader) → pycozmo.frame.Frame
pkts
seq
to_bytes() → bytes
to_writer(writer: pycozmo.protocol_utils.BinaryWriter) → None
type