コード例 #1
0
 def initProxies():
     #Warning: The use of these default proxies is deprecated.
     global ALMemory
     global ALMotion
     global ALFrameManager
     global ALLeds
     global ALLogger
     global ALSensors
     try:
         ALMemory = inaoqi.getMemoryProxy()
     except:
         ALMemory = ALProxy("ALMemory")
     try:
         ALFrameManager = ALProxy("ALFrameManager")
     except:
         print "No proxy to ALFrameManager"
     try:
         ALMotion = ALProxy("ALMotion")
     except:
         print "No proxy to ALMotion"
     try:
         ALLeds = ALProxy("ALLeds")
     except:
         pass
     try:
         ALLogger = ALProxy("ALLogger")
     except:
         print "No proxy to ALLogger"
     try:
         ALSensors = ALProxy("ALSensors")
     except:
         pass
コード例 #2
0
ファイル: naoqi.py プロジェクト: inge91/Tweedejaars-project
 def initProxies():
     global ALMemory
     global ALMotion
     global ALFrameManager
     global ALLeds
     global ALLogger
     global ALSensors
     try:
             ALMemory = inaoqi.getMemoryProxy()
     except:
             ALMemory = ALProxy("ALMemory")
     try:
         ALFrameManager = ALProxy("ALFrameManager")
     except:
         print "No proxy to ALFrameManager"
     try:
         ALMotion = ALProxy("ALMotion")
     except:
         print "No proxy to ALMotion"
     try:
         ALLeds = ALProxy("ALLeds")
     except:
         pass
     try:
         ALLogger = ALProxy("ALLogger")
     except:
         print "No proxy to ALLogger"
     try:
         ALSensors = ALProxy("ALSensors")
     except:
         pass
コード例 #3
0
ファイル: naoqi.py プロジェクト: grahamrobbo/demos
 def initProxies():
     #Warning: The use of these default proxies is deprecated.
     global ALMemory
     global ALMotion
     global ALFrameManager
     global ALLeds
     global ALLogger
     global ALSensors
     try:
         ALMemory = inaoqi.getMemoryProxy()
     except:
         ALMemory = ALProxy("ALMemory")
     try:
         ALFrameManager = ALProxy("ALFrameManager")
     except:
         print "No proxy to ALFrameManager"
     try:
         ALMotion = ALProxy("ALMotion")
     except:
         print "No proxy to ALMotion"
     try:
         ALLeds = ALProxy("ALLeds")
     except:
         pass
     try:
         ALLogger = ALProxy("ALLogger")
     except:
         print "No proxy to ALLogger"
     try:
         ALSensors = ALProxy("ALSensors")
     except:
         pass