Changes between Version 20 and Version 21 of en/ProgrammingRobotsCourse/PepperApi


Ignore:
Timestamp:
Mar 30, 2020, 11:41:35 AM (3 years ago)
Author:
xrambous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • en/ProgrammingRobotsCourse/PepperApi

    v20 v21  
    114114https://nlp.fi.muni.cz/projekty/pepper/videos/kordisbot.mp4
    115115
     116See `kordisbot` app for detailed example. To enable recognition of all stops and street names, special concepts were defined (`Ulice-concept.top` and `Zastavky-concept.top`) with the list of accepted names.
     117
     118Timetable search is running as a service, see `scripts/kordisbot_service.py`. On user question, dialog just calls specific function, eg.
     119
     120{{{
     121u:("[řekni ukaž zobraz najdi] {mi} [odjezdy spoje] ze zastávky _~station_name na zastávku _~station_name")
     122    ^call(DialogKordisbot.say_answer2($1,$2,1))
     123}}}
     124
     125Service functions `say_answer1` and `say_answer2` are directly generating robot answer sentence.
     126
     127Connection map is displayed on the tablet, using usual map from idos.cz with the connection parameters:
     128
     129{{{
     130self.s.ALTabletService.showWebview("http://mapy.idos.cz/idsjmk/?f={}&t={}&date={}&time={}&submit=true".format(
     131fromStop, toStop, date, time))
     132}}}
    116133
    117134=== installing application to the robot