构建轻量级人机共驾仿真框架,支持实时交互测试自动驾驶规划算法。
CommonRoad-Game: A Human-in-the-Loop Simulation Framework for Autonomous Driving

- 基于多线程同步架构,实现车速与真实时间严格对齐。
- 可稳定支持多智能体仿真,生成可复现的人类驾驶行为数据。
- 适合早期自动驾驶研发中快速迭代与人因分析,开源可用。
运动规划算法需在人机协同环境中评估,以确保交互中的安全与高效。现有仿真平台多依赖历史数据集,缺乏实时人机交互接口,或与自动驾驶生态集成度低。此外,多数人机协同仿真器计算开销大,不适用于早期研究的快速原型设计与灵活实验。为此,我们提出 CommonRoad-Game,一个轻量级人机协同仿真框架,紧密集成于 CommonRoad 平台,聚焦于运动规划器的系统化测试及交互场景中人类驾驶行为的分析。框架采用多线程架构与强同步机制,实现仿真时间与真实时间对齐,保障自主车辆与人类车辆间确定性、时序一致的交互。同时提供场景生成模块,记录驾驶日志,支持从人机实验中构建多样化、可复现的测试用例。实验表明,CommonRoad-Game 实现了稳定的时序同步,支持可扩展的多智能体仿真,并能无缝集成 CommonRoad 兼容的运动规划器,生成交互式驾驶场景。源代码已公开于 https://github.com/Yunfei-Bi8/CommonRoad-Game。
原文摘要 · Abstract (English)
Motion planning algorithms should be evaluated in human-in-the-loop environments to ensure they produce safe and efficient behaviors during interactions. However, existing simulation platforms often rely on recorded datasets, lack dedicated interfaces for real-time human interaction, or remain weakly integrated with an autonomous driving ecosystem. Moreover, many human-in-the-loop simulators are computationally intensive by design, making them less suitable for rapid prototyping and flexible experimentation in early-stage autonomous driving research. To address these limitations, we present CommonRoad-Game, a lightweight human-in-the-loop simulation framework tightly integrated with the CommonRoad platform, focusing on the systematic testing of motion planners with human participation and the analysis of human driving behaviors in interactive scenarios. We introduce a multi-threaded architecture with a robust synchronization mechanism that aligns simulation time with wall-clock time, enabling deterministic and temporally consistent interaction between autonomous and human-driven vehicles. In addition, the framework provides a scenario generation module that records driving logs, allowing diverse and reproducible test cases to be constructed from human-in-the-loop experiments. Experimental results demonstrate that CommonRoad-Game achieves stable temporal synchronization, supports scalable multi-agent simulation, and seamlessly integrates CommonRoad-compatible motion planners to generate interactive driving scenarios. The source code is publicly available at https://github.com/Yunfei-Bi8/CommonRoad-Game.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。