获得ALVisionToolbox上的一个代理
在一些初始化步骤之后,我们首先实例化一个到ALVisionToolbox模块的代理。
# This test demonstrates how to use the ALVisionToolbox module. # Note that you might not have this module depending on your distribution # # - We first instantiate a proxy to the ALVisionToolbox module # Note that this module should be loaded on the robot's NAOqi. import os import sys import time from naoqi import ALProxy # Replace here with your robot's IP address IP = "10.0.252.91" PORT = 9559 # Create a proxy to ALVisionToolbox try: visionToolboxProxy = ALProxy("ALVisionToolbox", IP, PORT) except Exception, e: print "Error when creating vision toolbox proxy:" print str(e) exit(1)