vvv = "vivae.ros.simulatorControlsServer.ControlsServer" # actual Vivae simulator, provies services # create group of nodes g = NodeGroup("vivae", True); # create default group of nodes g.addNC(vvv, "vivaeSimulator", "java"); # run the simulator.. g.addNC(modem,"modem","modem") # add default modem.. g.startGroup() # start group normally ################################## modem = g.getModem() time.sleep(3) # if the process is native, it takes longer time to init the services !! simulator = NeuralModule('VivaeTest',modem) # create NeuralModule which is able to add/remove agents Controls = simulator.getControls(); # this starts the control services.. Controls.setVisible(False); many=net.add(simulator) # add it to the Nengo network #Controls.loadMap('data/scenarios/arena2.svg') #Controls.loadMap('data/scenarios/ushape.svg') Controls.loadMap('data/scenarios/arena1.svg') #Controls.loadMap('data/scenarios/manyAgents.svg') Controls.addAgent('a',4) Controls.addAgent('b',18) Controls.addAgent('c',18,30,50) """ Controls.addAgent('d') Controls.addAgent('e',8) Controls.addAgent('f',20,10,50)
vvv = "vivae.ros.simulatorControlsServer.ControlsServer" # actual Vivae simulator, provies services # create group of nodes g = NodeGroup("vivae", True); # create default group of nodes g.addNC(vvv, "vivaeSimulator", "java"); # run the simulator.. g.addNC(modem,"modem","modem") # add default modem.. g.startGroup() # start group normally ################################## modem = g.getModem() time.sleep(3) # if the process is native, it takes longer time to init the services !! simulator = NeuralModule('VivaeTest',modem) # create NeuralModule which is able to add/remove agents Controls = simulator.getControls(); # this starts the control services.. Controls.setVisible(True); many=net.add(simulator) # add it to the Nengo network #Controls.loadMap('data/scenarios/test/arena2.svg') #Controls.loadMap('data/scenarios/test/oneagent.svg') Controls.loadMap('data/scenarios/test/walls.svg') #Controls.loadMap('data/scenarios/ushape.svg') #Controls.loadMap('data/scenarios/arena1.svg') #Controls.loadMap('data/scenarios/manyAgents.svg') """ Notes about agents: (see screenshot to this script)