@cycle-robot-drivers/run
runRobotProgram
function that creates Cycle.js drivers and action components for creating Tabletface robot applications.
Try the demo at StackBlitz!
Note that this package was tested with Chrome browser (>= 65.0.3325.181) only.
API
runTabletRobotFaceApp(main, drivers)
A wrapper function of Cycle.js run function for Tabletface robot.
Params:
-
main A function that takes incoming streams as sources
and returns outgoing streams as sinks. By default, the following action components
are can used used like drivers, i.e., catch incoming message via
sources.FacialExpressionAction
and send outgoing message via
return { FacialExpressionAction: {goal: xs.of({...}), cancel: xs.never()} };
, as well as six drivers listed below.
-
drivers A collection of Cycle.js drivers. By default, drivers
is set to an object containing:
drivers.