Gauss-Legendre Rectangle for Collision Risk
- GLR is a two-stage integration method that combines Gauss-Legendre cubature over the ego vehicle’s rectangular footprint with a non-homogeneous Poisson process for temporal aggregation.
- It approximates instantaneous collision probabilities using a 5-point spatial evaluation that preserves vehicle geometry and accounts for trajectory uncertainty.
- The method achieves real-time performance (~1 ms per scenario) with significant accuracy improvements over Monte Carlo and other baseline approaches.
Searching arXiv for the specified GLR paper and closely related Legendre/Gauss–Legendre work to ground the article in current literature. The Gauss–Legendre Rectangle (GLR) is a two-stage numerical integration scheme for continuous-time probabilistic collision risk estimation in motion planning, introduced for autonomous racing overtakes in which safety margins are minimal. In the formulation of "Probabilistic Collision Risk Estimation through Gauss-Legendre Cubature and Non-Homogeneous Poisson Processes," GLR combines Gauss–Legendre cubature over the ego vehicle’s rectangular footprint with a non-homogeneous Poisson process over time, yielding collision probabilities that preserve rectangular vehicle geometry, account for trajectory uncertainty, and remain fast enough for approximately 1000 Hz operation (Weiss et al., 24 Jul 2025).
1. Problem setting and defining quantity
GLR addresses probabilistic collision risk estimation over a continuous time horizon for autonomous racing maneuvers, especially overtakes. The ego vehicle follows a deterministic planned trajectory
while the opponent is represented by an uncertain future trajectory distribution . For each time , this induces a time-indexed position distribution
with mean and covariance .
Both vehicles are modeled by rectangular footprints aligned with their headings, with width and length . A collision occurs if at any the ego rectangle intersects the target rectangle 0. If 1 denotes the subset of trajectories in 2 that collide with 3, then the desired quantity is
4
Direct integration over trajectory space is described as intractable. GLR therefore reformulates the task as a two-stage integration problem. First, it computes an instantaneous collision probability 5 at each time by Gauss–Legendre cubature over the ego rectangle. Second, it interprets collision events over time through a non-homogeneous Poisson process (NHPP), with hazard 6 derived from 7, and integrates 8 over 9 by Gauss–Legendre quadrature. This construction preserves continuous time and rectangular geometry rather than replacing vehicles by simplified circular surrogates.
2. Spatial stage: Gauss–Legendre cubature over the ego rectangle
At fixed time 0, the instantaneous collision probability is
1
Exact evaluation for two uncertain rectangles is treated as difficult, so GLR introduces a 5-point approximation of the target rectangle: four corners and one centroid. For each 2, a density 3 is assigned to the location of that point. All five densities share the covariance 4, their means are rigid offsets from 5 aligned with target heading, and the centroid density is exactly the original target distribution,
6
Let 7 denote the event that point 8 lies in 9. GLR approximates no-collision at time 0 by assuming independence among these five point events: 1 and therefore
2
The integral
3
is the core spatial object. The term “Rectangle” in GLR refers to the integration region 4, which is a vehicle-aligned rectangle. The term “Gauss–Legendre” refers to a tensor-product Gauss–Legendre quadrature rule used as a two-dimensional cubature. For a rectangle
5
and function 6,
7
where 8 are the one-dimensional Gauss–Legendre nodes and weights on 9, and 0 are their affine images.
In the ego-vehicle frame this becomes
1
The paper fixes 2 m and 3 m in the experiments. The Stage-1 cubature order is 4, and the spatial evaluation points in the ego frame can be precomputed. A common ambiguity in the name is resolved explicitly in the formulation: GLR is not Gauss–Legendre quadrature on an arbitrary rectangle in the abstract, but Gauss–Legendre cubature over the ego vehicle’s rectangular footprint.
3. Temporal stage: NHPP hazard model and Gauss–Legendre quadrature in time
The temporal stage converts the function 5 into a collision probability over the full maneuver horizon. The counting process 6, interpreted as the number of collision events that have occurred up to time 7, is modeled as a non-homogeneous Poisson process with intensity 8. Standard NHPP identities give
9
hence
0
The event 1 is interpreted as at least one collision over the maneuver horizon, so
2
Because direct computation of the survival function is treated as intractable, GLR introduces a working hazard function
3
The stated boundary behavior is that if 4, then 5, and if 6, then 7.
The time integral is then approximated by one-dimensional Gauss–Legendre quadrature over 8: 9 with 0 obtained from Gauss–Legendre nodes on 1. The Stage-2 quadrature order is 2 in the experiments. At each time node 3, the method constructs 4, computes 5 by the spatial stage, forms 6, and then evaluates the NHPP expression
7
This two-stage decomposition is the distinctive feature of GLR: inner two-dimensional Gauss–Legendre cubature in space and outer one-dimensional Gauss–Legendre quadrature in time.
4. Vehicle geometry, uncertainty model, and implementation details
The experimental configuration uses Probabilistic Bézier Curves (PBC) for the target trajectory distribution 8. Each Bézier control point is a Gaussian random variable, the recorded target trajectory is used as the mean of the PBC model, and the control-point covariances are selected so that the marginal 9 is approximately Gaussian at each time, with variance growing over time. The stated construction minimizes average KL divergence to a target Gaussian whose covariance expands from 0 at 1 up to 2 at 3. This yields a closed-form Gaussian
4
from which the corner and centroid densities 5 are obtained by rigid shifts.
The algorithm itself is explicitly described as agnostic to this uncertainty model. Any source of 6 can be used, including learned predictors or mixture models, provided the densities 7 can be evaluated at the quadrature nodes.
For racing-scale experiments, the method uses 8, 9, and prediction horizon 0 with 100 Hz ground-truth sampling. The implementation points identified for 1000 Hz operation are the following. All one-dimensional Gauss–Legendre nodes and weights and all two-dimensional cubature nodes are precomputed in a local vehicle frame. Probability densities are evaluated with vectorized or GPU-accelerated kernels across all spatial nodes and all time nodes. Stage-1 computations at different time nodes are independent and thus parallelizable. The five densities 1 share covariance and differ only in mean offsets, which reduces evaluation cost.
The measured runtime is approximately 2 ms per scenario, corresponding to 1000 Hz, versus 3 ms for dense Monte Carlo ground truth, corresponding to 18 Hz. This runtime profile is central to the method’s intended use in high-speed overtaking, where risk must be updated under tight control deadlines.
5. Empirical performance and comparison with baselines
GLR is evaluated on 446 overtaking scenarios in a high-fidelity Formula One racing simulation and compared against Max Circle, Risk Density, Discounted BIUB, Velocity-Scaled Particle Filter (VS-PF), Mutual Independence (MI), and Quasi-Monte Carlo Gauss–Legendre (QMLGL), an ablation in which Stage 1 is replaced by dense Monte Carlo at the same Gauss–Legendre time nodes (Weiss et al., 24 Jul 2025).
| Method | MAE ± 4 | Time / Rate |
|---|---|---|
| GLR | 5 | 6 ms / 1000 Hz |
| QMLGL | 7 | 8 ms / 125 Hz |
| VS-PF | 9 | 0 ms / 833 Hz |
| Risk Density | 1 | 2 ms / 2000 Hz |
| Discounted BIUB | 3 | 4 ms / 2000 Hz |
| Mutual Independence | 5 | 6 ms / 2500 Hz |
| Max Circle | 7 | 8 ms / 1666 Hz |
The reported aggregate result is an average error reduction of 77% over five state-of-the-art baselines. Against the best external baseline, VS-PF with MAE 9, GLR improves to MAE 00, which is described as surpassing the next-best method by about 52.6% while maintaining 1000 Hz. QMLGL is slightly more accurate than GLR but approximately eight times slower, which is used to argue that the cubature approximation in the spatial stage remains close to Monte Carlo accuracy.
The comparative interpretation given in the source is that bounding-circle and Boole-inequality-based methods are either overly conservative or structurally biased. GLR is described as less conservative because it uses the full rectangular footprint instead of inflated circles, avoids Boole’s inequality aggregation, and uses an NHPP hazard model rather than independent-timestep assumptions or hard upper bounds. A plausible implication is that GLR’s gain is not attributable to quadrature alone, but to the joint effect of geometry preservation, continuous-time aggregation, and a specific hazard construction.
6. Assumptions, scope, and relation to other Gauss–Legendre “rectangle” constructions
The stated assumptions and limitations are specific. The 5-point approximation of the target rectangle and the independence assumption among the five point events introduce approximation error. The hazard definition
01
is described as heuristic, though well-motivated. The NHPP model assumes independent increments in the counting process. The method is formulated for 2D planar motion; extension to 3D would require three-dimensional cubature and more complex geometry. For multiple opponents, the paper suggests a conditional-independence extension
02
followed by the same NHPP integration.
The framework is nonetheless presented as general: any shape approximable by rectangles can be tiled or bounded by rectangles, and any prediction model that yields evaluable 03 can feed Stage 1. The cited broader application classes include warehouse robots, UAVs in cluttered spaces, and highway driving with nontrivial shapes. This suggests that GLR should be understood not as a racing-specific heuristic, but as a geometry-aware continuous-time risk estimator whose racing evaluation serves as a demanding benchmark.
A recurring misconception is terminological. In other arXiv work, Gauss–Legendre constructions on rectangles refer to tensor-product quadrature or Legendre bases on rectangular domains rather than collision-risk estimation. "Gelfand Triplets, Continuous and Discrete Bases and Legendre Polynomials" constructs generalized Legendre polynomial bases on intervals, rectangles, and 04-rectangles, providing the orthonormal basis structure from which tensor-product Gauss–Legendre quadrature on rectangles is derived (Celeghini et al., 2023). "Gauss-Legendre Features for Gaussian Process Regression" uses a tensor-product Gauss–Legendre rule on a truncated rectangle 05 in frequency space to build low-rank kernel approximations (Shustin et al., 2021). These usages share the rectangle as an integration domain, but they are not the same object as GLR in autonomous racing. In the GLR algorithm proper, the defining rectangle is the ego vehicle footprint, and the defining task is continuous-time probabilistic collision risk.