A Cycle.js run() wrapper, runRobotProgram, for Tabletface robot
npm install @cycle-robot-drivers/runrunRobotProgram 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.
#### Params:
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 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:
* DOM
* TabletFace
* AudioPlayer
* SpeechSynthesis
* SpeechRecognition
* PoseDetection
drivers.