The normal way seem to be to add that code to a model file, but it will be visible/executed for all controllers in the application.
On Mon, Jun 21, 2010 at 5:34 AM, pk <peter.kirch...@youngdesigners.de> wrote: > 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? >