hi together,

i need help. i need an init to initialize some code like this
(importing apis etc.):

import time
        from naoqi import ALBroker
        from naoqi import ALProxy

        RoboIP   = "192.168.0.101"
        RoboPORT = 9559

        BrokerIP   = "127.0.0.1"
        BrokerPORT = 9999


        # with broker
        broker =
ALBroker("pythonBroker",BrokerIP,BrokerPORT,RoboIP,RoboPORT)

        motionProxy = ALProxy ("ALMotion")
        behaviorProxy = ALProxy ("ALBehaviorManager")

        motionProxy.setStiffnesses('Body', 1.0)

        behaviours = behaviorProxy.getInstalledBehaviors()


in some controller i need access of some variables like broker or the
robot-ip.
how can i solute this?

Reply via email to