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.
A wrapper function of Cycle.js run function for Tabletface robot.
-
main A function that takes incoming streams as
sources
and returns outgoing streams as sinks. By default, the following action components- FacialExpressionAction
- AudioPlayerAction
- SpeechbubbleAction
- SpeechSynthesisAction
- SpeechRecognitionAction
are can used used like drivers, i.e., catch incoming message via
sources.FacialExpressionAction
and send outgoing message viareturn { 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.