spawn-walkers
Qué hace
Esta skill añade personas caminando a una simulación de CARLA para que la escena de la calle parezca concurrida. Está pensada para personas que prueban coches autónomos y necesitan peatones a los que evitar.
Cuándo usarla
- ✓Cuando quieres una multitud caminando por las calles simuladas.
- ✓Cuando necesitas peatones presentes para probar cómo reacciona un coche ante personas en la carretera.
- ✓Cuando quieres quitar a las personas para que la calle quede vacía de nuevo.
Link de la skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/spawn-walkers/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Pon 30 personas caminando por mi ciudad de CARLA y asegúrate de que sigan caminando mientras corre mi prueba.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente coloca cada peatón en las zonas transitables del mapa y le asigna un lugar aleatorio al que caminar. Los peatones siguen eligiendo nuevos destinos, y una sesión mantenida los mantiene en movimiento.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Spawn wandering pedestrians
Paths.
scripts/…andreferences/…below are relative to the directory holding this SKILL.md. Your working directory is the user's project, not that directory, so prefix them with its absolute path or the command is not found.
Populate the map with pedestrians that walk around on their own. Each is a
walker.pedestrian.* body paired with a controller.ai.walker that steers it to
random points on the navigation mesh. The deliverable is a live, moving crowd;
destroy tears it down cleanly.
By default they wander indefinitely: on spawn every controller is start()ed,
given one random navmesh destination, and a random walking speed. That single
target is enough — CARLA's walker AI automatically picks a fresh random
destination each time a walker arrives (confirmed in LibCarla's nav code), so the
crowd roams forever with no re-targeting loop. Pass --no-wander for a stationary
crowd (controllers left unstarted).
This needs a navmesh — validate it first with the
debug-navmesh skill if walkers won't move.
The controllers stop when the client that started them exits. Same rule as
the Traffic Manager, and it is the reason a fire-and-forget spawn leaves the
crowd standing still. Pass --hold: the process stays alive and the crowd
keeps walking.
It is not primarily about pumping ticks, which is what this skill used to say.
The two were confounded, because --hold both keeps the client alive and pumps.
Separating them needed a second client owning a synchronous clock; measured on
0.10.0, walkers spawned against a world ticked by a traffic client:
| setup | result |
|---|---|
| spawn, process exits (another client ticking) | 0/15 move |
a separate client issues start() and stays alive |
15/15 move, then stop when it exits |
spawn --hold, observing only, never ticking |
10/10 move, 9.94 m in 8 s |
The first row has a second symptom worth knowing: a later start() on those
controllers is accepted rather than rejected as already-started, which proves
the original call never landed. _ensure_walking therefore verifies by
displacement and re-issues (--retries) instead of trusting start().
Ticks still have to come from somewhere, of course — that is the clock rule below, not the walkers' own business.
The clock rule
Read the world settings before doing anything:
- already synchronous — another client owns the clock. Never call
tick(); observe withwait_for_tick(). Ticking a world you do not own is what silently drops commands likestart(). - asynchronous — this client may switch it to sync (
--delta, default 20 Hz) and become the ticker.--no-syncopts out.
Either way the previous settings are restored on release: a synchronous world
with nothing ticking does not advance at all, and is indistinguishable from a
hung server. So stop a holder with Ctrl+C (SIGINT), never kill -9 — the
restore runs in a finally.
Walkers are also spawned --z-offset (default 2.0 m) above the navmesh point:
spawning at the navmesh z is rejected on 0.10.0 with "Spawn failed because of
collision at spawn position" (+0.5 still fails, +1.0 is the first that works).
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: (if walkers won't move) validate the navmesh — debug-navmesh
- [ ] Step 3: Spawn N walkers with --hold (the controllers die with the client)
- [ ] Step 4: Verify visually / via the world-data skill; spawn reports its count
- [ ] Step 5: Ctrl+C the held process, then destroy (controllers first, then walkers)
Commands need CARLA_HOST/CARLA_PORT from scripts/env.sh.
Step 1: Check prerequisites
bash scripts/check_env.sh
Step 3-5: Spawn / roam / destroy
source scripts/env.sh
# 30 pedestrians wandering at 1.0-1.8 m/s — --hold keeps this client alive, and
# the controllers stop the moment it exits
python3 scripts/walkers.py spawn --count 30 --hold
# reproducible placement (still wanders forever)
python3 scripts/walkers.py spawn --count 50 --seed 42
# more road-crossing, faster walkers
python3 scripts/walkers.py spawn --count 20 --cross-factor 0.4 --speed-min 1.4 --speed-max 2.2
# a stationary crowd (no autonomous movement)
python3 scripts/walkers.py spawn --count 20 --no-wander
python3 scripts/walkers.py destroy # correct-order teardown
Verify
The spawn comma
Preguntas frecuentes
¿Seguirán caminando cuando termine el programa?
No. Los peatones se detienen cuando sale el programa que los inició, así que la skill puede mantener abierta la sesión.
¿El mapa necesita una configuración especial?
Sí. El mapa necesita una zona para caminar, y la skill puede comprobarla primero si los peatones no se mueven.
¿La multitud puede quedarse quieta?
Sí. Una multitud estática está disponible si no activas el caminar.
Detalles
Descripción original del autor
Spawns pedestrians that wander autonomously via WalkerAIController, and destroys them in the correct order. Pairs each walker.pedestrian.* with a controller.ai.walker, places them on the navigation mesh, and sends them to random navmesh points at walking speed. Use when the user asks to "spawn pedestrians/walkers", "add people/crowds", "make pedestrians walk around", or "remove the walkers". Reads the world settings first: if the world is already synchronous it never ticks it, and if it is asynchronous it makes it synchronous and drives the clock itself.
repo: carla-simulator/carla
Popularidad
- Estrellas en GitHub
- 15 mil
- Posición en el ranking
- #11103
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
create-leaderboard-route
15 milAyuda a tu agente a crear rutas para el Leaderboard de CARLA, colocando puntos de paso y disparadores de escenario desde la cámara del simulador.
package-leaderboard-agent
15 milAyuda a tu agente a empaquetar un agente de conducción en una imagen de Docker para el Leaderboard de CARLA, y comprueba que la imagen lo carga.
read-leaderboard-results
15 milAyuda a tu agente a leer los resultados del Leaderboard de CARLA, explicar la puntuación e infracciones de cada ruta y recalcular la ejecución con otra versión de las reglas.
run-leaderboard-evaluation
15 milAyuda a tu agente a ejecutar el evaluador del Leaderboard de CARLA en un conjunto de rutas, revisando antes la configuración y guardando puntos de control.
Skills parecidas
test-driven-development
311 milEnseña a tu agente a escribir primero una prueba que falle, verla fallar y después escribir el código más pequeño que la hace pasar, antes de construir cualquier función o corrección.
verification-before-completion
311 milEnseña a tu agente a ejecutar comprobaciones reales y leer su resultado antes de afirmar que una tarea, una corrección o una compilación está completa o en buen estado.
migrate-to-shoehorn
310 milSustituye los casts de tipo arriesgados de tus archivos de prueba por la librería shoehorn, para que las pruebas usen datos parciales y sigan pasando las comprobaciones de tipos.