Introduction
Developing robust decision-making algorithms for autonomous vehicles (AVs) requires access to diverse and realistic traffic scenarios. However, the current simulation landscape is significantly fragmented. High-fidelity simulators like CARLA are resource-intensive and complex to configure, while lightweight alternatives such as highway-env often lack scenario diversity. A primary challenge for researchers is "dataset silo-ing," where simulators are typically coupled to specific datasets (e.g., NuPlan or Waymax), making cross-dataset benchmarking difficult.
Tactics2D is introduced as an open-source, lightweight, and highly modular 2D simulator designed to bridge these gaps. It provides a unified framework supporting custom maps, diverse trajectory logs, and interactive multi-agent scenarios, serving as a versatile "building block" for autonomous driving research.
System Architecture
Tactics2D employs a modular architecture centered around a Scenario Manager, designed for high extensibility and performance.
Key components include:
- Unified Parser Module: Standardizes various map formats (OpenDRIVE, OSM, Lanelet2) and trajectory data into a single internal data structure, enabling seamless data ingestion.
- Procedural Map Generator: Facilitates the creation of new environments (e.g., parking lots, racing tracks) based on rule-based patterns or extracted real-world data.
- Dual-Rate Updating: To optimize for Reinforcement Learning (RL), the physics engine operates at a high frequency (5–10ms), while rendering and event detection run at a lower frequency (up to 60Hz). This allows the simulator to operate 10x to 100x faster than real-time.
- Modular Traffic Participants: NPCs and agents are highly customizable, with swappable physics models (from point mass to dynamic bicycle models) and behavior models (rule-based or learning-based).
Design Principles and Data Integration
Tactics2D follows a "LEGO-like" philosophy, allowing researchers to assemble scenarios by combining specific maps with trajectory logs and replacing NPCs with interactive behavior models. This enables "interactive replay," where NPCs can react realistically (e.g., emergency braking) if an AV deviates from the original recorded log.
The simulator distinguishes itself through massive compatibility with major public datasets, including:
- Argoverse
- Waymo Open Motion Dataset (WOMD)
- NuScenes
- INTERACTION
- LevelX series (highD, inD, etc.)
- Dragon Lake Parking (DLP)
For datasets lacking public maps, the authors provide manually annotated Lanelet2-style OSM maps to ensure trajectories are situated in proper environmental contexts.
Comparative Analysis and Results
In a comprehensive feature comparison with existing simulators, Tactics2D is the only platform to achieve parity across all key metrics: built-in environments, custom trajectories, custom maps, multi-dataset compatibility, multi-agent support, and lightweight performance.
Beyond feature sets, the simulator demonstrates high reliability with over 85% unit test coverage. Its performance efficiency, particularly the fast-forwarding capability of the physics updater, significantly reduces the training time for deep RL agents compared to traditional 3D engines.
Conclusion and Future Directions
While Tactics2D is a powerful tool for decision-making research, its 2D nature precludes testing perception stacks that require 3D spatial rendering. Future work will focus on integrating more sophisticated, learning-based NPC behavior models to enhance traffic realism. Additionally, the authors plan to develop "co-simulation" bridges to 3D engines like CARLA, allowing Tactics2D to manage high-level logic while the 3D engine handles visual and sensor simulation.
Summary updated