01_download_sample.py
Download a small slice of a sample (README, metadata, telemetry, a few clips) with the Hugging Face client.
Needs: huggingface_hub 2.4.0, a Hugging Face login, the sample form accepted
Tested 2026-11-26 · Python 3.15.2 · huggingface_hub 2.4.0
python 01_download_sample.py us-urban-driving-events
What it printed when we ran it
downloaded to ./us-urban-driving-events
02_event_clip_with_telemetry.py
Open an event clip, read its accelerometer, gyroscope and satellite-positioning samples, and put each on its video frame.
Needs: numpy, opencv-python
Tested 2026-11-26 · Python 3.12.14 · numpy 2.5.4 · opencv-python 5.1.0
python 02_event_clip_with_telemetry.py ./us-urban-driving-events
What it printed when we ran it
54 clips in metadata.csv
rd_3f22a1f07655: Moped / motor scooter | Orlando | dusk, clear | 1280x720 h264 29.67 fps, 6.167 s | measured video-sensor offset 0.48 s
video: 186 frames at 30.00 fps
gyro: 9 samples
accel: 1 samples
gps_motion: 2 samples
largest rotation at t = 3.142 s -> frame 94 (deg/s: x -0.07, y 1, z 0.78)
saved rd_3f22a1f07655_frame_94.jpg
t 0.783 s frame 23 speed 1 mph heading 178.4 deg
t 1.783 s frame 53 speed 0 mph heading None deg
03_collision_timeline.py
Read a real collision: impact time on the video, speed before it, the crash pulse with peak g and change in speed, and a frame one second before impact.
Needs: numpy, opencv-python
Tested 2026-11-26 · Python 3.12.14 · numpy 2.5.4 · opencv-python 5.1.0
python 03_collision_timeline.py ./real-driving-events-and-scenarios/events/collisions/brooklyn
What it printed when we ran it
East New York, Brooklyn, NY 2026-10-07
records: {'sample_info': 1, 'accel': 94, 'gyro': 329, 'gps': 32, 'gnss_imu': 1200, 'crash_pulse': 1}
impact at video time 22.00 s; speed 3 s before: 23.1 mph, at impact: 22.9 mph
crash pulse: trigger 22.024 s, 791 accel samples (accel m/s^2 gravity-removed; gyro rad/s; gravity m/s^2; t s from the start of the road video)
peak horizontal 1.934 g, pulse 0.126 s, delta-v 1.78-1.87 mph
saved one_second_before_impact.jpg (30.0 fps video)
04_run_scenario_esmini.sh
Play a real-event scenario (OpenSCENARIO with its OpenDRIVE map) in esmini without a window, export every road user's path to CSV, and count log errors.
Needs: esmini v3.11.0 (official release from github.com/esmini/esmini), bash
Tested 2026-11-26 · esmini v3.11.0 Linux · scenarios/roaddata_sc1
bash 04_run_scenario_esmini.sh ~/esmini/bin ./real-driving-events-and-scenarios/scenarios/roaddata_sc1
What it printed when we ran it
esmini GIT TAG: v3.11.0
entities: Cyclist Ego
errors in log: 0
05_lerobot_episode.py
Read one robot episode in LeRobot v2.1 format without the LeRobot library: the feature list, the step-by-step state and velocity command, and the head-camera video.
Needs: pyarrow, opencv-python
Tested 2026-11-26 · Python 3.12.14 · pyarrow 18.1.0 · opencv-python 5.1.0
python 05_lerobot_episode.py ./h1-street-crossing-lerobot 0
What it printed when we ran it
format v2.1 | fps 12 | episodes 46 | frames 5991
features: action [2], observation.state [25], observation.images.ego_view [252, 448, 3], timestamp [1], frame_index [1], episode_index [1], index [1], task_index [1]
episode 0: 135 steps, columns: ['observation.state', 'action', 'timestamp', 'frame_index', 'episode_index', 'index', 'task_index', 'annotation.human.task_description', 'next.reward', 'next.done']
action (velocity command) at start, middle, end: [0.0, 0.0] [1.665, 0.9] [0.0, 0.0]
head-camera video: 135 frames at 12.0 fps, 448 x 252
Versions are the ones we ran. Newer versions of the same libraries will most likely work, but we have not tested them.