Getting a proxy to ALVisionToolbox

After some initialization steps, we first instantiate a proxy to the ALVisionToolbox module.

# 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)





Copyright © 2010 Aldebaran-Robotics - All rights reserved