我在say.py文件中使用Python SDK制作了一个简单的程序。 Aldebaran Nao通过IP 169.254.150.108与网络连接
from naoqi import ALProxy
tts = ALProxy("ALTextToSpeech", "169.254.150.108", 9559)
tts.say("Hello!")
当我运行它时,我得到以下内容:
Traceback (most recent call last):
File "C:/Python27/TalkTest.py", line 3, in <module>
tts = ALProxy("ALTextToSpeech", "169.254.150.108", 9559)
File "C:\Python27\lib\site-packages\naoqi.py", line 230, in __init__
inaoqi.proxy.__init__(self, args[0], args[1], args[2])
File "C:\Python27\lib\site-packages\inaoqi.py", line 322, in __init__
this = _inaoqi.new_proxy(*args)
RuntimeError: ALNetwork::getModuleByName
答案 0 :(得分:0)
您确定您的机器人和计算机上有相同的naoqi版本吗?
例如,可以从机器人命令行看到NAO版本:
lsb_release -a
然后你需要安装正确的naoqi python:
pynaoqi-蟒-2.7闹起-X.XX-your_platform