今天我在我的新笔记本上开始了 Choregraphe,我发现了一个我还没有看到的错误。代码运行良好。
这是代码:
import sys
import time
from naoqi import ALProxy
def main(robotIP):
PORT = 5058
try:
motionProxy = ALProxy("ALMotion",robotIP,PORT)
except Exception,e:
print "Could not create proxy to ALMotion"
print "Error was: "
sys.exit(1)
motionProxy.setStiffnesses("Head", 1.0)
names = "HeadPitch"
angleLists = 0.349
timeLists = 1.0
isAbsolute = True
motionProxy.angleInterpolation(names,angleLists,timeLists,isAbsolute)
time.sleep(1.0)
motionProxy.setStiffnesses("Head",0.0)
if __name__ == "__main__":
robotIP = "192.168.0.20"
main(robotIP)
此代码应按角度移动头部间距。是的,它奏效了。问题是:为什么代码向我显示此错误?
用户类评估失败并出现错误:1
我尝试重新输入代码或尝试在代码开头点击“ENTER”(有时在 C# 上有效)但没有任何效果。
有人可以给我一个建议该怎么做吗?