大家好, 下面是我的代码片段,我在标题中提到了上述错误。在这种情况下我可以帮助我,我有错误。所有帮助表示赞赏。谢谢
import yarp;
import numpy;
import math;
import time;
from yarp import IGazeControl
props = yarp.Property()
props.put("device","remote_controlboard")
props.put("local","/client/head")
props.put("remote","/icubSim/head")
print("Server Running")
yarp.Network.init()
if yarp.Network.checkNetwork() != True:
print ("[error] Please try running yarp server")
quit()
igaze2=yarp.IGazeControl
fp = [None]*3
fp[0] = -0.50
fp[1]=+0.0+0.1*math.cos(2.0*math.pi*0.1*1)
fp[2]=+0.3+0.1*math.sin(2.0*math.pi*0.1*2)
print("value of fp is",fp)
igaze2.lookAtFixationPointSync(fp)
igaze2.waitMotionDone()