spawn-walkers

Spawns and destroys autonomous wandering pedestrians in a CARLA simulation via the Python API.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Populating a CARLA simulation with pedestrians that actually walk around is error-prone: controllers silently stop when the spawning client exits, start() calls get dropped when the wrong client ticks the world, and destroying actors in the wrong order leaves ghost controllers. This Skill encodes those failure modes so an agent spawns a live, moving crowd and tears it down cleanly. ## Core Features & Use Cases - Autonomous crowd spawning: Pairs each walker.pedestrian.* body with a controller.ai.walker, places them on the navigation mesh, and sends them to random destinations at configurable walking speeds, with optional seeding for reproducible placement. - Clock ownership handling: Reads world settings first — never ticks an already-synchronous world, and converts an asynchronous world to synchronous mode when needed, restoring settings on exit. - Verified movement and safe teardown: Confirms walkers are actually moving by displacement (re-issuing start() when calls are dropped) and destroys controllers before walkers to avoid stranded actors. - Use Case: A user asks to "spawn 40 pedestrians walking around" — the Skill checks prerequisites, spawns 40 walker/controller pairs with --hold so the crowd keeps walking, and later removes them in the correct order on request. ## Quick Start Ask the agent to spawn 30 pedestrians wandering around the CARLA map and keep them walking until you say stop.

Frequently Asked Questions about spawn-walkers

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

FAQPage Schema
How do I spawn pedestrians that walk around in CARLA?▼

Run the walkers.py spawn command with a count and --hold, which pairs each walker.pedestrian body with a controller.ai.walker and sends it to random navmesh points. CARLA's walker AI re-targets automatically on arrival, so one start() call makes them wander indefinitely.

Why do my CARLA walkers stand still after spawning?▼

Walkers stand still when the spawning client exits (its controllers stop), when start() is silently dropped because the client ticked a world it did not own, or when nothing advances the world. Spawn with --hold and never tick an already-synchronous world.

Does CARLA pedestrian spawning require synchronous mode?▼

No, pedestrians work in asynchronous mode. The script only switches to synchronous mode if the world is async and it may own the clock; if the world is already synchronous, another client owns the clock and this one only waits for ticks.

What is the correct order to destroy CARLA walkers and controllers?▼

Stop the controllers, destroy the controllers, then destroy the walkers. Destroying a walker while its controller lives strands the controller and can leave ghost actors, so the destroy command always removes controllers first.

Why does CARLA report spawn collision when placing pedestrians?▼

Spawning at the navmesh z coordinate is rejected on CARLA 0.10.0 with a collision error; offsets below +1.0 m also fail. The skill spawns walkers 2.0 m above the navmesh point by default so they settle onto the ground.

Can I make CARLA pedestrian placement reproducible?▼

Yes, pass --seed to the spawn command, which sets world.set_pedestrians_seed and seeds the random module. This fixes placement while the walkers still wander indefinitely at runtime.