Skip to main content

Automatic labeling of CommonRoad scenarios.

Project description

CommonRoad Automatic Scenario Labeling

PyPI pyversions PyPI version fury.io PyPI download week PyPI download month PyPI license

Automatically assign correct labels to CommonRoad scenarios and check whether existing tags are correct.

The full documentation of the API and introductory examples can be found at cps.pages.gitlab.lrz.de/commonroad/automatic-scenario-labeling.

Quick Start

Installation

$ pip install commonroad-labeling

Usage Example

from pathlib import Path

from commonroad_labeling.common.general import get_detected_tags_by_file

# specify a directory and detect tags
tags_by_file = get_detected_tags_by_file(Path.cwd().joinpath("path", "to", "directory"))

Sketched Functionality

  1. Load scenario using commonroad-io.
  2. Read all currently assigned scenario tags.
  3. Determine which tags are correct.
    1. Using formalized rules.
    2. Using traffic rule monitor.
    3. Using criticality metrics.
  4. Check whether the tags are consistent with the previously assigned tags. → Warning if necessary
  5. Overwrite scenario with corrected tags.

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_labeling-2025.1.2.tar.gz (27.5 kB view details)

Uploaded Source

Built Distribution

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

commonroad_labeling-2025.1.2-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

Details for the file commonroad_labeling-2025.1.2.tar.gz.

File metadata

  • Download URL: commonroad_labeling-2025.1.2.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.19 Linux/5.15.0-87-generic

File hashes

Hashes for commonroad_labeling-2025.1.2.tar.gz
Algorithm Hash digest
SHA256 56ebbd6d009561b8d006abe341fbf93352b29b69ee1c8114127f66c93ee9661c
MD5 9b0d82b8a0862041e60b96c4d0c16fe0
BLAKE2b-256 074b2adf8cbb11b3471716f48c01a5dfe4068a364aaf7e98f26d649be90cc3a9

See more details on using hashes here.

File details

Details for the file commonroad_labeling-2025.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for commonroad_labeling-2025.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 660bc8c3d8046703b1d27fd28957a9f0b56c5594c7a1d8d93d31943c818a9662
MD5 e8bd121ed2bdbe02cbe86a29c1f483f6
BLAKE2b-256 1bea0c1ed79838db7e30b94a1d581957c4e57d4ac4381134a60db86c97db662a

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