# ALMemory variable where the ALVisionLogo modules # outputs its results memValue = "/BURST/Vision/BallX" # Create a proxy to ALMemory try: memoryProxy = ALProxy("ALMemory", IP, PORT) except Exception, e: print "Error when creating memory proxy:" print str(e) exit(1) visionProxy.setCamera(1) # 0 - top camera, 1 - bottom camera TimeInterpolation = 0.05 motionProxy.setJointStiffness('HeadYaw',1.0) #,TimeInterpolation motionProxy.gotoAngle("HeadYaw",0.23,TimeInterpolation*10,1) #0.23 #0.31 visionProxy.getBall() time.sleep(1.0) #motionProxy.gotoAngle("HeadYaw",-0.15,TimeInterpolation*10,1) #0.23 #print (10*motion.TO_RAD) #exit(0) while True: #for i in range(0, 1): #time.sleep(0.1) #print(i) #visionProxy.getBallRemote() visionProxy.getBall()