Getting Started
In general, this converter supports many use cases, including generating scenarios with:
- one planning problem starting at k=0 or randomly generated from recorded vehicles in the data
- multiple planning problems in the same scenario for cooperative driving.
- adding history and future data to obstacles outside the scenario time window
- seeding for reproducibility
- ...
This page gives an overview of commonly used functionalities.
Steps
pip install commonroad-dataset-converter
- Download a supported dataset you want to use
- You can either use some frequently used commands from this page or review the full command list to customize the output
Ground Truth Trajectories
The vehicle that was used to generate the planning problem (ego vehicle) is excluded by default, so it does not interfere with the planner, but you may wish to include it via --keep-ego and remove it in your own code so that you have a real-world ground truth trajectory.
Recommended Settings for Frequent Use Cases
We recommend the following settings for frequent use cases:
Classic Motion Planning
For motion planning, we recommend generating one planning problem per scenario and force it to start at k=0. The ego vehicle is removed. This is achieved using the default configurations of our tool, i.e.:
crconvert INPUT_DIR OUTPUT_DIR COMMAND
Use cases include the CommonRoad-Reactive-Planner, CommonRoad-Reach, the Frenetix-Planner, and our and other people's research on classical motion planning.
Deep-Learning-based Motion Planning
If you want to do learning-based motion planning, you might want to use the same configuration as for classic motion planning but keep the ego vehicle trajectory to use as ground truth:
crconvert --keep-ego INPUT_DIR OUTPUT_DIR COMMAND
Use cases include the CommonRoad-Diffusion-Planning toolbox and our and other people's research on deep learning in motion planning.
One Scenario per Car
To create one scenario per car in a recording, spanning the respective car's entire lifetime, run:
crconvert --all-vehicles INPUT_DIR OUTPUT_DIR COMMAND
For a more detailed example, see Converting Scenarios for Learning.
Next, see the full CLI command list, the supported datasets, or how scenarios are selected.
Faster Dataset Generation
You can run mutliple converter processes using --num-processes.