debug-draw
Qué hace
La skill dibuja superposiciones temporales en un mundo de CARLA. Está pensada para desarrolladores que quieren marcar un lugar, una trayectoria o una caja mientras revisan su trabajo.
Cuándo usarla
- ✓Cuando quieres marcar un punto, una línea o una caja en el mundo simulado.
- ✓Cuando quieres visualizar una trayectoria o un conjunto de puntos de paso.
- ✓Cuando quieres etiquetar un lugar del mapa para depurar.
Link de la skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/debug-draw/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
“Dibuja un marcador verde en 10, 20, 1 y una línea desde el origen hasta 50, 0, 1 que dure 60 segundos.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente envía el comando de dibujo con una posición, un color y una duración. Las figuras aparecen como una superposición temporal en el servidor y desaparecen cuando termina su duración.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Draw CARLA debug shapes
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.
Overlay primitives on the running world for visual debugging: points, lines,
arrows, boxes, text. They are drawn by the server as a transient overlay — not
actors — so they cannot be selected or deleted individually; they expire after
their --life. Other skills (e.g. map-waypoints) draw through this same
world.debug API.
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: Draw the primitive(s) with a colour and lifetime
- [ ] Step 3: Confirm in a rendered view; redraw if it must persist in sync mode
Commands need CARLA_HOST/CARLA_PORT from scripts/env.sh. Coordinates are
world metres X,Y,Z; colours are r,g,b (0-255). Negative coordinates: use
the = form (--at=-10,-5,1, --from=-3,0,1) so a leading minus isn't read as
a flag.
Step 1: Check prerequisites
bash scripts/check_env.sh
Step 2: Draw
source scripts/env.sh
python3 scripts/debug_draw.py point --at 10,20,1 --size 0.2 --color 0,255,0 --life 60
python3 scripts/debug_draw.py line --from 0,0,1 --to 50,0,1 --thickness 0.2 --life 60
python3 scripts/debug_draw.py arrow --from 0,0,1 --to 10,0,1 --color 0,0,255 --life 60
python3 scripts/debug_draw.py box --center 30,30,1 --extent 2,4,1.5 --yaw 45 --life 60
python3 scripts/debug_draw.py text --at 30,30,3 --text "junction 12" --color 255,255,0 --life 60
Step 3: Confirm / persistence
Shapes render on a world tick, in a rendered view. Two gotchas:
- Headless
-nullrhiservers show nothing — there is no render thread. Use a windowed or packaged server to see overlays. - Sync mode: nothing appears until the client ticks, and
--lifeis in simulation time. For an overlay that stays up while stepping, redraw each frame (or set--lifelonger than your tick interval).
On CARLA 0.10.0 (the UE5 line: 5.5 and 5.8)
The HUD variants are gone on 0.10.0. carla.DebugHelper there exposes
exactly seven methods — draw_point, draw_line, draw_arrow, draw_box,
draw_string, clear_debug_shape, clear_debug_string — so the 0.9.14+
draw_hud_point / draw_hud_line / draw_hud_box family (which drew in screen
space, ignoring depth) has no equivalent. Use the world-space calls; they behave
the same on both versions.
clear_debug_shape and clear_debug_string exist on both, and are the only way
to remove a shape before its lifetime expires.
Examples
Example 1: mark a spot
User says: "mark world position (10, 20)"
point --at 10,20,1 --size 0.2 --color 0,255,0 --life 120.
Example 2: label and box an object
User says: "put a box and a label around (30,30)"
box --center 30,30,1 --extent 2,4,1.5 then text --at 30,30,3 --text "target".
Troubleshooting
Problem: nothing shows up
Cause: headless -nullrhi server (no rendering), or sync mode without a tick.
Solution: run a windowed/packaged server; in sync mode tick the world.
Problem: shape vanishes immediately
Cause: very small --life, or a single-frame draw in sync mode.
Solution: raise --life, or redraw each frame for a persistent overlay.
Problem: I can't delete a shape
Cause: debug shapes are not actors.
Solution: they expire on their own; use a short --life, or reload the world.
Outputs
Transient visual overlay in the rendered world. No file, no persistent actor.
Detail (each primitive's parameters, colour/lifetime semantics, sync-mode behaviour) in references/debug.md.
Preguntas frecuentes
¿Puedo seleccionar o borrar una figura?
No. Las figuras son una superposición y no actores, así que caducan al terminar su duración.
¿Qué colores puedo usar?
Valores de rojo, verde y azul, cada uno de 0 a 255.
¿Qué coordenadas usa?
Coordenadas del mundo en metros, dadas como X, Y y Z.
Detalles
Descripción original del autor
Draws debug overlays in a running CARLA world via world.debug — points, lines, arrows, bounding boxes, and text strings, each with a colour and lifetime. Use when the user asks to "draw/mark/highlight a point or box in the world", "visualise a path/waypoints", "label a location", or "show something on the map for debugging". Shapes are an overlay, not actors.
repo: carla-simulator/carla
Popularidad
- Estrellas en GitHub
- 15 mil
- Posición en el ranking
- #11091
- 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
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.