将OpenSCENARIO 2.1编译为基于场景的测试在CARLA中
Compiling OpenSCENARIO 2.1 for Scenario-Based Testing in CARLA
AI总结:
本文提出一种多阶段编译器架构,将OpenSCENARIO 2.1 DSL直接编译为CARLA可执行行为,通过ANTLR4前端生成AST,语义中间件和运行时后端合成py_trees行为树,实现与CARLA过程API的直接映射,验证了并发动作、动态数学表达式和异步信号的处理能力。
摘要:
尽管ASAM OpenSCENARIO 2.1领域特定语言(DSL)支持声明式、意图驱动的场景测试(SBT)编写,但其在开源模拟器如CARLA中的集成仍受限于遗留解析器。我们提出了一种多阶段现代编译器架构,将OpenSCENARIO 2.1 DSL直接编译为可执行的CARLA行为。该流程包括ANTLR4前端用于生成抽象语法树(AST),语义中间件和运行时后端,后者合成确定性的py_trees行为树。通过定制的方法注册表将标准化的领域本体直接映射到CARLA的过程API,消除了外部逻辑求解器的需要。一个演示性的多主体切入和避让 maneuver,从更广泛的验证场景中选取,证实了编译器处理并发动作、动态数学表达式和异步信号的能力。该框架建立了可重复、大规模SBT的功能基准,为未来C++优化以减轻当前Python基于的计算开销铺平了道路。
英文摘要:
While the ASAM OpenSCENARIO 2.1 Domain-Specific Language (DSL) enables declarative, intent-driven authoring for Scenario-Based Testing (SBT), its integration into open-source simulators like CARLA remains limited by legacy parsers. We propose a multi-pass modern compiler architecture that translates the OpenSCENARIO 2.1 DSL directly into executable CARLA behaviors. The pipeline features an ANTLR4 frontend for Abstract Syntax Tree (AST) generation, a semantic middle-end, and a runtime backend that synthesizes deterministic py_trees behavior trees. Mapping the standardized domain ontology directly to CARLA's procedural API via a custom method registry eliminates the need for external logic solvers. A demonstrative multi-actor cut-in and evasive maneuver, selected from a wider suite of validated scenarios, confirms the compiler's ability to process concurrent actions, dynamic mathematical expressions, and asynchronous signaling. This framework establishes a functional baseline for reproducible, large-scale SBT, paving the way for future C++ optimizations to mitigate current Python-based computational overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。