thanks for your help
On 21 Jun., 18:46, mdipierro <mdipie...@cs.depaul.edu> wrote: > You can put it in a function in a module but you still need to import > it and call the function where needed. You can put it a model if all > controller need it or a in a controller if only one needs it. > > On Jun 21, 10:49 am, Doug Warren <doug.war...@gmail.com> wrote: > > > 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?