Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Import real time traffic data into Sumo

The purpose of routeSampler is to create a route file for loading into sumo:
i.e. <route-files value="passenger.sampled.rou.xml"/>
I recommend doing a tutorial on sumo usage to clear up these misunderstandings:
https://sumo.dlr.de/docs/Tutorials/Hello_SUMO.html#configuration
It may also help to look at the files that belong to the 2020 tutorial: http://sumo.dlr.de/daily/sumo2020_tutorial.zip



Am Fr., 18. März 2022 um 17:49 Uhr schrieb Petros Br <petrosbrimos@xxxxxxxxx>:
Thank you so much for your help!
I am in the last step and still, i deal with an error, unable to fix. I ran routeSampler and got all the output files. Now, based on your 2020 tutorial video on You Tube i tried to run the simulation:

Configuration file based on your tutorial
image.png

Unfortunately when I run this i get this message. No option with the name output-file exists.
image.png

I 'd really appreciate if you have any recommendations about this error. Still your help is much appreciated. 

Sincerely,
Petros


On Fri, 18 Mar 2022 at 13:55, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
After running the routeSampler tool to obtain new routes, the edgeData file is no longer needed.
You do not need to load it into your simulation.

Am Fr., 18. März 2022 um 12:47 Uhr schrieb Petros Br <petrosbrimos@xxxxxxxxx>:
Thank you very much for your answer!

I am trying the routeSampler method you proposed but when i run the final scenario it keeps warning for errors : Error: attribute 'entered' is not declared for element 'edge'
I put all my effort for fixing this, i suppose something goes wrong with the edge_data file. 
Edge counts xml file.
image.png
Editing the config file, adding the file of edges count.
image.png


On Thu, 17 Mar 2022 at 09:58, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
Hello,

I'd recommend routeSampler.py (https://sumo.dlr.de/docs/Tools/Turns.html#routesamplerpy) instead of the calibrator approach because it is simpler and more robust (The page https://sumo.dlr.de/docs/Simulation/Calibrator.html#building_a_scenario_without_knowledge_of_routes_based_on_flow_measurements was a bit outdated).

There is currently not tool in sumo that maps lon,lat data into the required edgeData input format.
For small scenarios, you could try convert the lon,lat data into sumo-POIs (i.e. with https://sumo.dlr.de/docs/Tools/Xml.html#csv2xmlpy) and then define the needed edgeData input file visually in netedit.
For larger scenarios, you need to write your own import routine but you can use python libraries provided by sumo to automate the mapping (https://sumo.dlr.de/docs/Geo-Coordinates.html)

regards,
Jakob


Am Mi., 16. März 2022 um 22:17 Uhr schrieb Petros Br <petrosbrimos@xxxxxxxxx>:
Hello,

My question might be generic, but i 'd appreciate a little help or just a guidance of my next moves. I' ve downoladed raw data from traffic sensors located in the city of Athens. Those sensors provide information about hourly flow (counted cars within an hour) and average speed. I also have a document with the long and lat of every sensor. Those files are at csv format. Is there any way of importing those data into Sumo in order to get visualization of traffic flows in a specific date? I think the sumo tutorials suggest calibrators. 

Thanks for your time.

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top