Omega-Prime: Data Model, Data Format and Python Library for Handling Ground Truth Traffic Data
Project description
Omega-Prime: Data Model, Data Format and Python Library for Handling Ground Truth Road Traffic Data
Data Model, Format and Python Library for ground truth road traffic data containing information on dynamic objects, map and environmental factors optimized for representing urban traffic. The repository contains:
Data Model and Specification
see Data Model & Specification
- 🌍 Data Model: What signals exist and how these are defined.
- 🧾 Data Format Specification: How to exchange and store those signals.
Python Library
- 🔨 Create omega-prime files from many sources (see ./docs/notebooks/tutorial.ipynb):
- ASAM OSI GroundTruth trace (e.g., output of esmini)
- Table of moving object data (e.g., csv data)
- ASAM OpenDRIVE map
- LevelXData datasets through lxd-io
- Extend yourself by subclassing DatasetConverter
- Use omega-prime-trajdata to convert motion prediction datasets into omega-prime
- 🗺️ Map Association: Associate Object Location with Lanes from OpenDRIVE or OSI Maps (see ./docs/notebooks/tutorial_locator.ipynb)
- 📺 Plotting of data: interactive top view plots using altair
- ✅ Validation of data: check if your data conforms to the omega-prime specification (e.g., correct yaw) using pandera
- 📐 Interpolation of data: bring your data into a fixed frequency
- 📈 Metrics: compute interaction metrics like PET, TTC, THW (see ./docs/notebooks/tutorial_metrics.ipynb)
- Predicted and observed timegaps based on driving tubes (see ./omega_prime/metrics.py)
- 2D-birds-eye-view visibility with omega-prime-visibility
- 🚀 Fast Processing directly on DataFrames using polars, polars-st
- ⌨️ CLI to convert, validate and visualize omega-prime files
ROS 2 Conversion
- Tooling for conversion from ROS 2 bag-files containing perception_msgs::ObjectList messages to omega-prime MCAP is available in
tools/ros2_conversion/. - A Dockerfile and usage instructions are provided explaining how to run the export end-to-end.
The data model and format utilize ASAM OpenDRIVE and ASAM Open-Simulation-Interface GroundTruth messages. omega-prime sets requirements on presence and quality of ASAM OSI GroundTruth messages and ASAM OpenDRIVE files and defines a file format for the exchange and storage of these.
Omega-Prime is the successor of the OMEGAFormat. It has the benefit that its definition is directly based on the established standards ASAM OSI and ASAM OpenDRIVE and carries over the data quality requirements and the data tooling from OMEGAFormat. Therefore, it should be easier to incorporate omega-prime into existing workflows and tooling.
To learn more about the example data read example_files/README.md. Example data was taken and created from esmini.
Installation
pip install omega-prime
Usage
A detailed introduction to the features and usage can be found in ./docs/notebooks/tutorial.ipynb
Create an omega-prime file from an OSI GroundTruth message trace and an OpenDRIVE map:
import omega_prime
r = omega_prime.Recording.from_file('example_files/pedestrian.osi', map_path='example_files/fabriksgatan.xodr')
r.to_mcap('example.mcap')
If you want to create an OSI trace on your own in python, check out the python library betterosi.
Read and plot an omega-prime file:
r = omega_prime.Recording.from_file('example.mcap')
ax = r.plot()
Convert Existing Datasets to omega-prime
LevelXData
You can convert data from LevelXData to omega-prime. Under the hood lxd-io is used to perform the conversion.
from omega_prime.converters import LxdConverter
converter = LxdConverter('./exiD-dataset-v2.0', './exiD-as-omega-prime', n_workers=4)
# convert the dataset and store the omega-prime files in the new directory
converter.convert()
# access Recordings directly without storing them
iterator_of_recordings = converter.yield_recordings()
or with omega-prime from-lxd ./exiD-dataset-v2.0 ./exiD-as-omega-prime --n-workers=4.
Tested with exiD-v2.0, inD-v1.1, highD-v1.0 (highD does not provide an ASAM OpenDRIVE map).
File Format
Based on MCAP, ASAM OSI and ASAM OpenDRIVE the ASAM OSI GroundTruth messages and ASAM OpenDRIVE map are packaged as shown in the following figure.
Acknowledgements
This package is developed as part of the SYNERGIES project.
Funded by the European Union. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or European Climate, Infrastructure and Environment Executive Agency (CINEA). Neither the European Union nor the granting authority can be held responsible for them.
Notice
[!IMPORTANT] The project is open-sourced and maintained by the Institute for Automotive Engineering (ika) at RWTH Aachen University. We cover a wide variety of research topics within our Vehicle Intelligence & Automated Driving domain. If you would like to learn more about how we can support your automated driving or robotics efforts, feel free to reach out to us! :email: opensource@ika.rwth-aachen.de
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file omega_prime-0.2.1.tar.gz.
File metadata
- Download URL: omega_prime-0.2.1.tar.gz
- Upload date:
- Size: 8.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4073931647e8f5a563d893d1066c4cbd529f502bb7df119c5f0554ba68cd0a9c
|
|
| MD5 |
b25757ffc7d7fd53f17a21a29db65d3a
|
|
| BLAKE2b-256 |
113a5a4f5662b6fb9b8cb9108cb0c477c458f9a393dbdabdf74f8c3929b65da3
|
Provenance
The following attestation bundles were made for omega_prime-0.2.1.tar.gz:
Publisher:
release.yml on ika-rwth-aachen/omega-prime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
omega_prime-0.2.1.tar.gz -
Subject digest:
4073931647e8f5a563d893d1066c4cbd529f502bb7df119c5f0554ba68cd0a9c - Sigstore transparency entry: 973158224
- Sigstore integration time:
-
Permalink:
ika-rwth-aachen/omega-prime@814a022b0d3632e28f3c803a4cbe1b9199ccfc27 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/ika-rwth-aachen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@814a022b0d3632e28f3c803a4cbe1b9199ccfc27 -
Trigger Event:
push
-
Statement type:
File details
Details for the file omega_prime-0.2.1-py3-none-any.whl.
File metadata
- Download URL: omega_prime-0.2.1-py3-none-any.whl
- Upload date:
- Size: 60.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0b20100f597d4d9d1b6cf0db5ab21b7567d2ebb0dd821cd2de2896ccc5b52c0
|
|
| MD5 |
a3d63fdc755b9cbb9c4169be88a43501
|
|
| BLAKE2b-256 |
275fd56a3a799973ef9fcb4680b45514c3385457f7d2ec733fda09920d082427
|
Provenance
The following attestation bundles were made for omega_prime-0.2.1-py3-none-any.whl:
Publisher:
release.yml on ika-rwth-aachen/omega-prime
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
omega_prime-0.2.1-py3-none-any.whl -
Subject digest:
c0b20100f597d4d9d1b6cf0db5ab21b7567d2ebb0dd821cd2de2896ccc5b52c0 - Sigstore transparency entry: 973158229
- Sigstore integration time:
-
Permalink:
ika-rwth-aachen/omega-prime@814a022b0d3632e28f3c803a4cbe1b9199ccfc27 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/ika-rwth-aachen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@814a022b0d3632e28f3c803a4cbe1b9199ccfc27 -
Trigger Event:
push
-
Statement type: