control-traffic

Configures CARLA Traffic Manager settings for autopilot vehicles globally or per vehicle.

3|Updated Jul 20, 2026
One-click install
npx skills add https://github.com/carla-simulator/carla-agentic-tools --skill control-traffic-carla-simulator
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: control-traffic
Source: https://github.com/carla-simulator/carla-agentic-tools/tree/main/skills/python-api/control-traffic
Command: npx skills add https://github.com/carla-simulator/carla-agentic-tools --skill control-traffic-carla-simulator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires carla, and includes scripts (resource) and references (resource) components.

What problem does it solve? Tuning how autopilot traffic behaves in a CARLA simulation requires knowing dozens of Traffic Manager API calls, their sign conventions, and sync-mode coupling. This Skill encodes those procedures so an agent can change traffic speed, following distance, light-running, lane changes, and determinism without improvising against the Python API. ## Core Features & Use Cases - Global traffic tuning: Set speed difference, following distance, random seed, hybrid physics, dormant-vehicle respawn, and OSM mode for every vehicle on a Traffic Manager port. - Per-vehicle control: Target one car by id, role, or filter to adjust its speed, lane offset, light/sign/vehicle ignore percentages, lane-change permission, and TM-managed lights. - Deterministic and synchronous runs: Seed the TM and enable TM synchronous mode coordinated with the world's sync mode for reproducible simulations. - Use Case: A user says "make the traffic move faster and keep more distance" — the Skill runs traffic.py global --speed-diff -30 --distance 3 against the running server after verifying prerequisites. ## Quick Start Ask the agent to make the autopilot traffic in your running CARLA server faster or slower, and it will check prerequisites and apply the Traffic Manager settings for you.

Frequently Asked Questions about control-traffic

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make CARLA autopilot traffic drive faster?▼

Set a negative global speed difference on the Traffic Manager, for example --speed-diff -30 makes all vehicles drive 30% above the speed limit. The value is a percentage below the limit, so positive values make traffic slower.

How do I make CARLA traffic deterministic and reproducible?▼

Set a random seed on the Traffic Manager, enable synchronous mode on both the TM and the world, use a fixed world step, and spawn vehicles with a seed. A seed alone in asynchronous mode is not deterministic.

Does this work without a CARLA source build or UE4?▼

Yes, it only needs the carla Python module importable in the active interpreter and a reachable, already-running CARLA server. It does not require UE4_ROOT or a source checkout, and was tested against CARLA 0.9.16.

Why did my Traffic Manager settings not change anything?▼

The vehicles are likely not on the TM port you targeted, not enrolled in autopilot, or you targeted a manually driven ego vehicle. Match --tm-port to the port used at spawn time and ensure the cars are on autopilot.

Why did cars freeze after enabling TM synchronous mode?▼

TM sync was enabled without the world also being in synchronous, ticked mode, or vice versa. Keep TM sync and world sync in step and tick the world, using the set-world-settings skill to couple them.