AutomatumPaul commited on
Commit
9d62b12
·
verified ·
1 Parent(s): b9eab81

Upload automatum_data_full_highway_drone_dataset — Sample_Data, docs, examples, archive

Browse files
.gitattributes CHANGED
@@ -58,3 +58,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ Sample_Data/hw-a9-appershofen-001-d8087340-8287-46b6-9612-869b09e68448/dynamicWorld.json filter=lfs diff=lfs merge=lfs -text
62
+ doc/IV21_Automatumd_Full_Drone_Dataset.pdf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,309 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - ALKS
16
+ - benchmark
17
+ - openscenario
18
+ pretty_name: "Automatum Data: Full Highway Drone Dataset"
19
+ task_categories:
20
+ - time-series-forecasting
21
+ - object-detection
22
+ size_categories:
23
+ - 100K<n<1M
24
+ ---
25
+
26
+ ![Automatum Data Logo](doc/automatum_logo.png)
27
+
28
+ # Automatum Data: Full Highway Drone Dataset
29
+
30
+ [![Website](https://img.shields.io/badge/Website-automatum--data.com-blue)](https://automatum-data.com)
31
+ [![Documentation](https://img.shields.io/badge/Docs-ReadTheDocs-green)](https://openautomatumdronedata.readthedocs.io)
32
+ [![PyPI](https://img.shields.io/badge/PyPI-openautomatumdronedata-orange)](https://pypi.org/project/openautomatumdronedata/)
33
+ [![License](https://img.shields.io/badge/License-CC%20BY--ND%204.0-lightgrey)](https://creativecommons.org/licenses/by-nd/4.0/)
34
+ [![Paper](https://img.shields.io/badge/Paper-IV2021-red)](doc/IV21_Automatumd_Full_Drone_Dataset.pdf)
35
+
36
+ ## Introduction
37
+
38
+ The **Automatum Data Full Highway Dataset** is a large-scale collection of high-precision vehicle trajectory data extracted from **30 hours of drone video** capturing **12 characteristic highway scenes** along the German A9 Autobahn. With approximately **200,000 tracked vehicles** and over **80,000 km of cumulative trajectory data**, this dataset represents one of the most comprehensive open drone-based highway datasets available.
39
+
40
+ The processing pipeline incorporates deep learning (Faster R-CNN) for detection and LOESS filtering for stabilization, achieving an exceptionally low **relative velocity error of less than 0.2%**, validated against instrumented reference vehicles.
41
+
42
+ ![Illustration of Drone Data Extraction](doc/illustration.jpg)
43
+
44
+ ## Dataset at a Glance
45
+
46
+ | Metric | Value |
47
+ |--------|-------|
48
+ | **Scenario Type** | Highway (straight segments) |
49
+ | **Recordings** | 114 |
50
+ | **Locations** | 11 along the A9 Autobahn |
51
+ | **Total Duration** | ~30 hours |
52
+ | **Total Vehicles Tracked** | ~200,000 |
53
+ | **Total Distance** | ~80,000 km |
54
+ | **Velocity Error** | < 0.2% (validated with reference vehicles) |
55
+ | **Coordinate System** | UTM Zone 32U |
56
+ | **FPS** | 29.97 |
57
+ | **License** | CC BY-ND 4.0 |
58
+
59
+ ![Highway Scenario](doc/icon_highway.jpg)
60
+
61
+ ## Repository Structure
62
+
63
+ ```
64
+ automatum-data-full-highway/
65
+ ├── README.md # This file
66
+ ├── doc/ # Documentation images, logo, paper
67
+ ├── example_scripts/ # Ready-to-use Python analysis scripts
68
+ ├── Sample_Data/ # One recording unpacked for quick preview
69
+ │ └── hw-a9-appershofen-001-.../
70
+ │ ├── dynamicWorld.json
71
+ │ ├── staticWorld.xodr
72
+ │ ├── recording.html
73
+ │ └── img/
74
+ └── automatum_data_full_highway_drone_dataset.zip # All 114 recordings as archive (~4 GB)
75
+ ```
76
+
77
+ > **Quick Preview:** Browse `Sample_Data/` to explore the data structure before downloading the full archive (~4 GB). The sample recording can be loaded directly with the `openautomatumdronedata` Python library.
78
+
79
+ ## KPI Comparison with Established Datasets
80
+
81
+ | Metric | **Automatum Data** | highD Dataset | NGSIM (US-101 / I-80) |
82
+ |--------|-------------------|---------------|------------------------|
83
+ | **Total Duration** | **30 hours** | 16.5 hours | ~1.5 hours |
84
+ | **Total Vehicles** | **~200,000** | 110,000 | ~thousands |
85
+ | **Total Distance** | **~80,000 km** | 45,000 km | limited segments |
86
+ | **Source / Perspective** | Drone / Aerial | Drone / Aerial | Fixed Cameras & Drones |
87
+ | **Error / Accuracy** | **< 0.2% velocity** | typically < 10 cm | Known clipping issues |
88
+ | **Static Description** | **OpenDRIVE XODR** | simple XML/CSV | Basic annotations |
89
+ | **Data Format** | **JSON** | CSV | CSV |
90
+ | **Object Relationships** | **Built-in (TTC, TTH)** | Must compute | Must compute |
91
+ | **OpenSCENARIO** | **Available on request** | No | No |
92
+
93
+ ![ALKS Scenario](doc/icon_alks.jpg)
94
+
95
+ ## Recording Locations
96
+
97
+ The 114 recordings span 11 locations along the German A9 Autobahn:
98
+
99
+ | Location | Recordings | Description |
100
+ |----------|-----------|-------------|
101
+ | Denkendorf | 36 | Major section with high traffic density |
102
+ | Stammham | 16 | Mixed traffic scenarios |
103
+ | Appershofen | 14 | Varied speed profiles |
104
+ | Dunzendorf | 11 | Characteristic highway flow |
105
+ | Kinding | 9 | Multi-lane segments |
106
+ | Brunn | 9 | Standard highway traffic |
107
+ | Hausen | 7 | Diverse driving patterns |
108
+ | Untermässing | 6 | Rural highway section |
109
+ | Heppberg Park | 3 | Near rest area |
110
+ | Apperszell | 2 | Additional coverage |
111
+ | Ingolstadt Nord | 1 | Urban highway approach |
112
+
113
+ ## Data Structure
114
+
115
+ Each recording folder follows the naming convention `hw-a9-{location}-{sequence}-{uuid}` and contains:
116
+
117
+ ```
118
+ hw-a9-appershofen-001-uuid/
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/ # (may contain visualizations)
123
+ ```
124
+
125
+ ### dynamicWorld.json
126
+
127
+ The core data file contains for each tracked vehicle:
128
+
129
+ - **Position vectors**: `x_vec`, `y_vec` — UTM coordinates over time
130
+ - **Velocity vectors**: `vx_vec`, `vy_vec` — in m/s
131
+ - **Acceleration vectors**: `ax_vec`, `ay_vec` — in m/s²
132
+ - **Jerk vectors**: `jerk_x_vec`, `jerk_y_vec`
133
+ - **Heading**: `psi_vec` — orientation angle
134
+ - **Lane assignment**: `lane_id_vec`, `road_id_vec` — linked to XODR
135
+ - **Object dimensions**: `length`, `width`
136
+ - **Object relationships**: `object_relation_dict_list` — front/behind/left/right neighbors
137
+ - **Safety metrics**: `ttc_dict_vec` (Time-to-Collision), `tth_dict_vec` (Time-to-Headway)
138
+ - **Lane distances**: `distance_left_lane_marking`, `distance_right_lane_marking`
139
+
140
+ ![Vehicle Dynamics](doc/VehicleDynamics.png)
141
+
142
+ ### staticWorld.xodr
143
+
144
+ OpenDRIVE 1.6 format file defining:
145
+
146
+ - Road network topology and geometry
147
+ - Lane definitions with widths and types
148
+ - Speed limits (typically 100 km/h, unlimited sections)
149
+ - Road markings and surface properties
150
+
151
+ ![Static World](doc/static_world_fig_02.png)
152
+ ![Static World Detail](doc/static_world_fig_04.png)
153
+
154
+ ### Key Metrics Explained
155
+
156
+ ![Time-to-Collision](doc/ttc.png)
157
+ ![Lane Distance](doc/lane_distance.png)
158
+ ![Point-to-Lane Assignment](doc/point_to_lane_assignement_Sans.png)
159
+
160
+ ## Quick Start
161
+
162
+ ### Installation
163
+
164
+ ```bash
165
+ pip install openautomatumdronedata
166
+ ```
167
+
168
+ ### Load and Explore
169
+
170
+ ```python
171
+ from openautomatumdronedata.dataset import droneDataset
172
+ import os
173
+
174
+ # Point to one recording folder
175
+ path = os.path.abspath("hw-a9-appershofen-001-uuid")
176
+ dataset = droneDataset(path)
177
+
178
+ # Access dynamic world
179
+ dynWorld = dataset.dynWorld
180
+
181
+ print(f"UUID: {dynWorld.UUID}")
182
+ print(f"Duration: {dynWorld.maxTime:.1f} seconds")
183
+ print(f"Frames: {dynWorld.frame_count}")
184
+ print(f"Vehicles: {len(dynWorld)}")
185
+
186
+ # Get all vehicles visible at t=5.0s
187
+ objects = dynWorld.get_list_of_dynamic_objects_for_specific_time(5.0)
188
+ for obj in objects[:5]:
189
+ speed_kmh = ((obj.vx_vec[0]**2 + obj.vy_vec[0]**2)**0.5) * 3.6
190
+ print(f" {obj.UUID} ({obj.type}) — {speed_kmh:.1f} km/h")
191
+ ```
192
+
193
+ ### Using with Hugging Face
194
+
195
+ ```python
196
+ from huggingface_hub import snapshot_download, hf_hub_download
197
+ import zipfile, os
198
+
199
+ # Option 1: Download only the sample for a quick look (~200 MB)
200
+ local_path = snapshot_download(
201
+ repo_id="AutomatumData/automatum-data-full-highway",
202
+ repo_type="dataset",
203
+ allow_patterns=["Sample_Data/**"]
204
+ )
205
+
206
+ # Option 2: Download the full archive (~4 GB)
207
+ archive = hf_hub_download(
208
+ repo_id="AutomatumData/automatum-data-full-highway",
209
+ filename="automatum_data_full_highway_drone_dataset.zip",
210
+ repo_type="dataset"
211
+ )
212
+ # Extract
213
+ with zipfile.ZipFile(archive, 'r') as z:
214
+ z.extractall("automatum_data_full_highway")
215
+
216
+ # Load with openautomatumdronedata
217
+ from openautomatumdronedata.dataset import droneDataset
218
+ dataset = droneDataset("automatum_data_full_highway/hw-a9-appershofen-001-d8087340-8287-46b6-9612-869b09e68448")
219
+ print(f"Vehicles: {len(dataset.dynWorld)}")
220
+ ```
221
+
222
+ ### Batch Processing All Recordings
223
+
224
+ ```python
225
+ from openautomatumdronedata.dataset import droneDataset
226
+ import os
227
+ import json
228
+
229
+ base_path = "path/to/automatum_data_full_highway_drone_dataset"
230
+
231
+ stats = []
232
+ for folder in sorted(os.listdir(base_path)):
233
+ full_path = os.path.join(base_path, folder)
234
+ if not os.path.isdir(full_path) or not folder.startswith("hw-"):
235
+ continue
236
+
237
+ dataset = droneDataset(full_path)
238
+ dw = dataset.dynWorld
239
+
240
+ stats.append({
241
+ "recording": folder,
242
+ "vehicles": len(dw),
243
+ "duration_s": dw.maxTime,
244
+ "frames": dw.frame_count,
245
+ })
246
+ print(f"{folder}: {len(dw)} vehicles, {dw.maxTime:.0f}s")
247
+
248
+ # Save summary
249
+ with open("dataset_summary.json", "w") as f:
250
+ json.dump(stats, f, indent=2)
251
+ ```
252
+
253
+ ## Example Scripts
254
+
255
+ See the `example_scripts/` folder for ready-to-use analysis scripts:
256
+
257
+ - **`01_lane_changes.py`** — Analyze lane change behavior across all vehicles
258
+ - **`02_heatmap_density.py`** — Generate traffic density heatmaps
259
+ - **`03_high_acceleration.py`** — Detect high-acceleration events
260
+
261
+ ## Research Paper
262
+
263
+ The methodology and validation of this dataset are described in our peer-reviewed publication:
264
+
265
+ > **AUTOMATUM DATA: Drone-based highway dataset for development and validation of automated driving software for research and commercial applications**
266
+ > Paul Spannaus, Peter Zechel, Kilian Lenz
267
+ > *IEEE Intelligent Vehicles Symposium (IV), 2021*
268
+
269
+ The paper is included in this repository: [`doc/IV21_Automatumd_Full_Drone_Dataset.pdf`](doc/IV21_Automatumd_Full_Drone_Dataset.pdf)
270
+
271
+ Key findings from the paper:
272
+
273
+ - Processing pipeline validated with instrumented reference vehicles
274
+ - Relative velocity error < 0.2%
275
+ - Deep learning detection (Faster R-CNN) combined with LOESS filtering
276
+ - High-precision UTM world coordinate mapping
277
+ - Standardized OpenDRIVE export for seamless integration with simulation tools
278
+
279
+ ## Research Use & Extended Data Pool
280
+
281
+ **These publicly available datasets are intended exclusively for research purposes.**
282
+
283
+ This dataset, while comprehensive, is still an excerpt from the full **Automatum Data Pool** containing over **1,000 hours of processed drone video** across highways, intersections, roundabouts, and urban scenarios. For commercial use or access to further datasets, including OpenSCENARIO exports, please contact us via our website:
284
+
285
+ **[automatum-data.com](https://automatum-data.com)**
286
+
287
+ ## Citation
288
+
289
+ If you use this dataset in your research, please cite:
290
+
291
+ ```bibtex
292
+ @inproceedings{spannaus2021automatum,
293
+ title={AUTOMATUM DATA: Drone-based highway dataset for development and validation of automated driving software},
294
+ author={Spannaus, Paul and Zechel, Peter and Lenz, Kilian},
295
+ booktitle={IEEE Intelligent Vehicles Symposium (IV)},
296
+ year={2021}
297
+ }
298
+ ```
299
+
300
+ ## License
301
+
302
+ 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/).
303
+
304
+ ## Contact
305
+
306
+ - **Website**: [automatum-data.com](https://automatum-data.com)
307
+ - **Email**: info@automatum-data.com
308
+ - **HuggingFace**: [AutomatumData](https://huggingface.co/AutomatumData)
309
+ - **Documentation**: [openautomatumdronedata.readthedocs.io](https://openautomatumdronedata.readthedocs.io)
Sample_Data/hw-a9-appershofen-001-d8087340-8287-46b6-9612-869b09e68448/dynamicWorld.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cca1cc69c5783b77b03bb6de4bb3c96a25db6a84843098faf911509d8ee522ca
3
+ size 187189924
Sample_Data/hw-a9-appershofen-001-d8087340-8287-46b6-9612-869b09e68448/hw-a9-appershofen-001-d8087340-8287-46b6-9612-869b09e68448.html ADDED
The diff for this file is too large to render. See raw diff
 
Sample_Data/hw-a9-appershofen-001-d8087340-8287-46b6-9612-869b09e68448/staticWorld.xodr ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <OpenDRIVE xmlns="http://www.opendrive.org">
3
+ <header revMajor="1" revMinor="4" date="2021-15-06T07:59:06">
4
+ <userData code="Created by IPGRoad" value="LibVersion 9.1" />
5
+ </header>
6
+ <road name="object 1" length="270.394" id="0" junction="-1">
7
+ <type s="0" type="rural">
8
+ <speed max="100" unit="km/h" />
9
+ </type>
10
+ <planView>
11
+ <geometry s="0" x="-50.266" y="-135.516" hdg="1.48592096527041" length="270.394">
12
+ <line />
13
+ </geometry>
14
+ </planView>
15
+ <lanes>
16
+ <laneSection s="0">
17
+ <left>
18
+ <lane id="5" type="shoulder">
19
+ <width sOffset="0" a="3.7" b="0" c="0" d="0" />
20
+ <material sOffset="0" friction="1" />
21
+ <speed sOffset="0" max="100" unit="km/h" />
22
+ </lane>
23
+ <lane id="4" type="driving">
24
+ <width sOffset="0" a="4.3" b="0" c="0" d="0" />
25
+ <roadMark sOffset="1e-07" type="solid" color="white" width="0.12" height="0" />
26
+ <material sOffset="0" friction="1" />
27
+ <speed sOffset="0" max="100" unit="km/h" />
28
+ </lane>
29
+ <lane id="3" type="driving">
30
+ <width sOffset="0" a="3.8" b="0" c="0" d="0" />
31
+ <roadMark sOffset="1e-07" type="broken" color="white" width="0.12" height="0" />
32
+ <material sOffset="0" friction="1" />
33
+ <speed sOffset="0" max="100" unit="km/h" />
34
+ </lane>
35
+ <lane id="2" type="driving">
36
+ <width sOffset="0" a="4" b="0" c="0" d="0" />
37
+ <roadMark sOffset="1e-07" type="broken" color="white" width="0.12" height="0" />
38
+ <material sOffset="0" friction="1" />
39
+ <speed sOffset="0" max="100" unit="km/h" />
40
+ </lane>
41
+ <lane id="1" type="none">
42
+ <width sOffset="0" a="2.65" b="0" c="0" d="0" />
43
+ <roadMark sOffset="1e-07" type="solid" color="white" width="0.12" height="0" />
44
+ <material sOffset="0" friction="1" />
45
+ <speed sOffset="0" max="100" unit="km/h" />
46
+ </lane>
47
+ </left>
48
+ <center>
49
+ <lane id="0" type="driving" />
50
+ </center>
51
+ <right>
52
+ <lane id="-1" type="none">
53
+ <width sOffset="0" a="2.65" b="0" c="0" d="0" />
54
+ <roadMark sOffset="1e-07" type="solid" color="white" width="0.12" height="0" />
55
+ <material sOffset="0" friction="1" />
56
+ <speed sOffset="0" max="100" unit="km/h" />
57
+ </lane>
58
+ <lane id="-2" type="driving">
59
+ <width sOffset="0" a="4" b="0" c="0" d="0" />
60
+ <roadMark sOffset="1e-07" type="broken" color="white" width="0.12" height="0" />
61
+ <material sOffset="0" friction="1" />
62
+ <speed sOffset="0" max="100" unit="km/h" />
63
+ </lane>
64
+ <lane id="-3" type="driving">
65
+ <width sOffset="0" a="3.8" b="0" c="0" d="0" />
66
+ <roadMark sOffset="1e-07" type="broken" color="white" width="0.12" height="0" />
67
+ <material sOffset="0" friction="1" />
68
+ <speed sOffset="0" max="100" unit="km/h" />
69
+ </lane>
70
+ <lane id="-4" type="driving">
71
+ <width sOffset="0" a="4.3" b="0" c="0" d="0" />
72
+ <roadMark sOffset="1e-07" type="solid" color="white" width="0.12" height="0" />
73
+ <material sOffset="0" friction="1" />
74
+ <speed sOffset="0" max="100" unit="km/h" />
75
+ </lane>
76
+ <lane id="-5" type="shoulder">
77
+ <width sOffset="0" a="3.7" b="0" c="0" d="0" />
78
+ <material sOffset="0" friction="1" />
79
+ <speed sOffset="0" max="100" unit="km/h" />
80
+ </lane>
81
+ </right>
82
+ </laneSection>
83
+ </lanes>
84
+ <objects>
85
+ <object type="IPGRoad Traffic barrier" name="object 19" id="1" s="1e-07" t="0.3" zOffset="0" validLength="270.3939998" orientation="none" hdg="0" pitch="0" roll="0" length="270.3939998" width="0.155" height="0.75">
86
+ <repeat s="1e-07" length="270.3939998" distance="0" tStart="0.3" tEnd="0.3" heightStart="0.75" heightEnd="0.75" zOffsetStart="0" zOffsetEnd="0" widthStart="0.155" widthEnd="0.155" />
87
+ <userData code="IPGRoad" value="Traffic barrier">
88
+ <parameters side="R" type="2" interval="3.000000" detectability="1.000000" visibility="1" pType="2" eType0="0" eType1="0" />
89
+ </userData>
90
+ </object>
91
+ <object type="IPGRoad Traffic barrier" name="object 63" id="2" s="1e-07" t="18.45" zOffset="0" validLength="270.3939998" orientation="none" hdg="0" pitch="0" roll="0" length="270.3939998" width="0.155" height="0.75">
92
+ <repeat s="1e-07" length="270.3939998" distance="0" tStart="18.45" tEnd="18.45" heightStart="0.75" heightEnd="0.75" zOffsetStart="0" zOffsetEnd="0" widthStart="0.155" widthEnd="0.155" />
93
+ <userData code="IPGRoad" value="Traffic barrier">
94
+ <parameters side="L" type="2" interval="3.000000" detectability="1.000000" visibility="1" pType="2" eType0="0" eType1="0" />
95
+ </userData>
96
+ </object>
97
+ <object type="IPGRoad Traffic barrier" name="object 78" id="3" s="1e-07" t="-0.3" zOffset="0" validLength="270.3939998" orientation="none" hdg="0" pitch="0" roll="0" length="270.3939998" width="0.155" height="0.75">
98
+ <repeat s="1e-07" length="270.3939998" distance="0" tStart="-0.3" tEnd="-0.3" heightStart="0.75" heightEnd="0.75" zOffsetStart="0" zOffsetEnd="0" widthStart="0.155" widthEnd="0.155" />
99
+ <userData code="IPGRoad" value="Traffic barrier">
100
+ <parameters side="L" type="2" interval="3.000000" detectability="1.000000" visibility="1" pType="2" eType0="0" eType1="0" />
101
+ </userData>
102
+ </object>
103
+ <object type="IPGRoad Traffic barrier" name="object 122" id="4" s="1e-07" t="-18.45" zOffset="0" validLength="270.3939998" orientation="none" hdg="0" pitch="0" roll="0" length="270.3939998" width="0.155" height="0.75">
104
+ <repeat s="1e-07" length="270.3939998" distance="0" tStart="-18.45" tEnd="-18.45" heightStart="0.75" heightEnd="0.75" zOffsetStart="0" zOffsetEnd="0" widthStart="0.155" widthEnd="0.155" />
105
+ <userData code="IPGRoad" value="Traffic barrier">
106
+ <parameters side="R" type="2" interval="3.000000" detectability="1.000000" visibility="1" pType="2" eType0="0" eType1="0" />
107
+ </userData>
108
+ </object>
109
+ </objects>
110
+ </road>
111
+ </OpenDRIVE>
automatum.data.highway.html ADDED
The diff for this file is too large to render. See raw diff
 
automatum_data_full_highway_drone_dataset.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a562db9c980e535d3f5fd1e1721c96d91390c996a5d57cf07969619629a6681
3
+ size 4228386323
doc/IV21_Automatumd_Full_Drone_Dataset.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e661ce8c16d4787e328c16a176430f42770312514406bd3ffb3369b6fc5b9930
3
+ size 2765918
doc/VehicleDynamics.png ADDED

Git LFS Details

  • SHA256: 320a6da6e7a29d3d4c8d6b20a4117805d1aaf0e38d1699fa884f92503d31d2c2
  • Pointer size: 130 Bytes
  • Size of remote file: 16.9 kB
doc/automatum_logo.png ADDED

Git LFS Details

  • SHA256: eded7ce43163ecb898166a7bc587235f59b15bd17856235867d404760ca54c3e
  • Pointer size: 130 Bytes
  • Size of remote file: 43 kB
doc/icon_alks.jpg ADDED

Git LFS Details

  • SHA256: 7957285bcea92dae84b8845f0b971d14b934fe91f561dee841837735232815c5
  • Pointer size: 132 Bytes
  • Size of remote file: 4.8 MB
doc/icon_highway.jpg ADDED

Git LFS Details

  • SHA256: 89bfd0fabce9030347deaf24eb5321250ea9142ee52c996f8b16e04f74bd0747
  • Pointer size: 132 Bytes
  • Size of remote file: 3.59 MB
doc/illustration.jpg ADDED

Git LFS Details

  • SHA256: 0b9287acfe10df4dfaa33c3a1fc579acacca950477da2b18e397ad7363f91bf4
  • Pointer size: 132 Bytes
  • Size of remote file: 2.76 MB
doc/lane_distance.png ADDED

Git LFS Details

  • SHA256: cb10140e7a9a8a563c97f45aca806c49a8789e38558d834f178946166ec3abfe
  • Pointer size: 130 Bytes
  • Size of remote file: 15.1 kB
doc/point_to_lane_assignement_Sans.png ADDED

Git LFS Details

  • SHA256: b863d5b518eae3d2326cf1594c8d26f3159fe60d534c30f3b9d50ca759f3f330
  • Pointer size: 130 Bytes
  • Size of remote file: 21.6 kB
doc/static_world_fig_02.png ADDED

Git LFS Details

  • SHA256: 3c046e208a04c088bd863f0a9f4d2cbf7ad7c84c0284530655d031f5a8541854
  • Pointer size: 131 Bytes
  • Size of remote file: 166 kB
doc/static_world_fig_04.png ADDED

Git LFS Details

  • SHA256: c1184ef0ae3c7c5865d028d3936f5a3a0869180eb7957dfe28dc748baeaddfe5
  • Pointer size: 131 Bytes
  • Size of remote file: 137 kB
doc/ttc.png ADDED

Git LFS Details

  • SHA256: c443a4927e4282e4afd9b8bf00061174175b0ad0d7fcdc662c23a58eb1a5f5d7
  • Pointer size: 130 Bytes
  • Size of remote file: 15.5 kB
example_scripts/01_lane_changes.py ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Lane Change Analysis — Automatum Data Full Highway 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 ../hw-a9-denkendorf-001-d8087340-8287-46b6-9612-869b09e68448
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 Full Highway 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 ../hw-a9-denkendorf-001-d8087340-8287-46b6-9612-869b09e68448
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 Full Highway 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 ../hw-a9-denkendorf-001-d8087340-8287-46b6-9612-869b09e68448 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,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Example Scripts — Automatum Data Full Highway 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 ../hw-a9-denkendorf-001-uuid
25
+ python 02_heatmap_density.py ../hw-a9-appershofen-001-uuid
26
+ python 03_high_acceleration.py ../hw-a9-brunn-001-uuid 3.0
27
+ ```
28
+
29
+ ## Processing All Recordings
30
+
31
+ To batch-process all 114 recordings:
32
+
33
+ ```python
34
+ import os
35
+ from openautomatumdronedata.dataset import droneDataset
36
+
37
+ base = "path/to/automatum_data_full_highway_drone_dataset"
38
+ for folder in sorted(os.listdir(base)):
39
+ if folder.startswith("hw-"):
40
+ dataset = droneDataset(os.path.join(base, folder))
41
+ print(f"{folder}: {len(dataset.dynWorld)} vehicles")
42
+ ```
43
+
44
+ ## Learn More
45
+
46
+ - [Full Documentation](https://openautomatumdronedata.readthedocs.io)
47
+ - [Research Paper (IV2021)](../doc/IV21_Automatumd_Full_Drone_Dataset.pdf)
48
+ - [Automatum Data Website](https://automatum-data.com)