Changes between Version 22 and Version 23 of en/ProgrammingRobotsCourse/PepperApi


Ignore:
Timestamp:
Mar 30, 2020, 12:00:47 PM (3 years ago)
Author:
xrambous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • en/ProgrammingRobotsCourse/PepperApi

    v22 v23  
    146146https://nlp.fi.muni.cz/projekty/pepper/videos/titulky.mp4
    147147
     148Subtitle service is running as HTML app on the tablet and receiving updates via Javascript messaging API. See `dialog_subtitles` app, specifically `dialog_subtitles/html/js/`.
     149
     150HTML app can subscribe to various robot API events:
     151
     152{{{
     153RobotUtils.subscribeToALMemoryEvent("SpeechDetected", onSpeechDetected);
     154RobotUtils.subscribeToALMemoryEvent("ALSpeechRecognition/Status", onSpeechStatus);
     155RobotUtils.subscribeToALMemoryEvent("WordRecognizedAndGrammar", onWordRecognized);
     156}}}
     157
     158And update the webpage when events are triggered, eg. display recognized word:
     159
     160{{{
     161function onWordRecognized(value)
     162{
     163    document.getElementById("word").innerHTML = value;
     164}
     165}}}
     166
    148167==== Access timetable API
    149168https://nlp.fi.muni.cz/projekty/pepper/videos/kordisbot.mp4