Carla and SUMO co-simulation on Windows

Hello everyone,

I’m new on Carla and for a project I need to run a Carla/SUMO co simulation.
Everything works on the Python API when I’m not using Sumo.
However, when I started to follow the tutorial for Sumo, Python gives me that : `usage: [-h] [–carla-host H] [–carla-port P]
[–sumo-host H] [–sumo-port P] [–sumo-gui]
[–step-length STEP_LENGTH]
[–sync-vehicle-lights] [–sync-vehicle-color]
[–tls-manager {none,sumo,carla}] [–debug]
sumo_cfg_file error: the following arguments are required: sumo_cfg_file
An exception has occurred, use %tb to see the full traceback.

SystemExit: 2`

Can someone help ?


You need to provide a sumo config file to the script. There are some example files for some of the maps in the folder Co-Simulation/Sumo/examples. For example, for Town04, you can use the following command:

python --sumo-gui examples/Town04.sumocfg