Direct answer: CARLA is an open-source simulator for autonomous driving research. It lets driving software meet rare and difficult scenarios in software first, where a failed run costs nothing and can be replayed exactly, which is why simulation dominates how the field tests its systems.

Some scenarios are too rare to test on real roads and too important to skip. A driving system might travel enormous distances and never meet the exact situation that fools it, and meeting it once, unprepared, is the kind of failure the whole field works to avoid. Simulation is how researchers get coverage that public roads cannot provide.

The trending query carla-simulator/carla sits on GitHub Trending (C++) in late November 2026, and the repository documents the toolkit behind a large share of driving research. The durable idea is that reproducible software worlds changed how safety-critical systems get tested: scenarios became seeds, failures became data, and the search over dangerous situations became cheap enough to run at scale.

Why rare events decide the field

Driving software improves by meeting scenarios, and the scenarios that matter are the ones real roads produce too rarely: a ball rolling into the street at dusk in rain, a vehicle crossing unexpectedly two lanes over. Waiting to encounter each one naturally would take impractical mileage. A simulator generates the situation on demand, as many times as a test plan needs, with every parameter held fixed or swept deliberately.

Scale matters as much as rarity. Researchers measure exposure in billions of scenarios because the space of possible situations is enormous, and sampling it in software is the only affordable way to probe the corners. A simulated mile costs little, so the search runs wide before anything touches a steering wheel in the physical world.

What the simulator actually provides

CARLA exposes sensor simulation, controllable traffic, and controllable weather through the same interfaces real car software expects. Cameras, lidar, and radar each produce data shaped like the real sensor would emit it, so a driving stack can be pointed at the simulator with minimal changes. The software believes it is looking at the world, which is exactly the point.

Control is the quiet feature. Weather, traffic density, and the behavior of other road users are inputs, so a researcher can hold everything constant and vary one thing, then sweep that variable across a range. Real roads refuse to cooperate with that kind of experiment; the world always changes several things at once.

Scenario seedrain, dusk, trafficVirtual worldcameras, lidar, radarDriving stackperceive, plan, actVerdictpass or replayEvery failure keeps its seed and joins the regression suite for good
Simulated sensorData it producesWhat the stack uses it for
CameraPixel images of the sceneObject detection, lane reading
LidarDepth point cloudDistance and shape estimation
RadarRange and relative speedApproach speed of other objects
Weather engineRain, fog, lighting statesStress tests across conditions
missedyour Brain mapquiz yourselfmasteredWatch your weak spots turn green.

Drop in your PDF - it doesn't leave your device.
Every miss becomes a red node on your map.
Free plan: 21 nodes, no card, no countdown.

Open Brain - free

The sim-to-real gap and the value of seeds

The field's core open problem is the sim-to-real gap: models that ace the simulator still face lighting, sensor noise, and driver behavior that the simulator approximates imperfectly. A strong score in simulation is evidence, and verification on real vehicles remains the decisive step. Serious pipelines pair vast simulated mileage with limited real-world validation for exactly this reason.

What simulation guarantees is reproducibility. Every scenario has a seed, so when the stack fails, that exact failure can be replayed, diagnosed, and regression-tested forever after. A near miss on a real road cannot be re-run; a seeded one becomes a permanent test in the suite, which is how each discovered failure turns into standing coverage.

Key takeaways

  • Simulation lets driving software meet billions of scenarios, including rare dangers that real roads produce too rarely to test against.
  • CARLA provides sensor simulation for cameras, lidar, and radar, plus controllable traffic and weather, exposed through interfaces real car software expects.
  • The sim-to-real gap is the field's core problem: lighting, sensor noise, and driver behavior are approximated imperfectly, so real validation stays necessary.
  • Every scenario has a seed, so a failure can be replayed, diagnosed, and regression-tested permanently.
  • Reproducibility is the research benefit: crashes are free in software, which changes the economics of safety testing.

Quick answers

What is CARLA?
An open-source simulator that generates virtual towns, traffic, and weather for autonomous driving research.

Why simulate dangerous scenarios?
Real roads produce them too rarely to test, and software runs them on demand with zero cost per failure.

Which sensors are simulated?
Cameras, lidar, and radar, producing data shaped like what real sensors emit.

What is the sim-to-real gap?
The imperfect match between simulated lighting, sensor noise, and driver behavior and their real counterparts.

What makes a scenario reusable?
Its seed: the exact situation can be replayed and regression-tested after any change to the software.

One thing to do tonight

Skim the scenarios directory in the CARLA repository and read one scenario definition end to end. Notice how much of the description is parameters and how little is prose. That ratio is what testability looks like in a field that takes reproduction seriously.