-
Notifications
You must be signed in to change notification settings - Fork 181
faq 108384550
by Thure Beyer on 2017-03-11 14:38:20
Hi,
for my MsC. Thesis I would like to export the motion data from my agents as .GPX (timed GPS Data) to simulate the creation of such and later use them in another simulation.
Is that possible? I already searched a couple forums but couldn't find an answer.
Thank you very much,
regards!
by Johan W. Joubert on 2017-03-13 09:58:05
My answer would be 'no, not possible out-of-the-box'. The queue-based simulation means that an agent enters a link, but does not really move along the length of the link. Rather, the agent is placed inside a waiting queue, and can leave that queue (if it is in front of the queue) only at the time determined by the queue simulation's LinkSpeedCalculator
(or thereafter, depending on congestion in the form of agents stuck in the queue in front of this current agent).
You only have two (known) time stamps per link: one associated with the linkEnterEvent
and one with the linkLeaveEvent
. What both the visualisers (OTFVis and Via) do, if I'm correct, is simply interpolating the position of the vehicle on the link based on the time difference between those two time points.
So, out-of-the-box MATSim does not check (or know) where the vehicle is along a link. But you could do it yourself—similar to the visualisers—to interpolate a vehicle's position along the link from the events file. Then you could even add some random jitter to reflect the GPS accuracy.
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq