Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Modifying the SUMO network at runtime

Hello,
there is currently no support for modifying the network except for changing lane permissions.
Adding nodes and edges at runtime would be quite difficult since you would have to replicate all the procesing steps of netconvert (e.g. to compute intersection rules) as wells as all the steps that are done by the simulation when loading a network (some of them interdependent and to be done in the right order).
Modifying elevation at runtime would probable be doable since this part of the network data has no interdependencies with other structures and you could borrow code from traci.polygon.setShape.

An alternative might be to save the simulation state (--save-state) and then restart the simulation with a modified but compatible network and the saved state.

regards,
Jakob



Am Di., 5. März 2019 um 17:07 Uhr schrieb Linwood Hudson <vtkougrr@xxxxxxxxx>:
Hello all, 

My project performs several pre-processing steps to OSM files prior to running them through netconvert and launching SUMO. The most time-consuming is using Osmosis to apply elevation data to each node, as is required for my simulation purposes. I'm looking into ways to speed up the initialization of my SUMO simulation and potentially deferring expensive operations. All of these expensive operations involved modifying the network structure in some way (e.g. applying elevation data to nodes, adding additional nodes/edges in places that don't have good coverage in OSM, etc.). 

I would like to load a base OSM immediately to get my simulation running, then layer in elevation data and more refined nodes/edges later when the longer-running processes complete. There doesn't appear to be any support for modifying the network at runtime using TRACI. At a minimum just editing the elevation values of nodes, but potentially adding new nodes and lanes. Are there major technical challenges to editing the network at runtime? Even just changing the elevation values? 

If there are any options I could consider please let me know.

Thanks!
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top