Upload automatum_data_highway_with_ramps — Sample_Data, docs, examples, archive
Browse files- .gitattributes +2 -0
- README.md +316 -0
- Sample_Data/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33.html +3 -0
- Sample_Data/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33/dynamicWorld.json +3 -0
- Sample_Data/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33/img/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33_centerImg_thumb.jpg +3 -0
- Sample_Data/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33/img/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33_map.jpg +3 -0
- Sample_Data/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33/img/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33_trajectories.jpg +3 -0
- Sample_Data/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33/img/kpis.json +10 -0
- Sample_Data/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33/staticWorld.xodr +176 -0
- automatum.dataset.html +0 -0
- automatum_data_highway_with_ramps.zip +3 -0
- doc/VehicleDynamics.png +3 -0
- doc/automatum_logo.png +3 -0
- doc/icon_ramps.jpg +3 -0
- doc/illustration.jpg +3 -0
- doc/lane_distance.png +3 -0
- doc/map_allersberg.jpg +3 -0
- doc/map_brunnthal.jpg +3 -0
- doc/map_feldkirchen.jpg +3 -0
- doc/map_kinding.jpg +3 -0
- doc/point_to_lane_assignement_Sans.png +3 -0
- doc/static_world_fig_02.png +3 -0
- doc/trajectories_allersberg.jpg +3 -0
- doc/trajectories_brunnthal.jpg +3 -0
- doc/trajectories_feldkirchen.jpg +3 -0
- doc/trajectories_kinding.jpg +3 -0
- doc/ttc.png +3 -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 +32 -0
.gitattributes
CHANGED
|
@@ -66,3 +66,5 @@ Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33/Highway-A9-Kinding_
|
|
| 66 |
Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33/dynamicWorld.json filter=lfs diff=lfs merge=lfs -text
|
| 67 |
Highway-A99-FeldkirchenNord_0a45-0a45233c-5a85-466b-af41-84a799752af4/Highway-A99-FeldkirchenNord_0a45-0a45233c-5a85-466b-af41-84a799752af4.html filter=lfs diff=lfs merge=lfs -text
|
| 68 |
Highway-A99-FeldkirchenNord_0a45-0a45233c-5a85-466b-af41-84a799752af4/dynamicWorld.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 66 |
Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33/dynamicWorld.json filter=lfs diff=lfs merge=lfs -text
|
| 67 |
Highway-A99-FeldkirchenNord_0a45-0a45233c-5a85-466b-af41-84a799752af4/Highway-A99-FeldkirchenNord_0a45-0a45233c-5a85-466b-af41-84a799752af4.html filter=lfs diff=lfs merge=lfs -text
|
| 68 |
Highway-A99-FeldkirchenNord_0a45-0a45233c-5a85-466b-af41-84a799752af4/dynamicWorld.json filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
Sample_Data/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33.html filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
Sample_Data/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33/dynamicWorld.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,316 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
- highway
|
| 15 |
+
- ramps
|
| 16 |
+
- on-ramp
|
| 17 |
+
- off-ramp
|
| 18 |
+
- openscenario
|
| 19 |
+
pretty_name: "Automatum Data: Highway with Ramps Drone Dataset"
|
| 20 |
+
task_categories:
|
| 21 |
+
- time-series-forecasting
|
| 22 |
+
- object-detection
|
| 23 |
+
size_categories:
|
| 24 |
+
- 1K<n<10K
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
|
| 29 |
+
# Automatum Data: Highway with Ramps Drone Dataset
|
| 30 |
+
|
| 31 |
+
[](https://automatum-data.com)
|
| 32 |
+
[](https://openautomatumdronedata.readthedocs.io)
|
| 33 |
+
[](https://pypi.org/project/openautomatumdronedata/)
|
| 34 |
+
[](https://creativecommons.org/licenses/by-nd/4.0/)
|
| 35 |
+
|
| 36 |
+
## Introduction
|
| 37 |
+
|
| 38 |
+
The **Automatum Data Highway with Ramps Dataset** contains high-precision movement data of traffic participants (cars, trucks, vans) extracted from drone recordings on German Autobahn segments **with on-ramps and off-ramps**. Captured from a bird's eye view, the dataset provides complete trajectories with velocities, accelerations, lane assignments, and object relationships — perfectly suited for merging behavior analysis, ALKS (Automated Lane Keeping System) validation, and highway scenario generation.
|
| 39 |
+
|
| 40 |
+
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.
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
|
| 44 |
+
## Dataset at a Glance
|
| 45 |
+
|
| 46 |
+
| Metric | Value |
|
| 47 |
+
|--------|-------|
|
| 48 |
+
| **Scenario Type** | Highway with On/Off-Ramps |
|
| 49 |
+
| **Recordings** | 4 |
|
| 50 |
+
| **Locations** | A9 Kinding, A8 Brunnthal, A99 Feldkirchen, A9 Allersberg |
|
| 51 |
+
| **Total Duration** | ~58 minutes (0.96 hours) |
|
| 52 |
+
| **Total Distance** | 4,555.3 km |
|
| 53 |
+
| **Total Vehicles Tracked** | 7,178 |
|
| 54 |
+
| **Vehicle Types** | 6,415 Cars, 466 Trucks, 229 Vans |
|
| 55 |
+
| **Max Trajectory Length** | 639.0 m |
|
| 56 |
+
| **Coordinate System** | UTM Zone 32U |
|
| 57 |
+
| **FPS** | 29.97 |
|
| 58 |
+
| **License** | CC BY-ND 4.0 |
|
| 59 |
+
|
| 60 |
+

|
| 61 |
+
|
| 62 |
+
## Repository Structure
|
| 63 |
+
|
| 64 |
+
```
|
| 65 |
+
automatum-data-highway-with-ramps/
|
| 66 |
+
├── README.md # This file
|
| 67 |
+
├── doc/ # Documentation images, logo, technical diagrams
|
| 68 |
+
├── example_scripts/ # Ready-to-use Python analysis scripts
|
| 69 |
+
├── Sample_Data/ # One recording unpacked for quick preview
|
| 70 |
+
│ └── Highway-A9-Kinding_45c1-.../
|
| 71 |
+
│ ├── dynamicWorld.json
|
| 72 |
+
│ ├── staticWorld.xodr
|
| 73 |
+
│ ├── recording.html
|
| 74 |
+
│ └── img/
|
| 75 |
+
└── automatum_data_highway_with_ramps.zip # All recordings as archive
|
| 76 |
+
```
|
| 77 |
+
|
| 78 |
+
> **Quick Preview:** Browse `Sample_Data/` to explore the data structure before downloading the full archive (~1.5 GB). The sample recording can be loaded directly with the `openautomatumdronedata` Python library.
|
| 79 |
+
|
| 80 |
+
## Recording Overview
|
| 81 |
+
|
| 82 |
+
### 1. Highway A9 — Kinding
|
| 83 |
+
|
| 84 |
+
| | |
|
| 85 |
+
|---|---|
|
| 86 |
+
|  |  |
|
| 87 |
+
|
| 88 |
+
| KPI | Value |
|
| 89 |
+
|-----|-------|
|
| 90 |
+
| Trajectories | 1,131 |
|
| 91 |
+
| Duration | 582.0 s (~9.7 min) |
|
| 92 |
+
| Traffic Flow | 6,995.7 veh/h |
|
| 93 |
+
| Traffic Density | 56.7 veh/km |
|
| 94 |
+
| Avg. Trajectory Length | 623.6 m |
|
| 95 |
+
| Avg. Speed | 123.5 km/h |
|
| 96 |
+
| Max. Speed | 201.1 km/h |
|
| 97 |
+
| Max. Acceleration | 6.3 m/s² |
|
| 98 |
+
| Location | 48.9970°N, 11.3763°E |
|
| 99 |
+
|
| 100 |
+
### 2. Highway A8 — Brunnthal Süd
|
| 101 |
+
|
| 102 |
+
| | |
|
| 103 |
+
|---|---|
|
| 104 |
+
|  |  |
|
| 105 |
+
|
| 106 |
+
| KPI | Value |
|
| 107 |
+
|-----|-------|
|
| 108 |
+
| Trajectories | 2,250 |
|
| 109 |
+
| Duration | 874.2 s (~14.6 min) |
|
| 110 |
+
| Traffic Flow | 9,265.9 veh/h |
|
| 111 |
+
| Traffic Density | 89.9 veh/km |
|
| 112 |
+
| Avg. Trajectory Length | 639.0 m |
|
| 113 |
+
| Avg. Speed | 103.1 km/h |
|
| 114 |
+
| Max. Speed | 187.0 km/h |
|
| 115 |
+
| Max. Acceleration | 4.8 m/s² |
|
| 116 |
+
| Location | 48.0072°N, 11.6713°E |
|
| 117 |
+
|
| 118 |
+
### 3. Highway A99 — Feldkirchen Nord
|
| 119 |
+
|
| 120 |
+
| | |
|
| 121 |
+
|---|---|
|
| 122 |
+
|  |  |
|
| 123 |
+
|
| 124 |
+
| KPI | Value |
|
| 125 |
+
|-----|-------|
|
| 126 |
+
| Trajectories | 1,801 |
|
| 127 |
+
| Duration | 1,136.9 s (~19.0 min) |
|
| 128 |
+
| Traffic Flow | 5,703.0 veh/h |
|
| 129 |
+
| Traffic Density | 53.4 veh/km |
|
| 130 |
+
| Avg. Trajectory Length | 636.7 m |
|
| 131 |
+
| Avg. Speed | 106.9 km/h |
|
| 132 |
+
| Max. Speed | 221.9 km/h |
|
| 133 |
+
| Max. Acceleration | 5.2 m/s² |
|
| 134 |
+
| Location | 48.1487°N, 11.7569°E |
|
| 135 |
+
|
| 136 |
+
### 4. Highway A9 — Allersberg
|
| 137 |
+
|
| 138 |
+
| | |
|
| 139 |
+
|---|---|
|
| 140 |
+
|  |  |
|
| 141 |
+
|
| 142 |
+
| KPI | Value |
|
| 143 |
+
|-----|-------|
|
| 144 |
+
| Trajectories | 1,996 |
|
| 145 |
+
| Duration | 873.0 s (~14.6 min) |
|
| 146 |
+
| Traffic Flow | 8,230.6 veh/h |
|
| 147 |
+
| Traffic Density | 77.8 veh/km |
|
| 148 |
+
| Avg. Trajectory Length | 634.0 m |
|
| 149 |
+
| Avg. Speed | 105.7 km/h |
|
| 150 |
+
| Max. Speed | 195.7 km/h |
|
| 151 |
+
| Max. Acceleration | 7.4 m/s² |
|
| 152 |
+
| Location | 49.2529°N, 11.2169°E |
|
| 153 |
+
|
| 154 |
+
## Data Structure
|
| 155 |
+
|
| 156 |
+
Each recording folder contains:
|
| 157 |
+
|
| 158 |
+
```
|
| 159 |
+
recording_folder/
|
| 160 |
+
├── dynamicWorld.json # Trajectories, velocities, accelerations, bounding boxes
|
| 161 |
+
├── staticWorld.xodr # Road geometry in OpenDRIVE format
|
| 162 |
+
├── recording_name.html # Interactive metadata overview (Bokeh)
|
| 163 |
+
└── img/
|
| 164 |
+
├── kpis.json # Key performance indicators
|
| 165 |
+
├── *_map.jpg # Aerial map view
|
| 166 |
+
├── *_trajectories.jpg # Trajectory visualization
|
| 167 |
+
└── *_centerImg_thumb.jpg # Center frame thumbnail
|
| 168 |
+
```
|
| 169 |
+
|
| 170 |
+
### dynamicWorld.json
|
| 171 |
+
|
| 172 |
+
The core data file contains for each tracked vehicle:
|
| 173 |
+
|
| 174 |
+
- **Position vectors**: `x_vec`, `y_vec` — UTM coordinates over time
|
| 175 |
+
- **Velocity vectors**: `vx_vec`, `vy_vec` — in m/s
|
| 176 |
+
- **Acceleration vectors**: `ax_vec`, `ay_vec` — in m/s²
|
| 177 |
+
- **Jerk vectors**: `jerk_x_vec`, `jerk_y_vec`
|
| 178 |
+
- **Heading**: `psi_vec` — orientation angle
|
| 179 |
+
- **Lane assignment**: `lane_id_vec`, `road_id_vec` — linked to XODR
|
| 180 |
+
- **Object dimensions**: `length`, `width`
|
| 181 |
+
- **Object relationships**: `object_relation_dict_list` — front/behind/left/right neighbors
|
| 182 |
+
- **Safety metrics**: `ttc_dict_vec` (Time-to-Collision), `tth_dict_vec` (Time-to-Headway)
|
| 183 |
+
- **Lane distances**: `distance_left_lane_marking`, `distance_right_lane_marking`
|
| 184 |
+
|
| 185 |
+

|
| 186 |
+
|
| 187 |
+
### staticWorld.xodr
|
| 188 |
+
|
| 189 |
+
OpenDRIVE 1.6 format file defining:
|
| 190 |
+
|
| 191 |
+
- Road network topology and geometry (incl. ramp connections)
|
| 192 |
+
- Lane definitions with widths and types
|
| 193 |
+
- Junction and ramp configurations
|
| 194 |
+
- Speed limits and road markings
|
| 195 |
+
|
| 196 |
+

|
| 197 |
+
|
| 198 |
+
### Key Metrics Explained
|
| 199 |
+
|
| 200 |
+

|
| 201 |
+

|
| 202 |
+

|
| 203 |
+
|
| 204 |
+
## Quick Start
|
| 205 |
+
|
| 206 |
+
### Installation
|
| 207 |
+
|
| 208 |
+
```bash
|
| 209 |
+
pip install openautomatumdronedata
|
| 210 |
+
```
|
| 211 |
+
|
| 212 |
+
### Load and Explore
|
| 213 |
+
|
| 214 |
+
```python
|
| 215 |
+
from openautomatumdronedata.dataset import droneDataset
|
| 216 |
+
import os
|
| 217 |
+
|
| 218 |
+
# Point to one recording folder
|
| 219 |
+
path = os.path.abspath("Highway-A9-Allersberg_9b82-9b822c8f-b3dc-4c5c-824d-2354203d0e7b")
|
| 220 |
+
dataset = droneDataset(path)
|
| 221 |
+
|
| 222 |
+
# Access dynamic world
|
| 223 |
+
dynWorld = dataset.dynWorld
|
| 224 |
+
|
| 225 |
+
print(f"UUID: {dynWorld.UUID}")
|
| 226 |
+
print(f"Duration: {dynWorld.maxTime:.1f} seconds")
|
| 227 |
+
print(f"Frames: {dynWorld.frame_count}")
|
| 228 |
+
print(f"Vehicles: {len(dynWorld)}")
|
| 229 |
+
|
| 230 |
+
# Get all vehicles visible at t=1.0s
|
| 231 |
+
objects = dynWorld.get_list_of_dynamic_objects_for_specific_time(1.0)
|
| 232 |
+
for obj in objects[:5]:
|
| 233 |
+
print(f" {obj.UUID} ({obj.type}) — v={((obj.vx_vec[0]**2+obj.vy_vec[0]**2)**0.5)*3.6:.1f} km/h")
|
| 234 |
+
```
|
| 235 |
+
|
| 236 |
+
### Using with Hugging Face
|
| 237 |
+
|
| 238 |
+
```python
|
| 239 |
+
from huggingface_hub import snapshot_download, hf_hub_download
|
| 240 |
+
import zipfile, os
|
| 241 |
+
|
| 242 |
+
# Option 1: Download only the sample for a quick look
|
| 243 |
+
local_path = snapshot_download(
|
| 244 |
+
repo_id="AutomatumData/automatum-data-highway-with-ramps",
|
| 245 |
+
repo_type="dataset",
|
| 246 |
+
allow_patterns=["Sample_Data/**"]
|
| 247 |
+
)
|
| 248 |
+
|
| 249 |
+
# Option 2: Download the full archive
|
| 250 |
+
archive = hf_hub_download(
|
| 251 |
+
repo_id="AutomatumData/automatum-data-highway-with-ramps",
|
| 252 |
+
filename="automatum_data_highway_with_ramps.zip",
|
| 253 |
+
repo_type="dataset"
|
| 254 |
+
)
|
| 255 |
+
# Extract
|
| 256 |
+
with zipfile.ZipFile(archive, 'r') as z:
|
| 257 |
+
z.extractall("automatum_data_highway_with_ramps")
|
| 258 |
+
|
| 259 |
+
# Load with openautomatumdronedata
|
| 260 |
+
from openautomatumdronedata.dataset import droneDataset
|
| 261 |
+
dataset = droneDataset("automatum_data_highway_with_ramps/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33")
|
| 262 |
+
print(f"Vehicles: {len(dataset.dynWorld)}")
|
| 263 |
+
```
|
| 264 |
+
|
| 265 |
+
## Example Scripts
|
| 266 |
+
|
| 267 |
+
See the `example_scripts/` folder for ready-to-use analysis scripts:
|
| 268 |
+
|
| 269 |
+
- **`01_lane_changes.py`** — Analyze lane change behavior across all vehicles
|
| 270 |
+
- **`02_heatmap_density.py`** — Generate traffic density heatmaps
|
| 271 |
+
- **`03_high_acceleration.py`** — Detect high-acceleration events
|
| 272 |
+
|
| 273 |
+
## Comparison with Established Datasets
|
| 274 |
+
|
| 275 |
+
| Feature | Automatum Data | highD | NGSIM |
|
| 276 |
+
|---------|---------------|-------|-------|
|
| 277 |
+
| **Data Format** | JSON + OpenDRIVE XODR | CSV + XML | CSV |
|
| 278 |
+
| **Road Geometry** | OpenDRIVE 1.6 standard | Simple annotations | Basic annotations |
|
| 279 |
+
| **Coordinate System** | UTM world coordinates | Local coordinates | Local coordinates |
|
| 280 |
+
| **Object Relationships** | Built-in (TTC, TTH, distances) | Must compute | Must compute |
|
| 281 |
+
| **Velocity Error** | < 0.2% (validated) | < 10 cm positional | Known issues |
|
| 282 |
+
| **Ramp Scenarios** | Yes (on/off-ramps) | No ramps | Limited |
|
| 283 |
+
| **Python Library** | `openautomatumdronedata` | Custom scripts | Custom scripts |
|
| 284 |
+
| **OpenSCENARIO** | Available on request | No | No |
|
| 285 |
+
|
| 286 |
+
## Research Use & Extended Data Pool
|
| 287 |
+
|
| 288 |
+
**These publicly available datasets are intended exclusively for research purposes.**
|
| 289 |
+
|
| 290 |
+
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:
|
| 291 |
+
|
| 292 |
+
**[automatum-data.com](https://automatum-data.com)**
|
| 293 |
+
|
| 294 |
+
## Citation
|
| 295 |
+
|
| 296 |
+
If you use this dataset in your research, please cite:
|
| 297 |
+
|
| 298 |
+
```bibtex
|
| 299 |
+
@inproceedings{spannaus2021automatum,
|
| 300 |
+
title={AUTOMATUM DATA: Drone-based highway dataset for development and validation of automated driving software},
|
| 301 |
+
author={Spannaus, Paul and Zechel, Peter and Lenz, Kilian},
|
| 302 |
+
booktitle={IEEE Intelligent Vehicles Symposium (IV)},
|
| 303 |
+
year={2021}
|
| 304 |
+
}
|
| 305 |
+
```
|
| 306 |
+
|
| 307 |
+
## License
|
| 308 |
+
|
| 309 |
+
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/).
|
| 310 |
+
|
| 311 |
+
## Contact
|
| 312 |
+
|
| 313 |
+
- **Website**: [automatum-data.com](https://automatum-data.com)
|
| 314 |
+
- **Email**: info@automatum-data.com
|
| 315 |
+
- **HuggingFace**: [AutomatumData](https://huggingface.co/AutomatumData)
|
| 316 |
+
- **Documentation**: [openautomatumdronedata.readthedocs.io](https://openautomatumdronedata.readthedocs.io)
|
Sample_Data/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33.html
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:23b6bd6bda71f34744ae9b523ce35fd698c26102894bda5785d8f0ec86cfb15f
|
| 3 |
+
size 23841046
|
Sample_Data/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33/dynamicWorld.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aba2cafce24a70a66c78a15390121e6e73ef9ed888f1e835aa5dcb4520bceaf0
|
| 3 |
+
size 1433125883
|
Sample_Data/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33/img/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33_centerImg_thumb.jpg
ADDED
|
|
Git LFS Details
|
Sample_Data/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33/img/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33_map.jpg
ADDED
|
Git LFS Details
|
Sample_Data/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33/img/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33_trajectories.jpg
ADDED
|
Git LFS Details
|
Sample_Data/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33/img/kpis.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Anzahl Trajektorien": 1131,
|
| 3 |
+
"Aufzeichnungsdauer (s)": 582.0,
|
| 4 |
+
"Verkehrsfluss (veh/h)": 6995.7,
|
| 5 |
+
"Verkehrsdichte (veh/km)": 56.7,
|
| 6 |
+
"Ø Trajektorienlänge (m)": 623.6,
|
| 7 |
+
"Ø Geschwindigkeit (km/h)": 123.5,
|
| 8 |
+
"Maximale Geschwindigkeit (km/h)": 201.1,
|
| 9 |
+
"Maximale Beschleunigung (m/s²)": 6.3
|
| 10 |
+
}
|
Sample_Data/Highway-A9-Kinding_45c1-45c1201e-ada4-46da-b885-c7cfa4b0cf33/staticWorld.xodr
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
| 2 |
+
<OpenDRIVE xmlns="http://www.opendrive.org">
|
| 3 |
+
<header revMajor="1" revMinor="6" date="2022-17-11T00:41:17">
|
| 4 |
+
<userData code="Created by IPGRoad" value="LibVersion 11.0.1" />
|
| 5 |
+
</header>
|
| 6 |
+
<road name="object 1" length="672.483361560665" id="0" junction="-1" rule="RHT">
|
| 7 |
+
<type s="0" type="rural" country="DE">
|
| 8 |
+
<speed max="100" unit="km/h" />
|
| 9 |
+
</type>
|
| 10 |
+
<planView>
|
| 11 |
+
<geometry s="0" x="337.062" y="-242.774" hdg="2.4071755576431" length="28.121683506122">
|
| 12 |
+
<paramPoly3 aU="0" bU="0.999994596656998" cU="5.97331554965186e-007" dU="-3.86466208437236e-008" aV="0" bV="-2.77555756156289e-016" cV="0.000155492488783378" dV="1.10534950326773e-006" pRange="arcLength" />
|
| 13 |
+
</geometry>
|
| 14 |
+
<geometry s="28.121683506122" x="316.091" y="-224.038" hdg="2.41854363848259" length="50.1247749176753">
|
| 15 |
+
<paramPoly3 aU="0" bU="0.999978406580181" cU="1.64768431258221e-007" dU="-3.85631975074631e-008" aV="0" bV="-2.77555756156289e-016" cV="0.000248748255939673" dV="1.37614153493612e-007" pRange="arcLength" />
|
| 16 |
+
</geometry>
|
| 17 |
+
<geometry s="78.2464584237974" x="278.087" y="-191.357" hdg="2.44451964293744" length="80.1798382415834">
|
| 18 |
+
<paramPoly3 aU="0" bU="0.999981208379717" cU="1.36582601164648e-006" dU="-6.74746924623385e-008" aV="0" bV="-4.44089209850063e-016" cV="0.000269464766452188" dV="1.48444810153707e-007" pRange="arcLength" />
|
| 19 |
+
</geometry>
|
| 20 |
+
<geometry s="158.426296665381" x="215.471" y="-141.288" hdg="2.49061201452722" length="85.5954304925789">
|
| 21 |
+
<paramPoly3 aU="0" bU="0.999967237638054" cU="-7.87623512314971e-007" dU="-3.52557735905108e-008" aV="0" bV="0" cV="0.000305536261061924" dV="-3.61494100045037e-007" pRange="arcLength" />
|
| 22 |
+
</geometry>
|
| 23 |
+
<geometry s="244.02172715796" x="146.186" y="-91.039" hdg="2.53498419063238" length="116.341243269094">
|
| 24 |
+
<paramPoly3 aU="0" bU="1.00002906672039" cU="-3.9583869794757e-007" dU="-2.73339804577176e-008" aV="0" bV="-3.33066907387547e-016" cV="0.000212931251437218" dV="-4.50078792784484e-008" pRange="arcLength" />
|
| 25 |
+
</geometry>
|
| 26 |
+
<geometry s="360.362970427053" x="49.036" y="-27.05" hdg="2.58272172129219" length="45.3546863621145">
|
| 27 |
+
<paramPoly3 aU="0" bU="1.00004012216205" cU="-5.13466573494561e-007" dU="-4.50589898777449e-008" aV="0" bV="-5.55111512312578e-017" cV="0.00019750108399548" dV="7.34496491930628e-007" pRange="arcLength" />
|
| 28 |
+
</geometry>
|
| 29 |
+
<geometry s="405.717656789168" x="10.333" y="-3.40600000000001" hdg="2.6051722194646" length="87.4889464987652">
|
| 30 |
+
<paramPoly3 aU="0" bU="0.999905489881634" cU="3.44020573084735e-008" dU="-3.51000289091327e-008" aV="0" bV="-1.66533453693773e-016" cV="0.000297476977340578" dV="-3.24789679496525e-007" pRange="arcLength" />
|
| 31 |
+
</geometry>
|
| 32 |
+
<geometry s="493.206603287933" x="-65.8930000000001" y="39.52" hdg="2.6497763064381" length="121.218185902525">
|
| 33 |
+
<paramPoly3 aU="0" bU="1.00005427965816" cU="2.9411713207465e-007" dU="-3.99209393598364e-008" aV="0" bV="-4.44089209850063e-016" cV="0.000212409112021928" dV="9.2975291648784e-008" pRange="arcLength" />
|
| 34 |
+
</geometry>
|
| 35 |
+
<geometry s="614.424789190459" x="-174.243" y="93.837" hdg="2.70540404567009" length="58.0585723702069">
|
| 36 |
+
<paramPoly3 aU="0" bU="1.00001565998648" cU="-5.1181989892994e-007" dU="-2.87919227564183e-008" aV="0" bV="-1.66533453693773e-016" cV="0.000246680838192989" dV="-3.73942954164404e-007" pRange="arcLength" />
|
| 37 |
+
</geometry>
|
| 38 |
+
</planView>
|
| 39 |
+
<lanes>
|
| 40 |
+
<laneSection s="0">
|
| 41 |
+
<left>
|
| 42 |
+
<lane id="8" type="shoulder">
|
| 43 |
+
<width sOffset="0" a="2.5" b="0" c="0" d="0" />
|
| 44 |
+
<material sOffset="0" friction="1" />
|
| 45 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 46 |
+
</lane>
|
| 47 |
+
<lane id="7" type="border">
|
| 48 |
+
<width sOffset="0" a="0.5" b="0" c="0" d="0" />
|
| 49 |
+
<material sOffset="0" friction="1" />
|
| 50 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 51 |
+
</lane>
|
| 52 |
+
<lane id="6" type="stop">
|
| 53 |
+
<width sOffset="0" a="2.663" b="0" c="0" d="0" />
|
| 54 |
+
<material sOffset="0" friction="1" />
|
| 55 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 56 |
+
</lane>
|
| 57 |
+
<lane id="5" type="driving">
|
| 58 |
+
<width sOffset="0" a="3.984" b="2.16840434497101e-019" c="-1.57883099100111e-005" d="5.07368808815555e-008" />
|
| 59 |
+
<width sOffset="150" a="3.8" b="-0.00131175351349834" c="7.04328648668886e-006" d="-7.3852176210265e-009" />
|
| 60 |
+
<roadMark sOffset="1e-007" type="solid" color="standard" width="0.3" height="0">
|
| 61 |
+
<type name="solid" width="0.3">
|
| 62 |
+
<line length="0" space="0" tOffset="-0" sOffset="0" width="0.3" />
|
| 63 |
+
</type>
|
| 64 |
+
</roadMark>
|
| 65 |
+
<material sOffset="0" friction="1" />
|
| 66 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 67 |
+
</lane>
|
| 68 |
+
<lane id="4" type="driving">
|
| 69 |
+
<width sOffset="0" a="3.805" b="0" c="0" d="0" />
|
| 70 |
+
<roadMark sOffset="2.748" type="broken" color="standard" width="0.15" height="0">
|
| 71 |
+
<type name="broken" width="0.15">
|
| 72 |
+
<line length="6" space="11.9" tOffset="-0" sOffset="0" width="0.15" />
|
| 73 |
+
</type>
|
| 74 |
+
</roadMark>
|
| 75 |
+
<material sOffset="0" friction="1" />
|
| 76 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 77 |
+
</lane>
|
| 78 |
+
<lane id="3" type="driving">
|
| 79 |
+
<width sOffset="0" a="3.722" b="0" c="1.52734737172933e-005" d="-4.90824173745482e-008" />
|
| 80 |
+
<width sOffset="150" a="3.9" b="0.001268978942406" c="-6.81361410125334e-006" d="7.14439530729737e-009" />
|
| 81 |
+
<roadMark sOffset="2.923" type="broken" color="standard" width="0.15" height="0">
|
| 82 |
+
<type name="broken" width="0.15">
|
| 83 |
+
<line length="6" space="11.93" tOffset="-0" sOffset="0" width="0.15" />
|
| 84 |
+
</type>
|
| 85 |
+
</roadMark>
|
| 86 |
+
<material sOffset="0" friction="1" />
|
| 87 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 88 |
+
</lane>
|
| 89 |
+
<lane id="2" type="border">
|
| 90 |
+
<width sOffset="0" a="1.418" b="0" c="0" d="0" />
|
| 91 |
+
<roadMark sOffset="1e-007" type="solid" color="white" width="0.3" height="0">
|
| 92 |
+
<type name="solid" width="0.3">
|
| 93 |
+
<line length="0" space="0" tOffset="-0" sOffset="0" width="0.3" />
|
| 94 |
+
</type>
|
| 95 |
+
</roadMark>
|
| 96 |
+
<material sOffset="0" friction="1" />
|
| 97 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 98 |
+
</lane>
|
| 99 |
+
<lane id="1" type="shoulder">
|
| 100 |
+
<width sOffset="0" a="1.686" b="0" c="1.41961944991598e-006" d="-1.40734034581059e-009" />
|
| 101 |
+
<material sOffset="0" friction="1" />
|
| 102 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 103 |
+
</lane>
|
| 104 |
+
</left>
|
| 105 |
+
<center>
|
| 106 |
+
<lane id="0" type="driving" />
|
| 107 |
+
</center>
|
| 108 |
+
<right>
|
| 109 |
+
<lane id="-1" type="shoulder">
|
| 110 |
+
<width sOffset="0" a="1.628" b="0" c="-4.16598604928615e-006" d="4.12995204284603e-009" />
|
| 111 |
+
<material sOffset="0" friction="1" />
|
| 112 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 113 |
+
</lane>
|
| 114 |
+
<lane id="-2" type="border">
|
| 115 |
+
<width sOffset="0" a="1.235" b="0" c="-2.0164417548112e-005" d="6.4799820691117e-008" />
|
| 116 |
+
<width sOffset="150" a="1" b="-0.0016753373677832" c="8.99550176289065e-006" d="-9.43220728772407e-009" />
|
| 117 |
+
<roadMark sOffset="1e-007" type="solid" color="white" width="0.3" height="0">
|
| 118 |
+
<type name="solid" width="0.3">
|
| 119 |
+
<line length="0" space="0" tOffset="0" sOffset="0" width="0.3" />
|
| 120 |
+
</type>
|
| 121 |
+
</roadMark>
|
| 122 |
+
<material sOffset="0" friction="1" />
|
| 123 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 124 |
+
</lane>
|
| 125 |
+
<lane id="-3" type="driving">
|
| 126 |
+
<width sOffset="0" a="3.95" b="0" c="-3.82115233850921e-005" d="1.80669415159873e-007" />
|
| 127 |
+
<width sOffset="150" a="3.7" b="0.000731728507763818" c="4.30897134368509e-005" d="-3.54485671842548e-007" />
|
| 128 |
+
<width sOffset="200" a="3.8" b="0.0023820573126298" c="-1.00831373395313e-005" d="1.06703623448512e-008" />
|
| 129 |
+
<roadMark sOffset="5.137" type="broken" color="standard" width="0.15" height="0">
|
| 130 |
+
<type name="broken" width="0.15">
|
| 131 |
+
<line length="6" space="11.92" tOffset="0" sOffset="0" width="0.15" />
|
| 132 |
+
</type>
|
| 133 |
+
</roadMark>
|
| 134 |
+
<material sOffset="0" friction="1" />
|
| 135 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 136 |
+
</lane>
|
| 137 |
+
<lane id="-4" type="driving">
|
| 138 |
+
<width sOffset="0" a="3.741" b="0" c="0" d="0" />
|
| 139 |
+
<roadMark sOffset="5.312" type="broken" color="standard" width="0.15" height="0">
|
| 140 |
+
<type name="broken" width="0.15">
|
| 141 |
+
<line length="6" space="11.94" tOffset="0" sOffset="0" width="0.15" />
|
| 142 |
+
</type>
|
| 143 |
+
</roadMark>
|
| 144 |
+
<material sOffset="0" friction="1" />
|
| 145 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 146 |
+
</lane>
|
| 147 |
+
<lane id="-5" type="driving">
|
| 148 |
+
<width sOffset="0" a="3.97" b="0" c="0" d="0" />
|
| 149 |
+
<roadMark sOffset="1e-007" type="solid" color="standard" width="0.3" height="0">
|
| 150 |
+
<type name="solid" width="0.3">
|
| 151 |
+
<line length="0" space="0" tOffset="0" sOffset="0" width="0.3" />
|
| 152 |
+
</type>
|
| 153 |
+
</roadMark>
|
| 154 |
+
<material sOffset="0" friction="1" />
|
| 155 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 156 |
+
</lane>
|
| 157 |
+
<lane id="-6" type="stop">
|
| 158 |
+
<width sOffset="0" a="3.087" b="0" c="0" d="0" />
|
| 159 |
+
<material sOffset="0" friction="1" />
|
| 160 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 161 |
+
</lane>
|
| 162 |
+
<lane id="-7" type="border">
|
| 163 |
+
<width sOffset="0" a="0.665" b="0" c="0" d="0" />
|
| 164 |
+
<material sOffset="0" friction="1" />
|
| 165 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 166 |
+
</lane>
|
| 167 |
+
<lane id="-8" type="shoulder">
|
| 168 |
+
<width sOffset="0" a="2.5" b="0" c="0" d="0" />
|
| 169 |
+
<material sOffset="0" friction="1" />
|
| 170 |
+
<speed sOffset="0" max="100" unit="km/h" />
|
| 171 |
+
</lane>
|
| 172 |
+
</right>
|
| 173 |
+
</laneSection>
|
| 174 |
+
</lanes>
|
| 175 |
+
</road>
|
| 176 |
+
</OpenDRIVE>
|
automatum.dataset.html
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
automatum_data_highway_with_ramps.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13653df10a5e8e87407259b8e26db35237e1e05915f652613860075a6a274a99
|
| 3 |
+
size 1507190732
|
doc/VehicleDynamics.png
ADDED
|
Git LFS Details
|
doc/automatum_logo.png
ADDED
|
Git LFS Details
|
doc/icon_ramps.jpg
ADDED
|
|
Git LFS Details
|
doc/illustration.jpg
ADDED
|
Git LFS Details
|
doc/lane_distance.png
ADDED
|
Git LFS Details
|
doc/map_allersberg.jpg
ADDED
|
Git LFS Details
|
doc/map_brunnthal.jpg
ADDED
|
Git LFS Details
|
doc/map_feldkirchen.jpg
ADDED
|
Git LFS Details
|
doc/map_kinding.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_allersberg.jpg
ADDED
|
Git LFS Details
|
doc/trajectories_brunnthal.jpg
ADDED
|
Git LFS Details
|
doc/trajectories_feldkirchen.jpg
ADDED
|
Git LFS Details
|
doc/trajectories_kinding.jpg
ADDED
|
Git LFS Details
|
doc/ttc.png
ADDED
|
Git LFS Details
|
example_scripts/01_lane_changes.py
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Lane Change Analysis — Automatum Data Highway with Ramps 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 ../Highway-A9-Allersberg_9b82-9b822c8f-b3dc-4c5c-824d-2354203d0e7b
|
| 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 Highway with Ramps 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 ../Highway-A9-Allersberg_9b82-9b822c8f-b3dc-4c5c-824d-2354203d0e7b
|
| 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=(16, 6))
|
| 42 |
+
plt.style.use("dark_background")
|
| 43 |
+
plt.hist2d(all_x, all_y, bins=(300, 100), cmap="inferno", cmin=1)
|
| 44 |
+
plt.colorbar(label="Traffic density (data points)")
|
| 45 |
+
plt.title("Highway 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 Highway with Ramps 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 ../Highway-A9-Allersberg_9b82-9b822c8f-b3dc-4c5c-824d-2354203d0e7b 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,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Example Scripts — Automatum Data Highway with Ramps 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 |
+
|
| 19 |
+
## Usage
|
| 20 |
+
|
| 21 |
+
All scripts take the path to a recording folder as their first argument:
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
python 01_lane_changes.py ../Highway-A9-Allersberg_9b82-9b822c8f-b3dc-4c5c-824d-2354203d0e7b
|
| 25 |
+
python 02_heatmap_density.py ../Highway-A8-Brunnthal_Sued_96cf-96cf7529-ddef-4685-bd27-a9568b74e501
|
| 26 |
+
python 03_high_acceleration.py ../Highway-A99-FeldkirchenNord_0a45-0a45233c-5a85-466b-af41-84a799752af4 3.0
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
## Learn More
|
| 30 |
+
|
| 31 |
+
- [Full Documentation](https://openautomatumdronedata.readthedocs.io)
|
| 32 |
+
- [Automatum Data Website](https://automatum-data.com)
|