Simulation, Testing and Validation · Simulation tool
CARLA
Also known as CARLA Simulator, CARLA simulator, carla-simulator
An open-source simulator for autonomous driving research, built on Unreal Engine with a client-server architecture, providing urban and large maps, configurable sensors, traffic and a Python/C++ API for developing and testing driving systems.
Explanation
CARLA was introduced by Dosovitskiy, Ros, Codevilla, Lopez and Koltun at the Conference on Robot Learning in 2017, where it was used to compare a modular pipeline, imitation learning and reinforcement learning. In the current documentation the server handles physics, world-state updates and sensor rendering, while clients control actors and conditions through Python or C++ APIs. Roads are defined with ASAM OpenDRIVE; a traffic manager controls background vehicles; ScenarioRunner defines and executes traffic scenarios, including in OpenSCENARIO; and a recorder replays simulations. A ROS bridge and Autoware integration are available.
Its sensor suite includes RGB, depth, semantic and instance segmentation, optical-flow and event cameras, ray-cast LiDAR and semantic LiDAR, radar, GNSS, IMU, and collision, lane-invasion and obstacle detectors. Several of these return exact simulator ground truth.
CARLA 1.0, released on 17 November 2026, moved from Unreal Engine 5.5 (introduced in 0.10.0) to 5.8, restored large maps and added calibrated camera profiles; it includes Python API changes that can break older scripts. The 0.9.x line used Unreal Engine 4.26. Sensor models remain approximations of real hardware, so results need validation against real data.
How it works
The simulator server is started and a client connects over the network. The client loads a map, spawns the ego vehicle and other actors, and attaches sensors whose data arrives through callbacks. The agent under test reads sensor data and sends vehicle controls each step. ScenarioRunner or custom scripts trigger events and evaluate criteria, and the recorder logs runs for replay.
Automotive applications
- Closed-loop testing of AD stacks such as Autoware
- Synthetic data and ground-truth generation
- Scenario-based testing with ScenarioRunner
- Benchmarking driving agents on the CARLA Leaderboard
Example
A perception team spawns an ego vehicle on an urban map with an RGB camera and an instance-segmentation camera at the same pose. Every frame yields an image plus per-pixel class and instance IDs, which are converted into training labels without manual annotation.
An illustrative example: any figures in it are worked numbers, not measurements.
References
- CARLA documentation: Introduction (opens in a new tab)
“CARLA is grounded on Unreal Engine to run the simulation.”
- CARLA: An Open Urban Driving Simulator (Dosovitskiy, Ros, Codevilla, Lopez, Koltun), CoRL 2017 (opens in a new tab)
- CARLA 1.0 Release (opens in a new tab)
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.