feathersdk.robot.message_router Module

class feathersdk.robot.message_router.MessageRouter(robot)

Bases: object

Helps to route socket messages to the appropriate handlers.

CommsManager should have already been initialized before this class is instantiated. This will set up the callbacks for the CommsManager to route messages to the appropriate handlers.

Parameters:

robot (FeatherRobot)

actuators_by_id: dict[int, Actuator[TActuatorConfig]]

A dictionary of actuators keyed by their unique identifier to help functions route messages to actuators.