TrackGen

GPU-batched generation of closed-loop race tracks — thousands of smooth, validated tracks per generate() call, expressed as NVIDIA Warp kernels and ready to drop into a batched RL simulator.

TrackGen pipeline stages

The runtime pipeline turns a raw generated centerline into a constant-spacing path, relaxes it with XPBD, then inflates it into a constant-width road band.

Features

GPU-batched

Generate E tracks in parallel per generate() call — the Warp cpu device for tests/CI, cuda for production.

Pure Warp pipeline

Generation → constant-spacing resample → XPBD relaxation → inflation, every stage a Warp kernel over flat [E*N] arrays.

Six generators

Bezier, Hull, Polar, Voronoi, Checkpoint, and Repulsive — pluggable centerline generators, each with a distinct shape family.

CUDA-graph capture

The whole pipeline is captured once into a replayable CUDA graph and replayed on every later call for high throughput (all generators except repulsive, which runs eagerly every call — see Repulsive Generator).

Gate sequences

Drone-style gate courses — gate centres and orientations — straight from the centerline-generator anchors via GateGenerator.

RL-ready runtime

Out-of-bounds collision, checkpoint progress and rewards, prop instancing — and one Course object that bundles them.

Explore the docs

Getting started

Install the library and generate your first batch.

Installation
Tutorials

End-to-end recipes for tracks, gates, CUDA-graph sim loops, and driving RL agents against the built-in collision engines — track out-of-bounds and gate posts.

Generating a Batch of Tracks
Generators

How each centerline generator works and when to use it.

Generators Overview
Track relaxation

The XPBD stage that turns raw centerlines into inflatable, valid tracks.

Track relaxation — overview
Gate relaxation

The per-env collision solve that separates overlapping gates into usable drone-course sequences.

Gate relaxation — collision solve
Runtime utilities

Collision, props, checkpoints & progress, and the Course facade.

Runtime utilities
How it works

The pipeline data flow, resample, inflation, and CUDA-graph capture.

Pipeline — data-flow overview
Configuration & tuning

Every knob, plus a guide to trading yield, diversity, and throughput.

Tuning guide
API reference

TrackGenerator, GateGenerator, configs, and result types.

API reference