예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
    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)
예제 #4
0
 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)