KeyError: <ObstacleType.CAR: 'car'>

Hi,

When I ran the simulate_with_planner function with the scenario ZAM_Zip-1_5_I-1-1, I met an error named KeyError: <ObstacleType.CAR: 'car'>.

This error can be traced back to line 588 of /sumocr/interface/sumo_simulation.py. I am using sumocr==2022.1.

Thanks in advance!

Regards,
Shaohang

Hi Shaohang,

there have been recent updates in the CommonRoad-IO, thus other packages would have to be updated accordingly (like the obstacle type in your case). You can maybe quickly fix this by changing the error key to something that doesn’t break for now.

Hi Edmond,

Thanks for your reply! Could you please indicate which versions of commonroad-io and sumocr are compatible with the scenarios? I am using

python=3.9
commonroad-io=2022.1
sumocr=2022.1

but they seem not to work well :frowning:

Regards,
Shaohang