abstreet/sumo
Vinzent Steinberg fd3b0e2a14
Fix compilation failures and most clippy warnings (#642)
* abstutil: Fix compilation failure

* map_gui: Fix compilation

* traffic_signal_data: Fix compilation failure

* map_model: Fix compilation failure

* abstutil: Fix doctests

* abstio: Fix most clippy warnings

* abstutil: Fix most clippy warnings

* collisions: Fix clippy warning

* convert_osm: Fix clippy warnings

* sim: Fix most clippy warnings

* geom: Fix clippy warnings

* kml: Fix clippy warnings

* map_model: Fix most clippy warnings

* fifteen_min: Fix clippy warnings

* game: Fix many clippy warnings

* Disable some noisy clippy warnings

* headless: Fix clippy warnings

* importer: Fix clippy warnings

* map_editor: Fix clippy warnings

* map_gui: Fix clippy warnings

* osm_viewer: Fix clippy warnings

* parking_mapper: Fix most clippy warnings

* popdat: Fix clippy warnings

* santa: Fix clippy warnings

* sumo: Fix clippy warnings

* traffic_seitan: Fix clippy warning

* updater: Fix clippy warnings

* widgetry: Fix clippy warnings

* tests: Fix some clippy warnings

* Fix compilation on stable Rust

* Simplify unwrapping

* Make use of `Entry` more readable

* Fix formatting

* Fix code that was broken in the refactoring

* Apply cargo +stable fmt

* Fix code that was broken in the refactoring, second try

* Remove `Default` impls that are equivalent to `new`

* Remove obsolete clippy wrapper

* Avoid turbofish

* Prefer `unwrap_or_else` over allowing `clippy::or_fun_call`

* Remove redundant `into_iter`

* Fix typo

* Prefer `&& false` over commenting code out

* Fix some clippy warnings

Co-authored-by: Dustin Carlino <dabreegster@gmail.com>
2021-05-14 08:32:56 -07:00
..
src Fix compilation failures and most clippy warnings (#642) 2021-05-14 08:32:56 -07:00
Cargo.toml Upgrade most dependencies 2021-02-03 18:13:06 -08:00
README.md The grand country split. #326 2021-02-13 15:45:59 -08:00

SUMO interoperability

The purpose of this crate is to explore possible interactions between A/B Street and SUMO. Some of the ideas:

  • Convert SUMO networks to ABST maps, to make use of SUMO's traffic signal heuristics and junction joining
  • Convert SUMO demand to ABST scenarios, to leverage all of the existing demand generation techniques
  • Prototype a new SUMO frontend by gluing ABST UI code to TraCI

Usage

A quick SUMO primer. To convert an OSM file into a SUMO network:

netconvert --osm-files data/input/us/seattle/osm/montlake.osm --output.street-names --keep-edges.components 1 -o montlake.net.xml

To generate random trips and compute the routes for them:

/usr/share/sumo/tools/randomTrips.py -n montlake.net.xml -r routes.xml

To simulate these in SUMO:

sumo-gui -r routes.xml -n montlake.net.xml

To convert the network into an ABST map:

cargo run --bin sumo montlake.net.xml

To view it in ABST:

cargo run --bin game -- --dev data/system/zz/sumo/maps/montlake.bin