cityflow-project / CityFlow

A Multi-Agent Reinforcement Learning Environment for Large Scale City Traffic Scenario
https://cityflow-project.github.io
Apache License 2.0
784 stars 171 forks source link

Segmentation fault when I try to use a roadnet from SUMO #181

Closed josemanuelsannav closed 3 months ago

josemanuelsannav commented 7 months ago

I'm trying to use a roadnet converted from a SUMO roadnet of a real town (using openstreetmap ) . First y save the SUMO archive to a .net.xml. Then I convert it to a .json using the converter.py Finally I create the flow.json and try to use them .

import cityflow eng = cityflow.Engine("config.json") Segmentation fault

TQX177 commented 5 months ago

have you solved the problem? I have the same issue

josemanuelsannav commented 4 months ago

sry , i don't remember, but I think that it depends of the shape of the roadnet or something. Try to create a 2x2 roadnet using cityflow instead of SUMO. If it works is a problem in the process of transforming SUMO to cityflow and loading it into the project.