-
Notifications
You must be signed in to change notification settings - Fork 181
faq 298450945
by Jimmy Joseph on 2018-07-02 13:44:19
Hi All,
I am currently trying to make adaptive(LaemmerSignals) work as shown in the example https://github.com/matsim-vsp/vsp-playgrounds/blob/master/tthunig/src/main/java/scenarios/illustrative/singleCrossing/SingleCrossingScenario.java
I can get the example to work but I am trying to make it work on my own network and plans.
The changes I made were:
config.network().setInputFile("/home/odin/Github/MscProject/Aberdeen9_simple/network.xml");
-
config.plans().setInputFile("/home/odin/Github/MscProject/Aberdeen9_simple/plans.xml");
Which loads my network instead of using manually created one as shown in the script.
Running this works fine. I can get OTFVis to show the network and agents carrying out their plans.
But when i "createSignals", I get "Unable to create injector, see the following errors".
As far as I know, the signalsdata and groups are generated but during the execution of the simulation something is going wrong.
I have attached my full log file and the .java file I'm editing.
A singleCrossing object is created
defineController() called:
Which calls defineScenario()
Calling defineConfig(), where network and plans are loaded.
Calling createSignals(), which creates singalgroups and data
Calling createFullyAdaptiveSingalControl()
the returned controller object is then run() which produces the NullPointer/Injection Error. If I don't call createSignals() it works fine.
Many Thanks in advance.
by Nico Kuehnel on 2018-07-02 15:28:27
Hey Jimmy,
did you also adjust the signals to your network? Every signal refers to a specific link/lane id. Might be a reason it crashes.
Best
Nico
by Jimmy Joseph on 2018-07-02 21:42:30
I think I narrowed it further down to this line having some effect:
controler.addOverridingModule(signalsModule);
signalsModule is of Class CombinedSignalsModule(not found on signals-javadocs, the closest is signals.controler.SignalsModule)
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq