talkback example code

Hi

In my environment (just installed and updated everything, 25. Aug 2014) in the example code I had to comment out this line in the def heard section.

#      data = msg_ear_recognized.data[0]
 
Then it worked (more or less) as it never picked up my "spin" (always selected "back"???) command and I could not get a repeated recognition of my "hello".
 
Juerg
GroG's picture

Hello and welcome juerg

Hello and welcome juerg .. Yes, the Python scripts will need refactoring, recently the Python service got smarter and can hand call-backs in a more recognizable way. Try this: [[talkBack.py]]

https://github.com/MyRobotLab/myrobotlab/blob/master/src/resource/Python/examples/talkBack.py