Skip to main content

CommonRoad Dataset Converter

Project description

Dataset Converters

This repository contains converters from different datasets to CommonRoad scenarios using a common commandline interface. Currently, we support:

Install

pip install commonroad-dataset-converter

Development setup

This project uses poetry. Please follow the instructions to create the virtual development environment.

Usage

Type following command for help

crconvert --help
crconvert #dataset --help

A conversion can be started from the dataset_converters directory by executing
crconvert dataset input_dir output_dir --num-time-steps #NUMTIMESTEPSSCENARIO --num-planning-problems #NUMPLANNINGPROBLEMS --num-processes #NUMPROCESSES --keep-ego --obstacle-start-at-zero.

In the following the different parameters are explained:

  • dataset: The dataset which should be convertered. Currently, parameters highd, ind, or INTERACTION are supported. This is a mandatory parameter.
  • input_dir: The directory of the original dataset. This is a mandatory parameter.
  • output_dir: The directory where the generated CommonRoad scenarios should be stored. This is a mandatory parameter.
  • num_time_steps_scenario: The maximum length the CommonRoad scenario in time steps (int) . This is an optional parameter. The default length is 150 time steps.
  • num_planning_problems: The number of planning problems per CommonRoad scenario (int). This is an optional parameter. The default is 1 planning problem.
  • keep_ego: Flag to keep vehicles used for planning problems in the scenario. This is an optional flag.
  • obstacle_start_at_zero: Indicator if the initial state of an obstacle has to start at time step zero. This is an optional flag. If not set, the generated CommonRoad scenarios will contain predictions start at nonzero time step.
  • num_processes: The number of parallel processes to run the conversion in order to speed up the conversion. This is an optional parameter. The default is 1
  • inD_all: (inD) Indicator if convert one CommonRoad scenario for each valid vehicle from inD dataset, since it has less recordings available, note that if enabled, num_time_steps_scenario becomes the minimal number of time steps of one CommonRoad scenario. This is an optional flag.
  • downsample: (highD) Downsample the trajectories every N steps, works only for highD converter.
  • downsample: (highD) Decrease dt by n * dt. (int) This is an optional flag, default is 1 (no downsampling).
  • num_vertices: (highD) Number of lane waypoints. (int).This is an optional parameter. The default is 10 lane waypoints.
  • shoulder: (highD) Adds shoulder lane to map. (bool).This is an optional parameter. The default is False.
  • keep_direction: (highD) Prevents rotating the upper driving direction (right to left) by PI. (bool). This is an optional parameter. The default is False so that scenario direction corresponds for all scenarios.
  • routability_check: (inD) Validity check 'Routability' (int) of the scenario+planning problem from start to goal. 2: strict enforcement of at least one route 0: no checks, default is 2, strict. requires commonroad-route-planner to be installed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

commonroad_dataset_converter-2022.1.1.tar.gz (457.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

commonroad_dataset_converter-2022.1.1-py3-none-any.whl (506.0 kB view details)

Uploaded Python 3

File details

Details for the file commonroad_dataset_converter-2022.1.1.tar.gz.

File metadata

File hashes

Hashes for commonroad_dataset_converter-2022.1.1.tar.gz
Algorithm Hash digest
SHA256 73b6afe2159ee178d2e5e464e9e9cc2f495942f4549531fdcb0e1977a8f9906a
MD5 b77ea7de025d564dde1a512b3cdefd1d
BLAKE2b-256 2a7a560889fbab89eec0e17d77287b27986f0185ab60f29caf42a902a91f3aa7

See more details on using hashes here.

File details

Details for the file commonroad_dataset_converter-2022.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for commonroad_dataset_converter-2022.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c727b70c88b95d75f87e11e755bc382311cd2838bed8075669933605499b2edb
MD5 b95b93483b979a8ba5d49d23194766f9
BLAKE2b-256 07b951d87fdcc4860aa86ce88d9b63982b89c616822d9aafb4604c4d2afe815f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page