Exemple #1
0
try:
    sampleProxy = ALProxy("vision", IP, PORT)
except Exception, e:
    print "Error when creating vision proxy:"
    print str(e)
    exit(1)

time.sleep(1)

print "Registering to VIM"
sampleProxy.registerToVIM()

print "done"
####
# Save image in remote mode
print "1"
sampleProxy.saveImageRemote("/var/tmp/img")  # /var/volatile/log/myBeautifullPictureRemote
print "2"
time.sleep(1)
a = sampleProxy.getBallAreaRemote()

print "3"
# sampleProxy.saveImage("/var/tmp/myBeautifullPictureLocal") #/var/volatile/log/myBeautifullPictureLocal

time.sleep(2)
print "4"
sampleProxy.unRegisterFromVIM()
print "5"

print "end of gvm_useGVMsample python script"