robot.interfaces package

Module contents

Interfaces mirroring the Java interfaces (snake_case in Python).

This module defines protocol-like interfaces and enums to preserve the design from the Java implementation while remaining Pythonic.

class robot.interfaces.IMqttHandler(*args, **kwargs)

Bases: Protocol

handle_subscription(r, m)
Return type:

None

class robot.interfaces.IRobotState(*args, **kwargs)

Bases: Protocol

communication_interrupt(msg)
Return type:

None

loop()
Return type:

None

reset()
Return type:

None

sensor_interrupt(sensor, value)
Return type:

None

start()
Return type:

None

state: RobotState
stop()
Return type:

None

class robot.interfaces.RobotState(*values)

Bases: Enum

BEGIN = 'BEGIN'
RUN = 'RUN'
WAIT = 'WAIT'