Datasets:
Upload automatum_data_crossing — Sample_Data, docs, examples, archive
Browse files- .gitattributes +1 -0
- README.md +275 -0
- Sample_Data/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2.html +0 -0
- Sample_Data/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2/dynamicWorld.json +3 -0
- Sample_Data/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2/img/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2_centerImg_thumb.jpg +3 -0
- Sample_Data/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2/img/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2_map.jpg +3 -0
- Sample_Data/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2/img/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2_trajectories.jpg +3 -0
- Sample_Data/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2/img/kpis.json +10 -0
- Sample_Data/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2/staticWorld.xodr +301 -0
- automatum.dataset.html +0 -0
- automatum_data_crossing.zip +3 -0
- doc/VehicleDynamics.png +3 -0
- doc/automatum_logo.png +3 -0
- doc/icon_crossing.jpg +3 -0
- doc/illustration.jpg +3 -0
- doc/lane_distance.png +3 -0
- doc/map_duenzlau.jpg +3 -0
- doc/map_gaimersheim.jpg +3 -0
- doc/point_to_lane_assignement_Sans.png +3 -0
- doc/static_world_fig_02.png +3 -0
- doc/trajectories_duenzlau.jpg +3 -0
- doc/trajectories_gaimersheim.jpg +3 -0
- doc/ttc.png +3 -0
- example_scripts/.DS_Store +0 -0
- example_scripts/01_lane_changes.py +54 -0
- example_scripts/02_heatmap_density.py +58 -0
- example_scripts/03_high_acceleration.py +61 -0
- example_scripts/README.md +33 -0
- example_scripts/example_export_objects.py +164 -0
.gitattributes
CHANGED
|
@@ -60,3 +60,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2/dynamicWorld.json filter=lfs diff=lfs merge=lfs -text
|
| 62 |
T-Crossing-St2214-DuenzlauUmgehung_1b9b-1b9bf4b8-9fa6-4d23-abd2-2b715d087e8f/dynamicWorld.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2/dynamicWorld.json filter=lfs diff=lfs merge=lfs -text
|
| 62 |
T-Crossing-St2214-DuenzlauUmgehung_1b9b-1b9bf4b8-9fa6-4d23-abd2-2b715d087e8f/dynamicWorld.json filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
Sample_Data/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2/dynamicWorld.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,275 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- de
|
| 5 |
+
license: cc-by-nd-4.0
|
| 6 |
+
tags:
|
| 7 |
+
- autonomous-driving
|
| 8 |
+
- traffic-analysis
|
| 9 |
+
- trajectory-prediction
|
| 10 |
+
- drone-data
|
| 11 |
+
- automatum
|
| 12 |
+
- open-drive
|
| 13 |
+
- json
|
| 14 |
+
- t-crossing
|
| 15 |
+
- intersection
|
| 16 |
+
- openscenario
|
| 17 |
+
pretty_name: "Automatum Data: T-Crossing Drone Dataset"
|
| 18 |
+
task_categories:
|
| 19 |
+
- time-series-forecasting
|
| 20 |
+
- object-detection
|
| 21 |
+
size_categories:
|
| 22 |
+
- 1K<n<10K
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
|
| 27 |
+
# Automatum Data: T-Crossing Drone Dataset
|
| 28 |
+
|
| 29 |
+
[](https://automatum-data.com)
|
| 30 |
+
[](https://openautomatumdronedata.readthedocs.io)
|
| 31 |
+
[](https://pypi.org/project/openautomatumdronedata/)
|
| 32 |
+
[](https://creativecommons.org/licenses/by-nd/4.0/)
|
| 33 |
+
|
| 34 |
+
## Introduction
|
| 35 |
+
|
| 36 |
+
The **Automatum Data T-Crossing Dataset** contains high-precision movement data of traffic participants (cars, trucks, vans) extracted from drone recordings at T-shaped intersections in Bavaria, Germany. The data is captured from a bird's eye view and provides complete trajectories with velocities, accelerations, lane assignments, and object relationships.
|
| 37 |
+
|
| 38 |
+
This dataset directly competes with established benchmarks such as **highD** and **NGSIM** — offering superior data quality (JSON instead of CSV), standardized road geometry (OpenDRIVE XODR), and precise UTM world coordinate mapping.
|
| 39 |
+
|
| 40 |
+

|
| 41 |
+
|
| 42 |
+
## Dataset at a Glance
|
| 43 |
+
|
| 44 |
+
| Metric | Value |
|
| 45 |
+
|--------|-------|
|
| 46 |
+
| **Scenario Type** | T-Crossing / Intersection |
|
| 47 |
+
| **Recordings** | 2 |
|
| 48 |
+
| **Total Duration** | ~30 minutes (0.49 hours) |
|
| 49 |
+
| **Total Distance** | 108.8 km |
|
| 50 |
+
| **Total Vehicles Tracked** | 683 |
|
| 51 |
+
| **Vehicle Types** | 623 Cars, 47 Trucks, 13 Vans |
|
| 52 |
+
| **Max Trajectory Length** | 160.3 m |
|
| 53 |
+
| **Coordinate System** | UTM Zone 32U |
|
| 54 |
+
| **FPS** | 29.97 |
|
| 55 |
+
| **License** | CC BY-ND 4.0 |
|
| 56 |
+
|
| 57 |
+

|
| 58 |
+
|
| 59 |
+
## Repository Structure
|
| 60 |
+
|
| 61 |
+
```
|
| 62 |
+
automatum-data-crossing/
|
| 63 |
+
├── README.md # This file
|
| 64 |
+
├── doc/ # Documentation images, logo, technical diagrams
|
| 65 |
+
├── example_scripts/ # Ready-to-use Python analysis scripts
|
| 66 |
+
├── Sample_Data/ # One recording unpacked for quick preview
|
| 67 |
+
│ └── T-Crossing--GaimersheimStadtweg_e2e6-.../
|
| 68 |
+
│ ├── dynamicWorld.json
|
| 69 |
+
│ ├── staticWorld.xodr
|
| 70 |
+
│ ├── recording.html
|
| 71 |
+
│ └── img/
|
| 72 |
+
└── automatum_data_crossing.zip # All recordings as archive
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
> **Quick Preview:** Browse `Sample_Data/` to explore the data structure before downloading the full archive. The sample recording can be loaded directly with the `openautomatumdronedata` Python library.
|
| 76 |
+
|
| 77 |
+
## Recording Overview
|
| 78 |
+
|
| 79 |
+
### 1. T-Crossing Gaimersheim Stadtweg
|
| 80 |
+
|
| 81 |
+
| | |
|
| 82 |
+
|---|---|
|
| 83 |
+
|  |  |
|
| 84 |
+
|
| 85 |
+
| KPI | Value |
|
| 86 |
+
|-----|-------|
|
| 87 |
+
| Trajectories | 299 |
|
| 88 |
+
| Duration | 650.7 s (~10.8 min) |
|
| 89 |
+
| Traffic Flow | 1,654.3 veh/h |
|
| 90 |
+
| Traffic Density | 40.2 veh/km |
|
| 91 |
+
| Avg. Speed | 41.2 km/h |
|
| 92 |
+
| Max. Speed | 109.4 km/h |
|
| 93 |
+
| Max. Acceleration | 4.7 m/s² |
|
| 94 |
+
| Location | 48.7882°N, 11.3855°E |
|
| 95 |
+
|
| 96 |
+
### 2. T-Crossing St2214 Dünzlau Umgehung
|
| 97 |
+
|
| 98 |
+
| | |
|
| 99 |
+
|---|---|
|
| 100 |
+
|  |  |
|
| 101 |
+
|
| 102 |
+
| KPI | Value |
|
| 103 |
+
|-----|-------|
|
| 104 |
+
| Trajectories | 384 |
|
| 105 |
+
| Duration | 1,125.6 s (~18.8 min) |
|
| 106 |
+
| Traffic Flow | 1,228.1 veh/h |
|
| 107 |
+
| Traffic Density | 22.1 veh/km |
|
| 108 |
+
| Avg. Speed | 55.6 km/h |
|
| 109 |
+
| Max. Speed | 110.4 km/h |
|
| 110 |
+
| Max. Acceleration | 5.8 m/s² |
|
| 111 |
+
| Location | 48.7762°N, 11.3196°E |
|
| 112 |
+
|
| 113 |
+
## Data Structure
|
| 114 |
+
|
| 115 |
+
Each recording folder contains:
|
| 116 |
+
|
| 117 |
+
```
|
| 118 |
+
recording_folder/
|
| 119 |
+
├── dynamicWorld.json # Trajectories, velocities, accelerations, bounding boxes
|
| 120 |
+
├── staticWorld.xodr # Road geometry in OpenDRIVE format
|
| 121 |
+
├── recording_name.html # Interactive metadata overview (Bokeh)
|
| 122 |
+
└── img/
|
| 123 |
+
├── kpis.json # Key performance indicators
|
| 124 |
+
├── *_map.jpg # Aerial map view
|
| 125 |
+
├── *_trajectories.jpg # Trajectory visualization
|
| 126 |
+
└── *_centerImg_thumb.jpg # Center frame thumbnail
|
| 127 |
+
```
|
| 128 |
+
|
| 129 |
+
### dynamicWorld.json
|
| 130 |
+
|
| 131 |
+
The core data file contains for each tracked vehicle:
|
| 132 |
+
|
| 133 |
+
- **Position vectors**: `x_vec`, `y_vec` — UTM coordinates over time
|
| 134 |
+
- **Velocity vectors**: `vx_vec`, `vy_vec` — in m/s
|
| 135 |
+
- **Acceleration vectors**: `ax_vec`, `ay_vec` — in m/s²
|
| 136 |
+
- **Jerk vectors**: `jerk_x_vec`, `jerk_y_vec`
|
| 137 |
+
- **Heading**: `psi_vec` — orientation angle
|
| 138 |
+
- **Lane assignment**: `lane_id_vec`, `road_id_vec` — linked to XODR
|
| 139 |
+
- **Object dimensions**: `length`, `width`
|
| 140 |
+
- **Object relationships**: `object_relation_dict_list` — front/behind/left/right neighbors
|
| 141 |
+
- **Safety metrics**: `ttc_dict_vec` (Time-to-Collision), `tth_dict_vec` (Time-to-Headway)
|
| 142 |
+
- **Lane distances**: `distance_left_lane_marking`, `distance_right_lane_marking`
|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
|
| 146 |
+
### staticWorld.xodr
|
| 147 |
+
|
| 148 |
+
OpenDRIVE 1.6 format file defining:
|
| 149 |
+
|
| 150 |
+
- Road network topology and geometry
|
| 151 |
+
- Lane definitions with widths and types
|
| 152 |
+
- Junction configurations
|
| 153 |
+
- Speed limits and road markings
|
| 154 |
+
|
| 155 |
+

|
| 156 |
+
|
| 157 |
+
### Key Metrics Explained
|
| 158 |
+
|
| 159 |
+

|
| 160 |
+

|
| 161 |
+

|
| 162 |
+
|
| 163 |
+
## Quick Start
|
| 164 |
+
|
| 165 |
+
### Installation
|
| 166 |
+
|
| 167 |
+
```bash
|
| 168 |
+
pip install openautomatumdronedata
|
| 169 |
+
```
|
| 170 |
+
|
| 171 |
+
### Load and Explore
|
| 172 |
+
|
| 173 |
+
```python
|
| 174 |
+
from openautomatumdronedata.dataset import droneDataset
|
| 175 |
+
import os
|
| 176 |
+
|
| 177 |
+
# Point to one recording folder
|
| 178 |
+
path = os.path.abspath("T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2")
|
| 179 |
+
dataset = droneDataset(path)
|
| 180 |
+
|
| 181 |
+
# Access dynamic world
|
| 182 |
+
dynWorld = dataset.dynWorld
|
| 183 |
+
|
| 184 |
+
print(f"UUID: {dynWorld.UUID}")
|
| 185 |
+
print(f"Duration: {dynWorld.maxTime:.1f} seconds")
|
| 186 |
+
print(f"Frames: {dynWorld.frame_count}")
|
| 187 |
+
print(f"Vehicles: {len(dynWorld)}")
|
| 188 |
+
|
| 189 |
+
# Get all vehicles visible at t=1.0s
|
| 190 |
+
objects = dynWorld.get_list_of_dynamic_objects_for_specific_time(1.0)
|
| 191 |
+
for obj in objects[:5]:
|
| 192 |
+
print(f" {obj.UUID} ({obj.type}) — x={obj.x_vec[0]:.1f}, y={obj.y_vec[0]:.1f}")
|
| 193 |
+
```
|
| 194 |
+
|
| 195 |
+
### Using with Hugging Face
|
| 196 |
+
|
| 197 |
+
```python
|
| 198 |
+
from huggingface_hub import snapshot_download, hf_hub_download
|
| 199 |
+
import zipfile, os
|
| 200 |
+
|
| 201 |
+
# Option 1: Download only the sample for a quick look
|
| 202 |
+
local_path = snapshot_download(
|
| 203 |
+
repo_id="AutomatumData/automatum-data-crossing",
|
| 204 |
+
repo_type="dataset",
|
| 205 |
+
allow_patterns=["Sample_Data/**"]
|
| 206 |
+
)
|
| 207 |
+
|
| 208 |
+
# Option 2: Download the full archive
|
| 209 |
+
archive = hf_hub_download(
|
| 210 |
+
repo_id="AutomatumData/automatum-data-crossing",
|
| 211 |
+
filename="automatum_data_crossing.zip",
|
| 212 |
+
repo_type="dataset"
|
| 213 |
+
)
|
| 214 |
+
# Extract
|
| 215 |
+
with zipfile.ZipFile(archive, 'r') as z:
|
| 216 |
+
z.extractall("automatum_data_crossing")
|
| 217 |
+
|
| 218 |
+
# Load with openautomatumdronedata
|
| 219 |
+
from openautomatumdronedata.dataset import droneDataset
|
| 220 |
+
dataset = droneDataset("automatum_data_crossing/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2")
|
| 221 |
+
print(f"Vehicles: {len(dataset.dynWorld)}")
|
| 222 |
+
```
|
| 223 |
+
|
| 224 |
+
## Example Scripts
|
| 225 |
+
|
| 226 |
+
See the `example_scripts/` folder for ready-to-use analysis scripts:
|
| 227 |
+
|
| 228 |
+
- **`01_lane_changes.py`** — Analyze lane change behavior across all vehicles
|
| 229 |
+
- **`02_heatmap_density.py`** — Generate traffic density heatmaps
|
| 230 |
+
- **`03_high_acceleration.py`** — Detect high-acceleration events
|
| 231 |
+
- **`04_export_objects.py`** — Export per-vehicle JSON files with surrounding object data
|
| 232 |
+
|
| 233 |
+
## Comparison with Established Datasets
|
| 234 |
+
|
| 235 |
+
| Feature | Automatum Data | highD | NGSIM |
|
| 236 |
+
|---------|---------------|-------|-------|
|
| 237 |
+
| **Data Format** | JSON + OpenDRIVE XODR | CSV + XML | CSV |
|
| 238 |
+
| **Road Geometry** | OpenDRIVE 1.6 standard | Simple annotations | Basic annotations |
|
| 239 |
+
| **Coordinate System** | UTM world coordinates | Local coordinates | Local coordinates |
|
| 240 |
+
| **Object Relationships** | Built-in (TTC, TTH, distances) | Must compute | Must compute |
|
| 241 |
+
| **Velocity Error** | < 0.2% (validated) | < 10 cm positional | Known issues |
|
| 242 |
+
| **Python Library** | `openautomatumdronedata` | Custom scripts | Custom scripts |
|
| 243 |
+
| **OpenSCENARIO** | Available on request | No | No |
|
| 244 |
+
|
| 245 |
+
## Research Use & Extended Data Pool
|
| 246 |
+
|
| 247 |
+
**These publicly available datasets are intended exclusively for research purposes.**
|
| 248 |
+
|
| 249 |
+
This dataset is a small excerpt from the comprehensive **Automatum Data Pool** containing over **1,000 hours of processed drone video**. For commercial use or access to further datasets, including OpenSCENARIO exports, please contact us via our website:
|
| 250 |
+
|
| 251 |
+
**[automatum-data.com](https://automatum-data.com)**
|
| 252 |
+
|
| 253 |
+
## Citation
|
| 254 |
+
|
| 255 |
+
If you use this dataset in your research, please cite:
|
| 256 |
+
|
| 257 |
+
```bibtex
|
| 258 |
+
@inproceedings{spannaus2021automatum,
|
| 259 |
+
title={AUTOMATUM DATA: Drone-based highway dataset for development and validation of automated driving software},
|
| 260 |
+
author={Spannaus, Paul and Zechel, Peter and Lenz, Kilian},
|
| 261 |
+
booktitle={IEEE Intelligent Vehicles Symposium (IV)},
|
| 262 |
+
year={2021}
|
| 263 |
+
}
|
| 264 |
+
```
|
| 265 |
+
|
| 266 |
+
## License
|
| 267 |
+
|
| 268 |
+
This dataset is licensed under [Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0)](https://creativecommons.org/licenses/by-nd/4.0/).
|
| 269 |
+
|
| 270 |
+
## Contact
|
| 271 |
+
|
| 272 |
+
- **Website**: [automatum-data.com](https://automatum-data.com)
|
| 273 |
+
- **Email**: info@automatum-data.com
|
| 274 |
+
- **HuggingFace**: [AutomatumData](https://huggingface.co/AutomatumData)
|
| 275 |
+
- **Documentation**: [openautomatumdronedata.readthedocs.io](https://openautomatumdronedata.readthedocs.io)
|
Sample_Data/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2.html
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Sample_Data/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2/dynamicWorld.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:899037a7be1f61dd75915fbdeab32e8e2c01c8d2b4be4e814775216896f2cd19
|
| 3 |
+
size 51283310
|
Sample_Data/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2/img/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2_centerImg_thumb.jpg
ADDED
|
|
Git LFS Details
|
Sample_Data/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2/img/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2_map.jpg
ADDED
|
Git LFS Details
|
Sample_Data/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2/img/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2_trajectories.jpg
ADDED
|
Git LFS Details
|
Sample_Data/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2/img/kpis.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Anzahl Trajektorien": 299,
|
| 3 |
+
"Aufzeichnungsdauer (s)": 650.7,
|
| 4 |
+
"Verkehrsfluss (veh/h)": 1654.3,
|
| 5 |
+
"Verkehrsdichte (veh/km)": 40.2,
|
| 6 |
+
"Ø Trajektorienlänge (m)": 160.3,
|
| 7 |
+
"Ø Geschwindigkeit (km/h)": 41.2,
|
| 8 |
+
"Maximale Geschwindigkeit (km/h)": 109.4,
|
| 9 |
+
"Maximale Beschleunigung (m/s²)": 4.7
|
| 10 |
+
}
|
Sample_Data/T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2/staticWorld.xodr
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
| 2 |
+
<OpenDRIVE xmlns="http://www.opendrive.org">
|
| 3 |
+
<header revMajor="1" revMinor="6" date="2023-09-03T00:20:57">
|
| 4 |
+
<userData code="Created by IPGRoad" value="LibVersion 11.0.1" />
|
| 5 |
+
</header>
|
| 6 |
+
<road name="object 136" length="88.8314115319165" id="0" junction="6" rule="RHT">
|
| 7 |
+
<link>
|
| 8 |
+
<predecessor elementType="road" elementId="5" contactPoint="start" />
|
| 9 |
+
<successor elementType="road" elementId="4" elementS="22" elementDir="-" />
|
| 10 |
+
</link>
|
| 11 |
+
<type s="0" type="rural" country="DE">
|
| 12 |
+
<speed max="100" unit="km/h" />
|
| 13 |
+
</type>
|
| 14 |
+
<planView>
|
| 15 |
+
<geometry s="0" x="-21.0533598837844" y="-2.95345546097586" hdg="1.24607781946135" length="23.1498201280227">
|
| 16 |
+
<paramPoly3 aU="0" bU="0.995000013784145" cU="-0.00343449946820904" dU="0.000101766268245772" aV="0" bV="-3.33066907387547e-016" cV="-0.0287890317703866" dV="0.000830264246649969" pRange="arcLength" />
|
| 17 |
+
</geometry>
|
| 18 |
+
<geometry s="23.1498201280227" x="-9.029" y="16.693" hdg="1.24800790765752" length="13.9947023260275">
|
| 19 |
+
<paramPoly3 aU="0" bU="0.982275684953835" cU="0.00356207809732256" dU="-0.000615879315236091" aV="0" bV="-6.10622663543836e-016" cV="0.0278734473256072" dV="-0.00018531356091785" pRange="arcLength" />
|
| 20 |
+
</geometry>
|
| 21 |
+
<geometry s="37.1445224540502" x="-9.678" y="30.361" hdg="1.99832337110583" length="12.8540378860607">
|
| 22 |
+
<paramPoly3 aU="0" bU="0.998688656783328" cU="-0.00268316386648884" dU="-6.1550050071566e-005" aV="0" bV="3.33066907387547e-016" cV="0.0307699947383936" dV="-0.000751282823072828" pRange="arcLength" />
|
| 23 |
+
</geometry>
|
| 24 |
+
<geometry s="49.9985603401109" x="-17.937" y="40.074" hdg="2.43405097973531" length="38.8328511918056">
|
| 25 |
+
<paramPoly3 aU="0" bU="0.999673956908231" cU="-5.39016810127192e-005" dU="8.42000368390576e-007" aV="0" bV="-1.11022302462516e-016" cV="0.00384097667368856" dV="-7.20094707268011e-005" pRange="arcLength" />
|
| 26 |
+
</geometry>
|
| 27 |
+
</planView>
|
| 28 |
+
<elevationProfile>
|
| 29 |
+
<elevation s="0" a="0" b="-0" c="0" d="0" />
|
| 30 |
+
</elevationProfile>
|
| 31 |
+
<lanes>
|
| 32 |
+
<laneOffset s="0" a="2.5" b="0" c="-0.000117665401718707" d="8.83061518364149e-007" />
|
| 33 |
+
<laneSection s="0">
|
| 34 |
+
<center>
|
| 35 |
+
<lane id="0" type="driving" />
|
| 36 |
+
</center>
|
| 37 |
+
<right>
|
| 38 |
+
<lane id="-1" type="driving">
|
| 39 |
+
<link>
|
| 40 |
+
<predecessor id="2" />
|
| 41 |
+
<successor id="2" />
|
| 42 |
+
</link>
|
| 43 |
+
<width sOffset="0" a="5" b="0" c="-0.000235330803437414" d="1.7661230367283e-006" />
|
| 44 |
+
<material sOffset="0" friction="1" />
|
| 45 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 46 |
+
</lane>
|
| 47 |
+
</right>
|
| 48 |
+
</laneSection>
|
| 49 |
+
</lanes>
|
| 50 |
+
</road>
|
| 51 |
+
<road name="object 142" length="71.01665007308" id="1" junction="6" rule="RHT">
|
| 52 |
+
<link>
|
| 53 |
+
<predecessor elementType="road" elementId="4" elementS="22" elementDir="+" />
|
| 54 |
+
<successor elementType="road" elementId="5" contactPoint="start" />
|
| 55 |
+
</link>
|
| 56 |
+
<type s="0" type="rural" country="DE">
|
| 57 |
+
<speed max="100" unit="km/h" />
|
| 58 |
+
</type>
|
| 59 |
+
<planView>
|
| 60 |
+
<geometry s="0" x="-52.016145758326" y="60.1302164740863" hdg="-0.735010688859513" length="45.6339013338356">
|
| 61 |
+
<paramPoly3 aU="0" bU="0.98081742331651" cU="0.00343192425600656" dU="-8.35789292858641e-005" aV="0" bV="-6.10622663543836e-016" cV="0.00115620252138615" dV="-0.000113752731283343" pRange="arcLength" />
|
| 62 |
+
</geometry>
|
| 63 |
+
<geometry s="45.6339013338356" x="-25.038" y="24.416" hdg="-1.39989113401919" length="25.3827487392445">
|
| 64 |
+
<paramPoly3 aU="0" bU="0.989752171899903" cU="-0.000709288400007625" dU="-4.29868767486664e-005" aV="0" bV="-3.60822483003176e-016" cV="-0.01659100230201" dV="0.000192225682339493" pRange="arcLength" />
|
| 65 |
+
</geometry>
|
| 66 |
+
</planView>
|
| 67 |
+
<elevationProfile>
|
| 68 |
+
<elevation s="0" a="0" b="0" c="0" d="0" />
|
| 69 |
+
</elevationProfile>
|
| 70 |
+
<lanes>
|
| 71 |
+
<laneOffset s="0" a="1.849" b="0" c="0.000476467635496173" d="-4.47282559799579e-006" />
|
| 72 |
+
<laneSection s="0">
|
| 73 |
+
<center>
|
| 74 |
+
<lane id="0" type="driving" />
|
| 75 |
+
</center>
|
| 76 |
+
<right>
|
| 77 |
+
<lane id="-1" type="driving">
|
| 78 |
+
<link>
|
| 79 |
+
<predecessor id="-1" />
|
| 80 |
+
<successor id="-2" />
|
| 81 |
+
</link>
|
| 82 |
+
<width sOffset="0" a="3.698" b="0" c="0.000952935270992347" d="-8.94565119599159e-006" />
|
| 83 |
+
<material sOffset="0" friction="1" />
|
| 84 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 85 |
+
</lane>
|
| 86 |
+
</right>
|
| 87 |
+
</laneSection>
|
| 88 |
+
</lanes>
|
| 89 |
+
</road>
|
| 90 |
+
<road name="object 145" length="41.5177316624347" id="2" junction="6" rule="RHT">
|
| 91 |
+
<link>
|
| 92 |
+
<predecessor elementType="road" elementId="5" contactPoint="start" />
|
| 93 |
+
<successor elementType="road" elementId="4" elementS="105" elementDir="+" />
|
| 94 |
+
</link>
|
| 95 |
+
<type s="0" type="rural" country="DE">
|
| 96 |
+
<speed max="100" unit="km/h" />
|
| 97 |
+
</type>
|
| 98 |
+
<planView>
|
| 99 |
+
<geometry s="0" x="-21.0533598837844" y="-2.95345546097586" hdg="1.24607781946135" length="24.454409052306">
|
| 100 |
+
<paramPoly3 aU="0" bU="0.952041729317767" cU="0.00829735286465082" dU="-0.000539078468099527" aV="0" bV="-2.77555756156289e-016" cV="-0.0211442923881642" dV="9.25115822605417e-005" pRange="arcLength" />
|
| 101 |
+
</geometry>
|
| 102 |
+
<geometry s="24.454409052306" x="-3.85599999999999" y="12.74" hdg="0.0981758192052103" length="17.0633226101287">
|
| 103 |
+
<paramPoly3 aU="0" bU="0.976236045570755" cU="-0.00168413783740082" dU="-0.000252314351028329" aV="0" bV="-5.68989300120393e-016" cV="-0.0364772909310689" dV="0.000644222451169703" pRange="arcLength" />
|
| 104 |
+
</geometry>
|
| 105 |
+
</planView>
|
| 106 |
+
<elevationProfile>
|
| 107 |
+
<elevation s="0" a="0" b="-0" c="0" d="0" />
|
| 108 |
+
</elevationProfile>
|
| 109 |
+
<lanes>
|
| 110 |
+
<laneOffset s="0" a="2.5" b="0" c="-0.00113301330026948" d="1.81932434633245e-005" />
|
| 111 |
+
<laneSection s="0">
|
| 112 |
+
<center>
|
| 113 |
+
<lane id="0" type="driving" />
|
| 114 |
+
</center>
|
| 115 |
+
<right>
|
| 116 |
+
<lane id="-1" type="driving">
|
| 117 |
+
<link>
|
| 118 |
+
<predecessor id="2" />
|
| 119 |
+
<successor id="-1" />
|
| 120 |
+
</link>
|
| 121 |
+
<width sOffset="0" a="5" b="0" c="-0.00226602660053896" d="3.63864869266491e-005" />
|
| 122 |
+
<material sOffset="0" friction="1" />
|
| 123 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 124 |
+
</lane>
|
| 125 |
+
</right>
|
| 126 |
+
</laneSection>
|
| 127 |
+
</lanes>
|
| 128 |
+
</road>
|
| 129 |
+
<road name="object 168" length="60.606553116125" id="3" junction="6" rule="RHT">
|
| 130 |
+
<link>
|
| 131 |
+
<predecessor elementType="road" elementId="4" elementS="105" elementDir="-" />
|
| 132 |
+
<successor elementType="road" elementId="5" contactPoint="start" />
|
| 133 |
+
</link>
|
| 134 |
+
<type s="0" type="rural" country="DE">
|
| 135 |
+
<speed max="100" unit="km/h" />
|
| 136 |
+
</type>
|
| 137 |
+
<planView>
|
| 138 |
+
<geometry s="0" x="14.0468037742102" y="9.72990676603854" hdg="2.4661297910461" length="31.2043860084837">
|
| 139 |
+
<paramPoly3 aU="0" bU="0.961600457327006" cU="0.0108174825246912" dU="-0.000369086365817657" aV="0" bV="-4.9960036108132e-016" cV="-0.00549694625372406" dV="0.000385399201036117" pRange="arcLength" />
|
| 140 |
+
</geometry>
|
| 141 |
+
<geometry s="31.2043860084837" x="-12.814" y="23.104" hdg="-2.8660409953619" length="29.4021671076413">
|
| 142 |
+
<paramPoly3 aU="0" bU="0.961448997611996" cU="-0.00956092700939144" dU="5.54718885290227e-005" aV="0" bV="3.33066907387547e-016" cV="0.037060263749812" dV="-0.000534394787775931" pRange="arcLength" />
|
| 143 |
+
</geometry>
|
| 144 |
+
</planView>
|
| 145 |
+
<elevationProfile>
|
| 146 |
+
<elevation s="0" a="0" b="-0" c="0" d="0" />
|
| 147 |
+
</elevationProfile>
|
| 148 |
+
<lanes>
|
| 149 |
+
<laneOffset s="0" a="1.88283536782185" b="0" c="0.000626571529728235" d="-6.89223081787536e-006" />
|
| 150 |
+
<laneSection s="0">
|
| 151 |
+
<center>
|
| 152 |
+
<lane id="0" type="driving" />
|
| 153 |
+
</center>
|
| 154 |
+
<right>
|
| 155 |
+
<lane id="-1" type="driving">
|
| 156 |
+
<link>
|
| 157 |
+
<predecessor id="1" />
|
| 158 |
+
<successor id="-2" />
|
| 159 |
+
</link>
|
| 160 |
+
<width sOffset="0" a="3.76567073564371" b="0" c="0.00125314305945647" d="-1.37844616357507e-005" />
|
| 161 |
+
<material sOffset="0" friction="1" />
|
| 162 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 163 |
+
</lane>
|
| 164 |
+
</right>
|
| 165 |
+
</laneSection>
|
| 166 |
+
</lanes>
|
| 167 |
+
</road>
|
| 168 |
+
<road name="object 1" length="193.606099214324" id="4" junction="-1" rule="RHT">
|
| 169 |
+
<type s="0" type="rural" country="DE">
|
| 170 |
+
<speed max="100" unit="km/h" />
|
| 171 |
+
</type>
|
| 172 |
+
<planView>
|
| 173 |
+
<geometry s="0" x="-67.602" y="75.662" hdg="-0.639593357685843" length="11.4766750720671">
|
| 174 |
+
<paramPoly3 aU="0" bU="0.999805538275656" cU="-4.58057428759698e-006" dU="-5.06278987623629e-006" aV="0" bV="-5.55111512312578e-016" cV="-0.00398509536556327" dV="5.93282419616191e-005" pRange="arcLength" />
|
| 175 |
+
</geometry>
|
| 176 |
+
<geometry s="11.4766750720671" x="-58.662" y="68.469" hdg="-0.707673013383584" length="19.2432010049057">
|
| 177 |
+
<paramPoly3 aU="0" bU="1.00016958278023" cU="-4.63550155835394e-005" dU="1.17117178960369e-006" aV="0" bV="-6.10622663543836e-016" cV="-0.00195068968918113" dV="4.13050110028881e-005" pRange="arcLength" />
|
| 178 |
+
</geometry>
|
| 179 |
+
<geometry s="30.7198760769728" x="-44.322" y="55.638" hdg="-0.736863064283775" length="19.6948828812891">
|
| 180 |
+
<paramPoly3 aU="0" bU="1.0000928548627" cU="8.58508620331044e-006" dU="-1.14225754606991e-006" aV="0" bV="-4.9960036108132e-016" cV="0.000434250579239669" dV="1.78859210221217e-005" pRange="arcLength" />
|
| 181 |
+
</geometry>
|
| 182 |
+
<geometry s="50.4147589582619" x="-29.534" y="42.632" hdg="-0.698928929134173" length="19.5105238393821">
|
| 183 |
+
<paramPoly3 aU="0" bU="0.999860474741721" cU="-2.31508633633437e-006" dU="6.57681639615815e-008" aV="0" bV="-2.22044604925031e-016" cV="0.00149231277396123" dV="-3.28626838306993e-005" pRange="arcLength" />
|
| 184 |
+
</geometry>
|
| 185 |
+
<geometry s="69.925282797644" x="-14.392" y="30.329" hdg="-0.678225656267076" length="20.4067255684986">
|
| 186 |
+
<paramPoly3 aU="0" bU="1.00008031829251" cU="-7.39265089185422e-006" dU="1.47691930672009e-007" aV="0" bV="-7.21644966006352e-016" cV="-0.000431149010646061" dV="1.15039746994176e-005" pRange="arcLength" />
|
| 187 |
+
</geometry>
|
| 188 |
+
<geometry s="90.3320083661426" x="1.44700000000002" y="17.462" hdg="-0.681450489052992" length="32.0229178000398">
|
| 189 |
+
<paramPoly3 aU="0" bU="0.999966496663904" cU="7.68278548078622e-007" dU="-8.97757308533423e-009" aV="0" bV="-6.66133814775094e-016" cV="0.000273129260295378" dV="-3.13721883628117e-006" pRange="arcLength" />
|
| 190 |
+
</geometry>
|
| 191 |
+
<geometry s="122.354926166182" x="26.429" y="-2.572" hdg="-0.673609110276249" length="71.2511730481412">
|
| 192 |
+
<paramPoly3 aU="0" bU="1.0000181292023" cU="-3.157730918546e-007" dU="-1.18265990480959e-009" aV="0" bV="-5.55111512312578e-017" cV="-2.82577956761826e-005" dV="-3.32791448488073e-007" pRange="arcLength" />
|
| 193 |
+
</geometry>
|
| 194 |
+
</planView>
|
| 195 |
+
<lanes>
|
| 196 |
+
<laneSection s="0">
|
| 197 |
+
<left>
|
| 198 |
+
<lane id="2" type="driving">
|
| 199 |
+
<width sOffset="0" a="4.381" b="0" c="0" d="0" />
|
| 200 |
+
<material sOffset="0" friction="1" />
|
| 201 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 202 |
+
</lane>
|
| 203 |
+
<lane id="1" type="driving">
|
| 204 |
+
<width sOffset="0" a="0.5" b="1.38777878078145e-017" c="0.002125" d="-2.1875e-005" />
|
| 205 |
+
<width sOffset="40" a="2.5" b="0.065" c="-0.0005" d="-0.0001" />
|
| 206 |
+
<width sOffset="50" a="3" b="0.025" c="0" d="0" />
|
| 207 |
+
<width sOffset="66" a="3.4" b="0" c="0.00105212646156974" d="-2.2137213676517e-005" />
|
| 208 |
+
<width sOffset="90" a="3.7" b="0.0122489649223262" c="-0.000541752923139485" d="1.13501318968889e-006" />
|
| 209 |
+
<width sOffset="166" a="2" b="-0.0504299708439463" c="-0.000282969915890417" d="2.88910671443846e-005" />
|
| 210 |
+
<material sOffset="0" friction="1" />
|
| 211 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 212 |
+
</lane>
|
| 213 |
+
</left>
|
| 214 |
+
<center>
|
| 215 |
+
<lane id="0" type="driving">
|
| 216 |
+
<roadMark sOffset="1e-007" type="solid" color="white" width="0.15" height="0">
|
| 217 |
+
<type name="solid" width="0.15">
|
| 218 |
+
<line length="0" space="0" tOffset="0" sOffset="0" width="0.15" />
|
| 219 |
+
</type>
|
| 220 |
+
</roadMark>
|
| 221 |
+
</lane>
|
| 222 |
+
</center>
|
| 223 |
+
<right>
|
| 224 |
+
<lane id="-1" type="driving">
|
| 225 |
+
<width sOffset="0" a="3.698" b="0" c="0" d="0" />
|
| 226 |
+
<material sOffset="0" friction="1" />
|
| 227 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 228 |
+
</lane>
|
| 229 |
+
</right>
|
| 230 |
+
</laneSection>
|
| 231 |
+
</lanes>
|
| 232 |
+
</road>
|
| 233 |
+
<road name="object 66" length="61.8143834107681" id="5" junction="-1" rule="RHT">
|
| 234 |
+
<link>
|
| 235 |
+
<predecessor elementType="junction" elementId="6" />
|
| 236 |
+
</link>
|
| 237 |
+
<type s="0" type="rural" country="DE">
|
| 238 |
+
<speed max="100" unit="km/h" />
|
| 239 |
+
</type>
|
| 240 |
+
<planView>
|
| 241 |
+
<geometry s="0" x="-24.56" y="-1.773" hdg="-1.89551483412844" length="9.65245624431065">
|
| 242 |
+
<paramPoly3 aU="0" bU="0.999803567789528" cU="-4.91538290343498e-005" dU="-3.80539486688071e-006" aV="0" bV="-5.55111512312578e-016" cV="0.00562248449695805" dV="-0.000145589854924663" pRange="arcLength" />
|
| 243 |
+
</geometry>
|
| 244 |
+
<geometry s="9.65245624431065" x="-27.264" y="-11.037" hdg="-1.82762134955448" length="12.6495636682623">
|
| 245 |
+
<paramPoly3 aU="0" bU="1.0002840218728" cU="-6.35803129107505e-005" dU="2.89350302280312e-006" aV="0" bV="5.55111512312578e-016" cV="0.00141468947235499" dV="-4.95470616208213e-005" pRange="arcLength" />
|
| 246 |
+
</geometry>
|
| 247 |
+
<geometry s="22.3020199125729" x="-30.355" y="-23.303" hdg="-1.81561658438663" length="39.5123634981952">
|
| 248 |
+
<paramPoly3 aU="0" bU="0.999922077013402" cU="4.06148201549196e-005" dU="-1.20689808684295e-006" aV="0" bV="2.22044604925031e-016" cV="-0.000465878145381665" dV="2.2328352790449e-005" pRange="arcLength" />
|
| 249 |
+
</geometry>
|
| 250 |
+
</planView>
|
| 251 |
+
<lanes>
|
| 252 |
+
<laneSection s="0">
|
| 253 |
+
<left>
|
| 254 |
+
<lane id="2" type="driving">
|
| 255 |
+
<width sOffset="0" a="5" b="-0.03" c="-0.00180437051462216" d="4.33748205848865e-005" />
|
| 256 |
+
<width sOffset="25" a="3.8" b="-0.0388907371344459" c="0.00144874102924433" d="-1.66699468772913e-005" />
|
| 257 |
+
<material sOffset="0" friction="1" />
|
| 258 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 259 |
+
</lane>
|
| 260 |
+
<lane id="1" type="border">
|
| 261 |
+
<width sOffset="0" a="1.2" b="-0.1" c="0.00266666666666667" d="-2.22222222222222e-005" />
|
| 262 |
+
<width sOffset="30" a="0" b="0" c="0" d="0" />
|
| 263 |
+
<material sOffset="0" friction="1" />
|
| 264 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 265 |
+
</lane>
|
| 266 |
+
</left>
|
| 267 |
+
<center>
|
| 268 |
+
<lane id="0" type="driving" />
|
| 269 |
+
</center>
|
| 270 |
+
<right>
|
| 271 |
+
<lane id="-1" type="border">
|
| 272 |
+
<width sOffset="0" a="1.4" b="-0.1" c="0.002" d="-7.40740740740741e-006" />
|
| 273 |
+
<width sOffset="30" a="0" b="0" c="0" d="0" />
|
| 274 |
+
<material sOffset="0" friction="1" />
|
| 275 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 276 |
+
</lane>
|
| 277 |
+
<lane id="-2" type="driving">
|
| 278 |
+
<width sOffset="0" a="5.3" b="-0.03" c="5.29356165377947e-006" d="-3.41174246615117e-006" />
|
| 279 |
+
<width sOffset="25" a="4.5" b="-0.0361323390413445" c="-0.000250587123307558" d="1.34245326241329e-005" />
|
| 280 |
+
<material sOffset="0" friction="1" />
|
| 281 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 282 |
+
</lane>
|
| 283 |
+
</right>
|
| 284 |
+
</laneSection>
|
| 285 |
+
</lanes>
|
| 286 |
+
</road>
|
| 287 |
+
<junction name="object 126" id="6" type="virtual">
|
| 288 |
+
<connection id="0" incomingRoad="5" connectingRoad="0" contactPoint="start" type="default">
|
| 289 |
+
<laneLink from="2" to="-1" />
|
| 290 |
+
</connection>
|
| 291 |
+
<connection id="1" incomingRoad="4" connectingRoad="1" contactPoint="start" type="default">
|
| 292 |
+
<laneLink from="-1" to="-1" />
|
| 293 |
+
</connection>
|
| 294 |
+
<connection id="2" incomingRoad="5" connectingRoad="2" contactPoint="start" type="default">
|
| 295 |
+
<laneLink from="2" to="-1" />
|
| 296 |
+
</connection>
|
| 297 |
+
<connection id="3" incomingRoad="4" connectingRoad="3" contactPoint="start" type="default">
|
| 298 |
+
<laneLink from="1" to="-1" />
|
| 299 |
+
</connection>
|
| 300 |
+
</junction>
|
| 301 |
+
</OpenDRIVE>
|
automatum.dataset.html
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
automatum_data_crossing.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea2c528fafdb306ea20686065b15c39ae2332342594a0f8031477bdd8f91f19f
|
| 3 |
+
size 33479907
|
doc/VehicleDynamics.png
ADDED
|
Git LFS Details
|
doc/automatum_logo.png
ADDED
|
Git LFS Details
|
doc/icon_crossing.jpg
ADDED
|
|
Git LFS Details
|
doc/illustration.jpg
ADDED
|
Git LFS Details
|
doc/lane_distance.png
ADDED
|
Git LFS Details
|
doc/map_duenzlau.jpg
ADDED
|
Git LFS Details
|
doc/map_gaimersheim.jpg
ADDED
|
Git LFS Details
|
doc/point_to_lane_assignement_Sans.png
ADDED
|
Git LFS Details
|
doc/static_world_fig_02.png
ADDED
|
Git LFS Details
|
doc/trajectories_duenzlau.jpg
ADDED
|
Git LFS Details
|
doc/trajectories_gaimersheim.jpg
ADDED
|
Git LFS Details
|
doc/ttc.png
ADDED
|
Git LFS Details
|
example_scripts/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
example_scripts/01_lane_changes.py
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Lane Change Analysis — Automatum Data T-Crossing Dataset
|
| 3 |
+
Analyzes lane change behavior across all vehicles in a recording.
|
| 4 |
+
|
| 5 |
+
Usage:
|
| 6 |
+
python 01_lane_changes.py <path_to_recording_folder>
|
| 7 |
+
|
| 8 |
+
Example:
|
| 9 |
+
python 01_lane_changes.py ../T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2
|
| 10 |
+
"""
|
| 11 |
+
import sys
|
| 12 |
+
import os
|
| 13 |
+
from openautomatumdronedata.dataset import droneDataset
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def analyze_lane_changes(dataset_path):
|
| 17 |
+
print(f"Loading dataset from: {dataset_path}")
|
| 18 |
+
dataset = droneDataset(dataset_path)
|
| 19 |
+
dynWorld = dataset.dynWorld
|
| 20 |
+
|
| 21 |
+
print(f"Vehicles found: {len(dynWorld)}")
|
| 22 |
+
|
| 23 |
+
lane_change_counts = []
|
| 24 |
+
|
| 25 |
+
for dynObj in dynWorld.dynamicObjects.values():
|
| 26 |
+
lane_ids = dynObj.lane_id_vec
|
| 27 |
+
if len(lane_ids) == 0:
|
| 28 |
+
continue
|
| 29 |
+
|
| 30 |
+
changes = 0
|
| 31 |
+
current_lane = lane_ids[0]
|
| 32 |
+
for lane in lane_ids[1:]:
|
| 33 |
+
if lane != current_lane:
|
| 34 |
+
changes += 1
|
| 35 |
+
current_lane = lane
|
| 36 |
+
|
| 37 |
+
lane_change_counts.append({
|
| 38 |
+
"uuid": dynObj.UUID,
|
| 39 |
+
"type": dynObj.type,
|
| 40 |
+
"changes": changes,
|
| 41 |
+
})
|
| 42 |
+
|
| 43 |
+
sorted_by_changes = sorted(lane_change_counts, key=lambda x: x["changes"], reverse=True)
|
| 44 |
+
|
| 45 |
+
print("\n--- Top 10 vehicles with most lane changes ---")
|
| 46 |
+
for idx, item in enumerate(sorted_by_changes[:10]):
|
| 47 |
+
print(f"{idx+1}. Vehicle {item['uuid']} ({item['type']}): {item['changes']} lane changes")
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
if __name__ == "__main__":
|
| 51 |
+
if len(sys.argv) < 2:
|
| 52 |
+
print("Usage: python 01_lane_changes.py <path_to_recording_folder>")
|
| 53 |
+
else:
|
| 54 |
+
analyze_lane_changes(sys.argv[1])
|
example_scripts/02_heatmap_density.py
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Traffic Density Heatmap — Automatum Data T-Crossing Dataset
|
| 3 |
+
Generates a 2D heatmap of all vehicle positions over time.
|
| 4 |
+
|
| 5 |
+
Usage:
|
| 6 |
+
python 02_heatmap_density.py <path_to_recording_folder>
|
| 7 |
+
|
| 8 |
+
Example:
|
| 9 |
+
python 02_heatmap_density.py ../T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2
|
| 10 |
+
|
| 11 |
+
Output:
|
| 12 |
+
traffic_heatmap.png in the current directory
|
| 13 |
+
"""
|
| 14 |
+
import sys
|
| 15 |
+
import os
|
| 16 |
+
import numpy as np
|
| 17 |
+
import matplotlib.pyplot as plt
|
| 18 |
+
from openautomatumdronedata.dataset import droneDataset
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
def generate_density_heatmap(dataset_path, output_filename="traffic_heatmap.png"):
|
| 22 |
+
print(f"Loading dataset from: {dataset_path}")
|
| 23 |
+
dataset = droneDataset(dataset_path)
|
| 24 |
+
dynWorld = dataset.dynWorld
|
| 25 |
+
|
| 26 |
+
print("Extracting position data...")
|
| 27 |
+
all_x, all_y = [], []
|
| 28 |
+
|
| 29 |
+
for dynObj in dynWorld.dynamicObjects.values():
|
| 30 |
+
x_valid = [x for x in dynObj.x_vec if not np.isnan(x)]
|
| 31 |
+
y_valid = [y for y in dynObj.y_vec if not np.isnan(y)]
|
| 32 |
+
all_x.extend(x_valid)
|
| 33 |
+
all_y.extend(y_valid)
|
| 34 |
+
|
| 35 |
+
if not all_x:
|
| 36 |
+
print("No position data found!")
|
| 37 |
+
return
|
| 38 |
+
|
| 39 |
+
print(f"Extracted {len(all_x)} data points. Creating heatmap...")
|
| 40 |
+
|
| 41 |
+
plt.figure(figsize=(12, 8))
|
| 42 |
+
plt.style.use("dark_background")
|
| 43 |
+
plt.hist2d(all_x, all_y, bins=(200, 200), cmap="inferno", cmin=1)
|
| 44 |
+
plt.colorbar(label="Traffic density (data points)")
|
| 45 |
+
plt.title("Traffic Density Heatmap (Top-View)")
|
| 46 |
+
plt.xlabel("X-Position [m]")
|
| 47 |
+
plt.ylabel("Y-Position [m]")
|
| 48 |
+
plt.gca().set_aspect("equal", adjustable="box")
|
| 49 |
+
plt.tight_layout()
|
| 50 |
+
plt.savefig(output_filename, dpi=300)
|
| 51 |
+
print(f"Heatmap saved: {os.path.abspath(output_filename)}")
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
if __name__ == "__main__":
|
| 55 |
+
if len(sys.argv) < 2:
|
| 56 |
+
print("Usage: python 02_heatmap_density.py <path_to_recording_folder>")
|
| 57 |
+
else:
|
| 58 |
+
generate_density_heatmap(sys.argv[1])
|
example_scripts/03_high_acceleration.py
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
High Acceleration Detection — Automatum Data T-Crossing Dataset
|
| 3 |
+
Detects vehicles exceeding a given acceleration threshold.
|
| 4 |
+
|
| 5 |
+
Usage:
|
| 6 |
+
python 03_high_acceleration.py <path_to_recording_folder> [threshold_m_s2]
|
| 7 |
+
|
| 8 |
+
Example:
|
| 9 |
+
python 03_high_acceleration.py ../T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2 3.0
|
| 10 |
+
"""
|
| 11 |
+
import sys
|
| 12 |
+
import os
|
| 13 |
+
import numpy as np
|
| 14 |
+
from openautomatumdronedata.dataset import droneDataset
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
def detect_high_accelerations(dataset_path, acc_threshold=3.0):
|
| 18 |
+
print(f"Loading dataset from: {dataset_path}")
|
| 19 |
+
dataset = droneDataset(dataset_path)
|
| 20 |
+
dynWorld = dataset.dynWorld
|
| 21 |
+
|
| 22 |
+
print(f"Searching for accelerations > {acc_threshold} m/s^2...")
|
| 23 |
+
|
| 24 |
+
high_accel_vehicles = []
|
| 25 |
+
|
| 26 |
+
for dynObj in dynWorld.dynamicObjects.values():
|
| 27 |
+
length = min(len(dynObj.ax_vec), len(dynObj.ay_vec))
|
| 28 |
+
if length == 0:
|
| 29 |
+
continue
|
| 30 |
+
|
| 31 |
+
ax = np.array(dynObj.ax_vec[:length])
|
| 32 |
+
ay = np.array(dynObj.ay_vec[:length])
|
| 33 |
+
total_accel = np.sqrt(ax**2 + ay**2)
|
| 34 |
+
valid_accel = total_accel[~np.isnan(total_accel)]
|
| 35 |
+
|
| 36 |
+
if len(valid_accel) > 0:
|
| 37 |
+
max_accel = np.max(valid_accel)
|
| 38 |
+
if max_accel > acc_threshold:
|
| 39 |
+
high_accel_vehicles.append({
|
| 40 |
+
"uuid": dynObj.UUID,
|
| 41 |
+
"type": dynObj.type,
|
| 42 |
+
"max_accel": max_accel,
|
| 43 |
+
})
|
| 44 |
+
|
| 45 |
+
if not high_accel_vehicles:
|
| 46 |
+
print(f"No vehicles with acceleration > {acc_threshold} m/s^2 found.")
|
| 47 |
+
return
|
| 48 |
+
|
| 49 |
+
sorted_vehicles = sorted(high_accel_vehicles, key=lambda x: x["max_accel"], reverse=True)
|
| 50 |
+
|
| 51 |
+
print(f"\n--- {len(sorted_vehicles)} vehicles with notable acceleration ---")
|
| 52 |
+
for item in sorted_vehicles:
|
| 53 |
+
print(f"Vehicle {item['uuid']} ({item['type']}): max {item['max_accel']:.2f} m/s^2")
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
if __name__ == "__main__":
|
| 57 |
+
if len(sys.argv) < 2:
|
| 58 |
+
print("Usage: python 03_high_acceleration.py <path_to_recording_folder> [threshold]")
|
| 59 |
+
else:
|
| 60 |
+
threshold = float(sys.argv[2]) if len(sys.argv) >= 3 else 3.0
|
| 61 |
+
detect_high_accelerations(sys.argv[1], threshold)
|
example_scripts/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Example Scripts — Automatum Data T-Crossing Dataset
|
| 2 |
+
|
| 3 |
+
These scripts demonstrate how to work with the Automatum drone traffic data using the `openautomatumdronedata` Python library.
|
| 4 |
+
|
| 5 |
+
## Prerequisites
|
| 6 |
+
|
| 7 |
+
```bash
|
| 8 |
+
pip install openautomatumdronedata numpy matplotlib
|
| 9 |
+
```
|
| 10 |
+
|
| 11 |
+
## Scripts
|
| 12 |
+
|
| 13 |
+
| Script | Description |
|
| 14 |
+
|--------|-------------|
|
| 15 |
+
| `01_lane_changes.py` | Analyzes lane change frequency per vehicle and shows the top 10 |
|
| 16 |
+
| `02_heatmap_density.py` | Creates a traffic density heatmap from all position data |
|
| 17 |
+
| `03_high_acceleration.py` | Detects vehicles exceeding an acceleration threshold |
|
| 18 |
+
| `example_export_objects.py` | Exports per-vehicle JSON files with surrounding object data |
|
| 19 |
+
|
| 20 |
+
## Usage
|
| 21 |
+
|
| 22 |
+
All scripts take the path to a recording folder as their first argument:
|
| 23 |
+
|
| 24 |
+
```bash
|
| 25 |
+
python 01_lane_changes.py ../T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2
|
| 26 |
+
python 02_heatmap_density.py ../T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2
|
| 27 |
+
python 03_high_acceleration.py ../T-Crossing--GaimersheimStadtweg_e2e6-e2e6f4bb-4668-4654-ac7e-bcd90c9df4c2 3.0
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
## Learn More
|
| 31 |
+
|
| 32 |
+
- [Full Documentation](https://openautomatumdronedata.readthedocs.io)
|
| 33 |
+
- [Automatum Data Website](https://automatum-data.com)
|
example_scripts/example_export_objects.py
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
This is a demo script that was used to take the default dynamicWorld.json and extract every vehicle with its related objects and sorts them
|
| 3 |
+
to a new json file for each ego vehicle.
|
| 4 |
+
This allows an analysis of each maneuver without accessing other vehicles in the dynamicWorld.
|
| 5 |
+
Please note that this will generate a lot of redundant information.
|
| 6 |
+
|
| 7 |
+
"""
|
| 8 |
+
from openautomatumdronedata.dataset import droneDataset
|
| 9 |
+
import json
|
| 10 |
+
import os
|
| 11 |
+
import shutil
|
| 12 |
+
import sys
|
| 13 |
+
|
| 14 |
+
# Get all present recording folders in the current dataset
|
| 15 |
+
dataset_folders = list()
|
| 16 |
+
current_path = os.path.abspath(os.path.join(__file__ ,"../.."))
|
| 17 |
+
for item in os.listdir(current_path):
|
| 18 |
+
if os.path.isdir(os.path.join(current_path, item)) and item != "img":
|
| 19 |
+
dataset_folders.append(item)
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
for recording_folder in dataset_folders:
|
| 24 |
+
path = os.path.join(current_path, recording_folder)
|
| 25 |
+
|
| 26 |
+
# Create an output folder
|
| 27 |
+
export_path = os.path.join(current_path, recording_folder, "export_single_objects")
|
| 28 |
+
if not os.path.exists(export_path):
|
| 29 |
+
os.mkdir(export_path)
|
| 30 |
+
|
| 31 |
+
# Now we open each dataset and create a droneDataset object for it
|
| 32 |
+
dataset = droneDataset(path)
|
| 33 |
+
|
| 34 |
+
# Here we access the dynamic world, the global JSON file containing all recording infromation
|
| 35 |
+
dynWorld = dataset.dynWorld
|
| 36 |
+
|
| 37 |
+
# Here we open the plain JSON file without the automatum pip utility in parallel
|
| 38 |
+
f = open(os.path.join(path, "dynamicWorld.json"))
|
| 39 |
+
json_dict = json.load(f)
|
| 40 |
+
|
| 41 |
+
# Create a new dict to store all agregated values in
|
| 42 |
+
relation_dict = dict()
|
| 43 |
+
|
| 44 |
+
# Lets take every object (car, truck, etc.) from the plain JSON file and crate a new JSON containing only this object with all its surrounding objects
|
| 45 |
+
for object in json_dict["objects"]:
|
| 46 |
+
"""
|
| 47 |
+
Now we access the object_relation_dict_list, ttc_dict and tth_dict of the object to see which objects are the surrounding ones:
|
| 48 |
+
"object_relation_dict_list": [
|
| 49 |
+
{
|
| 50 |
+
"front_ego": null,
|
| 51 |
+
"behind_ego": "32499e60-30e9-4f41-8dc4-8699364db5dc",
|
| 52 |
+
"front_left": null,
|
| 53 |
+
"behind_left": null,
|
| 54 |
+
"front_right": "3e67c856-116a-4af5-96cc-39f5002f71a0",
|
| 55 |
+
"behind_right": "3002eaf3-a545-4e56-aa31-557f25e79643"
|
| 56 |
+
},
|
| 57 |
+
...
|
| 58 |
+
|
| 59 |
+
"ttc_dict_vec": [
|
| 60 |
+
{
|
| 61 |
+
"front_ego": -1,
|
| 62 |
+
"behind_ego": null,
|
| 63 |
+
"front_left": null,
|
| 64 |
+
"behind_left": null,
|
| 65 |
+
"front_right": 477.62466112341815,
|
| 66 |
+
"behind_right": null
|
| 67 |
+
},
|
| 68 |
+
...
|
| 69 |
+
|
| 70 |
+
"tth_dict_vec": [
|
| 71 |
+
{
|
| 72 |
+
"front_ego": null,
|
| 73 |
+
"behind_ego": 0.380621726114513,
|
| 74 |
+
"front_left": null,
|
| 75 |
+
"behind_left": null,
|
| 76 |
+
"front_right": -1,
|
| 77 |
+
"behind_right": 3.687973804225473
|
| 78 |
+
},
|
| 79 |
+
...
|
| 80 |
+
"""
|
| 81 |
+
for i, (object_relation_dict, ttc_dict, tth_dict, lat_dict, long_dict) in enumerate(zip(object["object_relation_dict_list"], object["ttc_dict_vec"], object["tth_dict_vec"], object["lat_dist_dict_vec"], object["long_dist_dict_vec"])):
|
| 82 |
+
time_stamp = object["time"][i]
|
| 83 |
+
for key in object_relation_dict.keys(): # key = "front_ego", relation = "UUID of the object in this position" for example
|
| 84 |
+
relation = object_relation_dict[key]
|
| 85 |
+
if relation is not None: # Check if there is an object at this position at all
|
| 86 |
+
relation_object = dynWorld.get_dynObj_by_UUID(relation) # Access the object with the automatum utility by its UUID
|
| 87 |
+
time_idx = relation_object.next_index_of_specific_time(time_stamp) # Get the time index of the object for the time stamp of our current ego vehicle we generate the new JSON for
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
# Copy all values from this object at the specific time
|
| 91 |
+
relation_dict["UUID"] = relation_object.UUID
|
| 92 |
+
relation_dict["length"] = relation_object.length
|
| 93 |
+
relation_dict["width"] = relation_object.width
|
| 94 |
+
relation_dict["x"] = relation_object.x_vec[time_idx]
|
| 95 |
+
relation_dict["y"] = relation_object.y_vec[time_idx]
|
| 96 |
+
relation_dict["vx"] = relation_object.vx_vec[time_idx]
|
| 97 |
+
relation_dict["vy"] = relation_object.vy_vec[time_idx]
|
| 98 |
+
relation_dict["ax"] = relation_object.ax_vec[time_idx]
|
| 99 |
+
relation_dict["ay"] = relation_object.ay_vec[time_idx]
|
| 100 |
+
relation_dict["jerk_x"] = relation_object.vx_vec[time_idx]
|
| 101 |
+
relation_dict["jerk_y"] = relation_object.vx_vec[time_idx]
|
| 102 |
+
relation_dict["curvature"] = relation_object.vx_vec[time_idx]
|
| 103 |
+
relation_dict["psi"] = relation_object.psi_vec[time_idx]
|
| 104 |
+
relation_dict["lane_id"] = relation_object.lane_id_vec[time_idx]
|
| 105 |
+
relation_dict["road_id"] = relation_object.road_id_vec[time_idx]
|
| 106 |
+
relation_dict["road_type"] = relation_object.vx_vec[time_idx]
|
| 107 |
+
relation_dict["distance_left_lane_marking"] = relation_object.distance_left_lane_marking[time_idx]
|
| 108 |
+
relation_dict["distance_right_lane_marking"] = relation_object.distance_right_lane_marking[time_idx]
|
| 109 |
+
relation_dict["ttc"] = ttc_dict[key]
|
| 110 |
+
relation_dict["tth"] = tth_dict[key]
|
| 111 |
+
relation_dict["lat_dist"] = lat_dict[key]
|
| 112 |
+
relation_dict["long_dist"] = long_dict[key]
|
| 113 |
+
|
| 114 |
+
else:
|
| 115 |
+
relation_dict = None
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
"""
|
| 119 |
+
Now we replace the initial single UUID of the object with all information we accumulated about the object behind the UUID
|
| 120 |
+
|
| 121 |
+
"object_relation_dict_list": [
|
| 122 |
+
{
|
| 123 |
+
"front_left": 0decabdc-fa4f-4f25-93ed-88eed734bba0,
|
| 124 |
+
...
|
| 125 |
+
|
| 126 |
+
"object_relation_dict_list": [
|
| 127 |
+
{
|
| 128 |
+
"front_left": {
|
| 129 |
+
"UUID": "0decabdc-fa4f-4f25-93ed-88eed734bba0",
|
| 130 |
+
"length": 4.172288426073395,
|
| 131 |
+
"width": 1.8141249203213998,
|
| 132 |
+
"vx": 46.54388406290268,
|
| 133 |
+
"vy": 0.005328263922638854,
|
| 134 |
+
"ax": 0.5608367460027531,
|
| 135 |
+
"ay": -0.5516711364613421,
|
| 136 |
+
"psi": -0.5643746012832805,
|
| 137 |
+
"x": 47.834595023288536,
|
| 138 |
+
"y": -32.82371510377445,
|
| 139 |
+
"lane_id": 3,
|
| 140 |
+
"road_id": 0,
|
| 141 |
+
"distance_left_lane_marking": 2.3102357971463827,
|
| 142 |
+
"distance_right_lane_marking": 1.6230526113559351
|
| 143 |
+
},
|
| 144 |
+
---
|
| 145 |
+
|
| 146 |
+
"""
|
| 147 |
+
object["object_relation_dict_list"][i][key] = relation_dict
|
| 148 |
+
|
| 149 |
+
relation_dict = dict() # Delete the dict for the next object
|
| 150 |
+
|
| 151 |
+
|
| 152 |
+
# Delete redundant information
|
| 153 |
+
del object["ttc_dict_vec"]
|
| 154 |
+
del object["tth_dict_vec"]
|
| 155 |
+
del object["lat_dist_dict_vec"]
|
| 156 |
+
del object["long_dist_dict_vec"]
|
| 157 |
+
|
| 158 |
+
# Finally we save each object as its own JSON
|
| 159 |
+
with open(os.path.join(export_path, object["UUID"] + ".json"), "w") as outfile:
|
| 160 |
+
json.dump(object, outfile)
|
| 161 |
+
print("Successfully exported object %s" % object["UUID"])
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
|