def command_cb(self): clickedButtonName = self._widget.sender().text() for key in self.commands.keys(): if (self.commands[key] == clickedButtonName): qWarning('Sending speech command: '+ key) command = Command() command.command = key self.speech_cmd_publisher.publish(command)
def command_cb(self): clickedButtonName = self._widget.sender().text() for key in self.commands.keys(): if (self.commands[key] == clickedButtonName): qWarning('Sending speech command: ' + key) command = Command() command.command = key self.speech_cmd_publisher.publish(command)
def receiveSphinxData(self, data): recognizedStr = data.data recognizedCommand = Command.UNRECOGNIZED for commandStr in self.allCommands: if (recognizedStr == commandStr): recognizedCommand = commandStr rospy.loginfo('Received command:' + recognizedCommand) command = Command() command.command = recognizedCommand self.commandOutput.publish(command)
def receiveSphinxData(self,data): recognizedStr = data.data recognizedCommand = Command.UNRECOGNIZED for commandStr in self.allCommands: if (recognizedStr == commandStr): recognizedCommand = commandStr rospy.loginfo('Received command:' + recognizedCommand) command = Command() command.command = recognizedCommand self.commandOutput.publish(command)