pylabrobot.paa.kx2.KX2.add_emcy_callback#

KX2.add_emcy_callback(cb: Callable[[int, EmcyFrame, str, bool], None]) → None#

Register a callback fired on every (non-suppressed) EMCY frame.

Callback signature: cb(node_id, frame, description, disable_motors). Always invoked on the asyncio loop thread captured in setup(). Exceptions raised by the callback are logged and swallowed so one bad handler can’t poison the rest.

Parameters:

cb (Callable[[int, EmcyFrame, str, bool], None])

Return type:

None