How to import downloaded scenarios with several .xml files?

Hello,

In the tutorials, the way to import scenarios is:

file_path = “ZAM_Tutorial-1_1_T-1.xml”

scenario, planning_problem_set = CommonRoadFileReader(file_path).open()

This works fine with downloaded scenarios as single .xml file. But how can I import downloaded scenarios as .zip files which have several .xml files inside?

The cr.xml file inside the zip file has similar structure with normal .xml files, but it only contains information of first two points of the trajectory.

Thanks for your reply!

Best,
Xinshi

The .zip scenarios are interactive scenarios where the predictions/trajectories of other traffic participants are missing.
You have to use the corresponding sumo-interface package.
A tutorial can be found here.

1 Like