Listen to humans when not doing something else Version:1.0.
More...
Listen to humans when not doing something else Version:1.0.
- Author
- Grégoire Pointeau greg..nosp@m.poin.nosp@m.teau@.nosp@m.gmai.nosp@m.l.com, Jordi-Ysard Puigbò jordi.nosp@m.ysar.nosp@m.d@gma.nosp@m.il.c.nosp@m.om, Tobias Fischer t.fis.nosp@m.cher.nosp@m.@impe.nosp@m.rial.nosp@m..ac.u.nosp@m.k
- Copyright
- Released under the terms of the GNU GPL v2.0
Description
Module that loads a default grammar for the speech recognizer in the background. This grammar can be safely interrupted by other modules that require parallel access to speech recognition functionalities. This module parses any order given by the human and triggers the corresponding behaviour in behaviorManager.
Parameters
- – name : name of the module
- – period : change the update rate of this module
Input Ports
- /ears/rpc [Bottle] [default carrier:tcp]: Response port. Supported commands:
- help
- ['quit']: Closes ears
- ['listen'] ['on'/'off'/offShouldWait] : Turns default grammar from the speech recognizer on / off / off (safely, wait for another recognition)
Output Ports
- /ears/speech:o [Bottle] [default carrier:tcp]: Communication port to speech recognizer to interrupt the speech recognizer.
- /ears/behavior:o [Bottle] [default carrier:tcp]: Communication port to behaviorManager.
Services
◆ ears
Definition at line 14 of file ears.h.
◆ close()
◆ configure()
bool ears::configure |
( |
yarp::os::ResourceFinder & |
rf | ) |
|
◆ getPeriod()
double ears::getPeriod |
( |
| ) |
|
|
inline |
◆ interruptModule()
bool ears::interruptModule |
( |
| ) |
|
◆ respond()
bool ears::respond |
( |
const yarp::os::Bottle & |
cmd, |
|
|
yarp::os::Bottle & |
reply |
|
) |
| |
◆ updateModule()
bool ears::updateModule |
( |
| ) |
|
◆ bShouldListen
Whether ears should listen to speechRecognizer.
Can be set via RPC port.
Definition at line 22 of file ears.h.
◆ iCub
Mutex indicating whether ears is listening to speechRecognizer.
Definition at line 21 of file ears.h.
◆ MainGrammar
std::string ears::MainGrammar |
|
protected |
Name of grammar to be loaded.
Definition at line 23 of file ears.h.
◆ period
◆ portToBehavior
yarp::os::Port ears::portToBehavior |
|
protected |
Port to behaviorManager.
Definition at line 19 of file ears.h.
◆ portToSpeechRecognizer
yarp::os::Port ears::portToSpeechRecognizer |
|
protected |
Port to speechRecognizer.
Definition at line 20 of file ears.h.
◆ rpc
Response port.
Definition at line 18 of file ears.h.