How jsantiago318/sumo-str-sim works
1. This repository is a SUMO-based traffic simulation asset set, not an application with source code. Its architecture is centered on map input, network generation, simulation scenarios, detector instrumentation, and exported results.
2. The base geographic input lives in mapa_original/, which contains the original road map as mapa-pr-2.gz and an OSM source file for editing. This is the upstream reference for all network variants.
3. dtl_modif/ is a modified scenario built from a local map file (mapa-pr-2.osm) plus SUMO network artifacts. It represents one network branch used for simulation after manual editing or conversion.
4. pureba/ is a self-contained test scenario. It includes a network definition (net.net.xml), network edit config (net.netecfg), route file (net.rou.xml / sumoNet.rou.xml), detector definitions, and a SUMO config (sumoNet.sumocfg). This folder looks like the main sandbox for verifying detector placement and output behavior.
5. abr-28/ is the most complete simulation package. It contains the SUMO config, network files, additional network/route/detector artifacts, and a large set of detector-specific configuration files. This looks like the primary experiment set with multiple measurement points and output captures.
6. The core SUMO network layer appears in files such as simulador.net.xml, sumo_sim.net.xml, and net.net.xml, with matching route files (*.rou.xml) and SUMO launcher files (*.sumocfg). These are the main inputs that SUMO consumes at runtime.
7. Network editing is supported via NetEdit configuration files like sim_net.netecfg and net.netecfg. These tie the OSM/map source to generated SUMO network files and suggest the workflow is: edit/import map, generate network, then run simulation.
8. Detector infrastructure is a major subsystem. pureba/ has named detectors such as detector_entrada.xml, detector_final.xml, and detector_recta.xml. abr-28/sumo_config/ has many detector placement variants (entrada_*, antes_*, despues_*, conteo*, de1_simulador.xml, etc.), implying multiple counting/observation points along the road network.
9. The output/csv/ subtree under abr-28/sumo_config/ is the results boundary. It contains per-detector XML/CSV outputs generated by SUMO, showing the flow from network + routes + detectors into analysis-ready measurement files.
10. The repository’s implicit data flow is: OSM/map source in mapa_original/ or dtl_modif/ → network generation/editing via NetEdit configs → route and detector definitions → SUMO execution through *.sumocfg → detector outputs in output/csv/.
11. There are multiple scenario variants rather than one unified pipeline. pureba/ is a test harness, dtl_modif/ is a modified map/network branch, and abr-28/ is a richer scenario with many detector and output files. An architecture diagram should show these as parallel scenario bundles sharing the same SUMO tooling pattern.
12. External tooling that matters here is SUMO itself and NetEdit. The repository is organized around those tools’ file formats, so the key boundary is between static simulation assets in the repo and the SUMO runtime that reads them and emits detector-based results.
Main entry points: sumoNet.sumocfg SUMO launch · simulador.sumocfg SUMO launch · sumo_sim.sumocfg SUMO launch · net.net.xml Test net
Components 20
Map inputs
Upstream geographic sources used to derive SUMO networks.
- Original map · Compressed upstream road map reference.
mapa_original/mapa-pr-2.gz
pureba
Self-contained sandbox scenario for network and detector verification.
- Test net · Sandbox network definition for the pureba scenario.
pureba/net.net.xml - NetEdit cfg · Network editing configuration for the test scenario.
pureba/net.netecfg - Routes · Vehicle route definitions for the test scenario.
pureba/net.rou.xml - Detectors · Detector definitions used to verify placement and output behavior.
pureba/detector.xml - SUMO launch · Main SUMO launcher for the pureba scenario.
pureba/sumoNet.sumocfg - Aux routes · Additional route variant paired with the test scenario.
pureba/sumoNet.rou.xml
dtl_modif
Modified map branch with generated SUMO artifacts.
- Editable OSM · Local OSM map used for manual editing and network generation.
dtl_modif/mapa-pr-2.osm - Modified net · Generated network for the modified map branch.
dtl_modif/sumo_sim.net.xml - NetEdit cfg · Network editing configuration tying the edited OSM source to SUMO network artifacts.
dtl_modif/net.netecfg - Additions · Additional simulation elements for the modified branch.
dtl_modif/sumo_sim.add.xml - Routes · Route definitions for the modified simulation branch.
dtl_modif/sumo_sim.rou.xml - SUMO launch · Launcher for the modified map simulation.
dtl_modif/sumo_sim.sumocfg
abr-28
Primary experiment bundle with many detector variants and outputs.
- Main net · Primary network used by the abr-28 experiment set.
abr-28/sumo_config/simulador.net.xml - NetEdit cfg · Network editing configuration for the primary experiment set.
abr-28/sumo_config/sim_net.netecfg - Detector set · Central detector definition bundle for the abr-28 scenario.
abr-28/sumo_config/simulador.det.xml - Additions · Supplementary simulation elements for the abr-28 scenario.
abr-28/sumo_config/simulador.add.xml - Routes · Vehicle routes for the abr-28 experiment.
abr-28/sumo_config/simulador.rou.xml - SUMO launch · Main SUMO launcher for the abr-28 experiment set.
abr-28/sumo_config/simulador.sumocfg - CSV outputs · Detector output boundary containing per-detector XML/CSV artifacts.
abr-28/sumo_config/output/csv
Connections 21
- Original map → NetEdit cfg: base map · Original map informs the generated network workflow.
- Original map → NetEdit cfg: base map · Upstream map input for the main experiment network.
- Editable OSM → NetEdit cfg: edited map · Local OSM edit is the source for the modified network branch.
- NetEdit cfg → Test net: generate · NetEdit configuration produces or updates the network.
- Test net → Routes: run with · Simulation network consumes route definitions.
- Detectors → SUMO launch: instrument · Detector definitions are loaded by the simulation config.
- Routes → SUMO launch: execute · Routes are launched through the SUMO config.
- Test net → SUMO launch: network · Simulation config references the network.
- Aux routes → SUMO launch: variant · Additional route variant can be used in the sandbox.
- NetEdit cfg → Modified net: generate · NetEdit config links edited OSM input to the network artifact.
- Additions → SUMO launch: augment · Additional elements are included in the simulation launch.
- Routes → SUMO launch: execute · Routes are consumed by the modified scenario launcher.
- Modified net → SUMO launch: network · Simulation config references the modified network.
- NetEdit cfg → Main net: generate · NetEdit config supports the primary network artifact.
- Detector set → SUMO launch: instrument · Detector bundle is loaded by the simulation launcher.
- Additions → SUMO launch: augment · Supplementary simulation elements are included at runtime.
- Routes → SUMO launch: execute · Route definitions drive the main experiment run.
- Main net → SUMO launch: network · Simulation config references the main network.
- SUMO launch → CSV outputs: emit · SUMO produces detector-level output artifacts in the CSV boundary.
- SUMO launch → CSV outputs: same pattern · Both scenarios follow the same run-to-output pattern.
- SUMO launch → CSV outputs: same pattern · Modified branch uses the same simulation-to-output flow.