FBGA

<- All projects

Personal project, developed during the PhD | 2025 - present

Overview

FBGA - Forward-Backward Generic Acceleration constraints - computes the maximum-performance velocity profile along a path given a complex g-g-v constraint envelope: the combined longitudinal/lateral acceleration limits a vehicle can actually sustain, which change with speed and aren't a simple circle or ellipse. Given a path's curvature profile and that envelope, the forward-backward algorithm finds the fastest velocity profile that never asks the vehicle for more grip than it has, running fast enough for real-time use rather than offline-only optimization. Existing forward-backward planners get their speed by assuming a simple (typically convex) shape for the g-g-v envelope so they can pre-compute the apexes to build the profile around; FBGA instead locates the switching points adaptively while it propagates the solution, so it needs no assumption at all about the envelope's shape - it treats it as a black box that can be evaluated point by point, whether it comes from a formula, a lookup table, or a high-fidelity vehicle model.

Accuracy and speed

Validated against an indirect optimal control solver (Pins) across five racetracks and two vehicle classes (race car, motorcycle), the 2D solver matches lap times to within roughly 0.1-0.4%, while running up to three orders of magnitude faster - down to fractions of a millisecond per query, well within budget for online, onboard planning. Within a 300 m receding horizon representative of a moving-horizon planner, it solves in a fraction of a millisecond regardless of mesh size, against several milliseconds for the OCP.

From 2D to 3D

The library started as a 2D solver - curvature-only path, single g-g envelope - published as Real-Time Velocity Profile Optimization for Time-Optimal Maneuvering With Generic Acceleration Constraints (IEEE Robotics and Automation Letters, 2025). It has since grown a 3D solver, generic over the vehicle's g-g-v model, that accounts for banked and pitched paths (Suzuka, Laguna Seca, Yas Marina), load transfer, spatially variable grip, and yellow-flag deceleration limits - published as Beyond the Apex: Online Minimum-Time Velocity Planning on Three-Dimensional Paths With Variable Friction (IEEE Robotics and Automation Letters, 2026). Unlike prior 3D forward-backward methods, it drops the assumption that a maneuver's apex sits at the geometric corner apex, computing it adaptively instead - within 0.2-0.3% of an OCP baseline and up to 44x faster than the closest prior forward-backward method, while eliminating the g-g-v violations (up to several percent) that apex precomputation causes on tracks with pronounced 3D geometry. It also natively handles non-convex envelopes, such as a motorcycle's no-wheeling/no-stoppie limits, which the super-elliptical formulation used by prior 3D methods cannot represent. The 3D solver was originally developed as its own repository, FBGA_3D, and is now ported into FBGA itself as an opt-in module.

Video explanation

Where it runs

Used in the TUM Autonomous Vehicle Systems Laboratory's Indy Autonomous Challenge and Abu Dhabi Autonomous Racing League entries, where it was benchmarked directly against the velocity planner the team actually races with - not an academic baseline.

Adoption

Beyond my own use, FBGA has drawn interest from outside its original domain, all through unsolicited contact:

  • A TUM group working on uncrewed aerial vehicles (UAVs) inquired about applying it to thrust/attitude envelopes, which are similarly non-convex and state-dependent.
  • A conversation with an Italian industrial vehicle manufacturer at IEEE ICRA 2026 about a possible collaboration, still exploratory.
  • An ongoing collaboration with Philipp Braun's group (CIICADA Lab, Australian National University) has a joint paper in preparation.

The library is also distributed as an installable Python package, which lowers the bar for anyone to try it without going through a prior agreement.

Status

Public C++ library, maintained solely by me, hosted under the DRIVEWISE organization. 2025 - present.

Back to top