Autoware integration: traffic lights are not detected correctly, stop signs are ignored
Setup
- CARLA version: 0.10.0 (UE5.8, ue58-dev branch)
- Platform: Linux
- Python version: 3.12
- GPU: not relevant to this issue
- GPU Drivers: not relevant to this issue
Describe the bug When running the CARLA and Autoware integration (the classical stack demo under PythonAPI/examples/av_stacks/autoware), the ego vehicle does not react to traffic lights the way it should.
The Lanelet2 map generated for Autoware (converted from CARLA's OpenDRIVE data) does not carry reliable traffic light information. In practice the vehicle ends up treating a light as always red, always green, or not reacting to it at all, instead of following what the light is actually doing in the simulation at that moment.
On top of that, the vehicle also drives straight through every stop sign, since stop signs are not represented in the generated map at all.
Steps to reproduce
- Run the CARLA-Autoware classical mode demo (run_carla_autoware.sh) in Town10HD.
- Approach any signalized intersection or a stop sign.
- The car stops or goes with no clear relation to the actual light state, and it never stops at a stop sign.
Expected behavior The vehicle should follow the real state of each traffic light as it changes in the simulation, and stop at every stop sign, the same way it is expected to behave at a real traffic light or sign.
Additional context Fixed in PR https://github.com/carla-simulator/carla/pull/9891, which closes this issue. The work ended up covering two separate scopes.
Scope 1: the reported traffic light and stop sign bug
- The OpenDRIVE to Lanelet2 conversion now associates each traffic light with the correct lanes, including junctions where a lane splits after the signal, so a light no longer ends up attached to the wrong lane or to none at all.
- Map generation is now deterministic, so the same town always produces the same map instead of shifting signal associations between runs.
- Stop signs are now emitted as stop sign regulatory elements, covering lane splits and stop signs placed near crosswalks.
- A new bridge publishes CARLA's own ground-truth traffic light state straight to Autoware. Previously the stack depended on Autoware's camera-based recognition of CARLA's rendered lights, which is the root cause of the light being perceived as always red, always green, or not there at all.
- Town10HD's Lanelet2 map was regenerated with the fixed conversion logic.
Scope 2: ghost moving cars found while validating the fix
While live testing the above on a long autonomous route, the ego was seen halting near objects that never moved, because Autoware's perception briefly classified a ghost track with no corresponding real CARLA actor as a moving car. Two native CARLA bugs were behind it:
ASensor::PostPhysTickInternalfed every native sensor (lidar, radar, IMU, cameras) the current physics-substep delta time instead of the accumulated tick-interval delta that UE5's scheduler already computes. A sensor whosesensor_tickspans more than one physics substep therefore simulated as if only the last substep had elapsed, and for this integration's lidar that meant every published scan swept half a rotation instead of a full one.- The demo's lidar blueprint in
autoware_demo.pynever setrotation_frequencyor the point-dropout attributes, so CARLA's defaults applied (60 Hz instead of the intended 10 Hz, plus 45% of points dropped at random every tick). That is not the stable, correctly-timed scan Autoware's sensor kit is calibrated for.
Both are fixed. The lidar is now explicitly configured at the 10 Hz rate Autoware's sensor kit expects with dropout disabled, which stops Autoware from perceiving these ghost cars as moving. These two are unrelated to the map and traffic light work, but they were blocking a clean end-to-end validation of the map fix, so they are fixed in the same PR.
Source: carla-simulator/carla