-
Notifications
You must be signed in to change notification settings - Fork 181
faq 109352342
by Jacqueline Aspäck on 2017-05-11 14:23:15
We would like to add lanes to our network. We have already created the network-file as well as the lane-definition-file. Does there exist any visualization in OTFVIS, where we can evaluate agents’ behaviors on the each lane? In addition we want to observe if e.g. vehicles on a right-hand turn lane may overtake right if vehicle on the lane straightforward are stagnant.
Is there any kind of documentation of all parameters of the lane-definition-file?
E.g. is this a correct assumption of alignment:
-1 …. left-hand turn lane
0 …. lane straightforward
1 ….. right-hand turn lane
by Dominik Grether on 2017-05-15 22:18:32
Jacky, let me split this:
1.) OTVis Visualization: tutorial.fixedTimeSignals.VisualizeSignalScenarioWithLanes works on my machine. The example aims at visualization of traffic signals and lanes, but should also work with signals enabled, only.
2.) When the code was written, a lane was a FIFO-queue (like QueueWithBuffer, , there was no overtaking. This is a long time ago. Please ask in a separate question to augment audience of discussion.
3.) Parameters of lane-definition file: There is little stand-alone documentation on lanes. Most of it you should find in MATSim's queue model documentation and the signals contrib documentation.
4.) alignment: Yes. The visualization may only work with cartesian coordinates, origin in the lower left of the bounding box.
by Theresa Thunig on 2017-05-15 22:43:32
Dear Jacky,
yes there is: Just use for example the class OTFVisWithSignals to start your simulation (with the method playScenario) or look for the elements that are added to the server there. (You can start RunVisualizeSignalScenarioWithLanesGUI to see how it looks. It might be that the agents are a bit shifted compared to the lane, but you can definately see agents on different lanes beside each other.)
Please ask again if anything remains unclear.
There is no technical documentation except the javadoc yet. But yes, -1 is for a left turn, 1 for a right turn, see e.g. the javadoc of class Lane. The alignment is only used for visualization, not for simulation.
Theresa
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq