DriveTester: A Unified Platform for Simulation-Based Autonomous Driving Testing

Mingfei Cheng, Yuan Zhou, Xiaofei XiearXiv 2024 · DOI

Introduction

The testing of Autonomous Driving Systems (ADS) currently faces a significant challenge known as "compatibility hell." Researchers often develop testing tools, such as fuzzers designed to identify safety-critical edge cases, for specific simulators like LGSVL or CARLA. However, when these simulators are discontinued—as seen with the sunsetting of the popular LGSVL in 2022—the associated testing tools often become obsolete. This fragmentation creates research silos, making it nearly impossible to perform standardized, "apples-to-apples" comparisons between different testing techniques across modern ADS platforms.

DriveTester addresses this by providing a unified, extensible platform that standardizes the testing process, specifically for the Baidu Apollo ADS. By decoupling testing algorithms from the underlying simulation environment, DriveTester enables researchers to reproduce and compare state-of-the-art (SOTA) methods with ease.

System Architecture

DriveTester is built on a modular architecture designed for flexibility and scalability. The platform consists of two primary components: the Testing Engine and the Scenario Runner.

The overall architecture of the DriveTester platform, showing the workflow from developer configuration to test results.

Testing Engine

The Testing Engine serves as a host for various SOTA testing algorithms, such as AVFuzzer, BehAVExplor, and SAMOTA. To achieve "plug-and-play" functionality, DriveTester utilizes Scenario and Feedback Adaptors. These components translate the specific requirements of an algorithm into a standardized format for the simulator and vice versa, preserving the core logic of the testing tool while ensuring cross-platform compatibility.

Scenario Runner

The Scenario Runner replaces resource-heavy 3D rendering engines with a lightweight Traffic Simulator. This simulator uses rule-based kinematic models to manage non-player character (NPC) vehicles, significantly reducing computational overhead.

Detailed view of the Scenario Runner component and its interaction with the Baidu Apollo instance via the Apollo-Traffic Bridge.

A critical element of this module is the Apollo-Traffic Bridge. This bridge converts simulator observations into perception messages that the Baidu Apollo ADS can process in real-time. The entire simulation is controlled via simple YAML configuration files, allowing users to define complex traffic scenarios, start/end points, and testing parameters without deep-level coding.

Evaluation and Results

DriveTester was evaluated using Baidu Apollo as the System Under Test (SUT). The authors successfully migrated four major SOTA testing tools—AVFuzzer, BehAVExplor, SAMOTA, and DriveFuzz—into the platform.

Key findings from the evaluation include:

  • Usability: DriveTester was successfully deployed on headless Linux servers, demonstrating its suitability for high-performance computing (HPC) environments.
  • Effectiveness: The migration process preserved the efficacy of the tools. For instance, BehAVExplor identified 69 safety violations in a "Crossing Junction" scenario within a two-hour test window.
  • Performance: The platform introduces minimal latency, ensuring that the timing-sensitive decision-making logic of the ADS is not compromised by the simulation environment.

Key Insights

A primary insight of this work is that high-fidelity 3D graphics are often unnecessary for testing the decision-making logic (routing, planning, and control) of an ADS. By prioritizing logic over graphics, DriveTester enables large-scale parallel testing on non-GUI servers. Furthermore, the adaptor-based strategy effectively solves the "sunset problem" by decoupling the testing framework from third-party simulators that may be discontinued, ensuring long-term stability for the research community.

Limitations and Future Work

Currently, DriveTester's lightweight nature means it cannot test raw camera or LiDAR perception modules, as it relies on "ground truth" object data. While optimized for Baidu Apollo, future iterations aim to support additional ADS platforms and integrate more diverse simulators like CARLA to foster a more comprehensive benchmarking ecosystem.

Summary updated

BibTeX
@misc{cheng2024drivetester,
  author = {Mingfei Cheng and Yuan Zhou and Xiaofei Xie},
  title = {{DriveTester: A Unified Platform for Simulation-Based Autonomous Driving Testing}},
  year = {2024},
  eprint = {2412.12656},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.12656},
}
Figure