vEDGAR -- Can CARLA Do HiL?
Nils Gehrke, David Brecht, Dominik Kulmer, Dheer Patel, Frank Diermeyer
TL;DR
This paper investigates using CARLA for Hardware-in-the-Loop testing of automated driving by introducing the vEDGAR framework, a GPU-accelerated, ROS2-based extension that enables EDGAR hardware to run automated driving software in a real-time-approximate HiL. It defines requirements, develops a service-oriented architecture, and implements a GPU-enhanced LiDAR, a configurable sensor stack, and a realistic actuation interface to enable testing end-to-end sense-plan-act pipelines. The authors validate the approach through a PoC evaluation across ROS2 interfaces, sensor real-time performance, and HiL scenarios, concluding that CARLA can support HiL testing but operates at its performance limits, with clear avenues for improvement. The work provides open-source tools and a pathway to integrating CARLA into the broader EDGAR-based research workflow, potentially stabilizing LoD-HiL workflows for automated driving research.
Abstract
Simulation offers advantages throughout the development process of automated driving functions, both in research and product development. Common open-source simulators like CARLA are extensively used in training, evaluation, and software-in-the-loop testing of new automated driving algorithms. However, the CARLA simulator lacks an evaluation where research and automated driving vehicles are simulated with their entire sensor and actuation stack in real time. The goal of this work is therefore to create a simulation framework for testing the automation software on its dedicated hardware and identifying its limits. Achieving this goal would greatly benefit the open-source development workflow of automated driving functions, designating CARLA as a consistent evaluation tool along the entire development process. To achieve this goal, in a first step, requirements are derived, and a simulation architecture is specified and implemented. Based on the formulated requirements, the proposed vEDGAR software is evaluated, resulting in a final conclusion on the applicability of CARLA for HiL testing of automated vehicles. The tool is available open source: Modified CARLA fork: https://github.com/TUMFTM/carla, vEDGAR Framework: https://github.com/TUMFTM/vEDGAR
