encs-humanoid / speech-and-hearing

speech and hearing systems for the IEEE ENCS Humanoid Robot Project
1 stars 1 forks source link

Allow interrupting the robot's speech through the Humanoid Control Android app #5

Open danielmcd opened 8 years ago

danielmcd commented 8 years ago

Change the Talk button to Interrupt while the robot is speaking.

Add a service call to the speak node to kill speaking in progress.

Sometimes the robot can get carried away on a long speech and it is desirable to interrupt. By changing the Talk button on the Android app to Interrupt, the user would have the ability to indicate that the robot should stop speaking. When the Interrupt button is pressed, it would make a ROS service call to the speak node to interrupt the speech. The service call would kill any active espeak process that was started by the node.

danielmcd commented 8 years ago

Modify Talk button to Interrupt while speaking – send /control message when pressed Modify speak_node to handle interrupt message on /control topic