Rule-based optimal control for autonomous driving

Wei Xiao, Noushin Mehdipour, Anne Collin, Amitai Bin-Nun, Emilio Frazzoli, Radboud J. Duintjer Tebbens, Calin Belta

Abstract

Autonomous vehicles (AVs) must navigate complex environments governed by conflicting traffic laws and safety requirements. This paper presents a recursive optimization framework that utilizes a hierarchical "rulebook" to prioritize constraints. By integrating High Order Control Barrier Functions (HOCBFs) for safety and Control Lyapunov Functions (CLFs) for trajectory tracking, the system can dynamically relax lower-priority rules to ensure critical safety constraints are met. Evaluation in simulated scenarios demonstrates real-time feasibility and robust decision-making in the presence of obstacles and pedestrians.

Introduction

Safe and efficient autonomous driving requires more than simple path following; it necessitates an understanding of a dense web of traffic laws and social norms. In real-world scenarios, these rules often conflict. For instance, an AV might be forced to choose between crossing a solid lane marker or colliding with a pedestrian. Standard optimal control methods often treat these constraints as rigid boundaries, leading to mathematical infeasibility when all conditions cannot be met simultaneously. This paper addresses the challenge of creating a controller that can intelligently prioritize rules, maintaining safety while ensuring smooth vehicle dynamics.

Methodology

The proposed hierarchical control architecture is built on four key components:

1. Rulebooks and Priority Structures

Drawing inspiration from Signal Temporal Logic (STL), the framework formalizes driving rules into a structured hierarchy. Rules are categorized into equivalence classes and ranked by priority. This allows the controller to distinguish between non-negotiable safety rules (e.g., collision avoidance) and flexible operational rules (e.g., maintaining a specific speed limit).

Figure 2: Autonomous driving scenario illustrating different trajectories (a, b, c) and the corresponding priority structure of rules.

2. HOCBFs and CLFs

To enforce safety and track trajectories, the system employs two types of control functions:

  • High Order Control Barrier Functions (HOCBFs): These are used for safety constraints where control inputs (like braking) do not immediately affect the state (like position) but influence higher-order derivatives.
  • Control Lyapunov Functions (CLFs): These handle goal-seeking behavior, ensuring the vehicle follows its intended path and maintains target speeds.

3. Recursive Relaxation Algorithm

The core of the system is a recursive relaxation algorithm. The controller initially attempts to solve a Quadratic Program (QP) that satisfies all rules. If no solution is found, it iteratively relaxes the lowest-priority rules until a feasible path is identified. This ensures that the vehicle always finds the "best" possible action given the constraints.

4. Optimal Disk Coverage

For efficient collision checking, the authors represent rectangular vehicle footprints and other actors as a series of overlapping disks. This representation ensures that distance functions remain differentiable, which is a critical requirement for the underlying HOCBF mathematics.

Figure 5: Representation of vehicle and pedestrian footprints using overlapping disks to ensure differentiable clearance regions.

Results

The framework was evaluated using a custom Matlab simulation tool across several scenarios involving parked cars and pedestrians. Key findings include:

  • Real-time Performance: Quadratic Programs were solved in under 0.01 seconds per step, meeting the requirements for real-world deployment.
  • Effective Prioritization: The ego vehicle successfully navigated scenarios by violating low-priority rules (e.g., lane keeping) to maintain safety margins around pedestrians.
  • Objective Evaluation: The framework provides a robust method for "Pass/Fail" testing by determining if a safer, rule-compliant path was mathematically possible for any given trajectory.

Conclusion and Future Work

This research provides a systematic way to handle conflicting rules in autonomous driving. While the current implementation relies on manually defined rulebooks and assumes a deterministic environment, future work aims to learn priority structures from human driving data and incorporate sensor uncertainty. The introduction of more nuanced grading, such as "Provisional Pass" for slightly suboptimal but safe trajectories, is also planned.

Summary updated

BibTeX
@inproceedings{xiao2021rule,
  author = {Wei Xiao and Noushin Mehdipour and Anne Collin and Amitai Bin-Nun and Emilio Frazzoli and Radboud J. Duintjer Tebbens and Calin Belta},
  title = {{Rule-based optimal control for autonomous driving}},
  booktitle = {ICCPS},
  year = {2021},
  doi = {10.1145/3450267.3450542},
}
Figure