@@ -288,6 +288,8 @@ def say_text(self, text_to_say):
288288 def language_perceived_text_cb (self , text_heard ):
289289 self .puta .perceived_text (text_heard .data )
290290
291+ # The chat_heard message is of type chatbot/ChatMessage
292+ # from chatbot.msg import ChatMessage
291293 def chat_perceived_text_cb (self , chat_heard ):
292294 if chat_heard .confidence >= 50 :
293295 self .puta .perceived_text (chat_heard .utterance )
@@ -429,7 +431,8 @@ def __init__(self):
429431
430432 # Tell the TTS subsystem what to vocalize
431433 # self.tts_pub = rospy.Publisher("tts", String, queue_size=1)
432- self .tts_pub = rospy .Publisher ("chatbot_speech" , String , queue_size = 1 )
434+ # self.tts_pub = rospy.Publisher("/robot/chatbot_responses", String, queue_size=1)
435+ self .tts_pub = rospy .Publisher ("chatbot_responses" , String , queue_size = 1 )
433436
434437 # Tell the chatbot what sort of affect to apply during
435438 # TTS vocalization. (Huhh???)
@@ -441,6 +444,7 @@ def __init__(self):
441444 self .language_perceived_text_cb )
442445
443446 # Chat infrastructure text.
447+ # from chatbot.msg import ChatMessage
444448 #rospy.Subscriber("/robot/speech", chatbot/ChatMessage,
445449 #rospy.Subscriber("chatbot_speech", chatbot/ChatMessage,
446450 # self.chat_perceived_text_cb)
0 commit comments