toggle-env-objects
Qué hace
Esta skill activa o desactiva los elementos de fondo integrados de un mapa de CARLA, como edificios y árboles. Está pensada para personas que quieren una vista más clara de las carreteras o escenas de prueba más limpias.
Cuándo usarla
- ✓Cuando quieres ocultar los edificios para ver solo las carreteras y los coches.
- ✓Cuando necesitas quitar árboles u otras plantas de una escena que estás probando.
- ✓Cuando quieres ver una lista de los elementos de un mapa antes de cambiar nada.
Link de la skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/toggle-env-objects/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
“Oculta todos los edificios de mi mapa de CARLA para ver solo las carreteras y los coches.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente agrupa los elementos fijos del mapa por tipo, como Buildings o Vegetation, y activa o desactiva un grupo completo. El cambio dura hasta que se recarga el mapa.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Toggle CARLA environment objects
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.
Show or hide the map's static, baked assets — buildings, vegetation, poles,
fences, walls, signs — grouped by CityObjectLabel. These are not spawned
actors: they come with the map. Toggling changes both rendering and
collision, applies to the whole matching set at once, and resets on a map
reload.
Resolving words to a label
The agent maps the request to a CityObjectLabel (run labels for the list),
then acts:
- "hide the buildings" →
disable --label Buildings - "remove the trees" →
disable --label Vegetation - "turn off street poles" →
disable --label Poles - "show only the roads" → disable the other big labels (Buildings, Vegetation,
Fences, Walls…), or re-
enableselectively.
Narrow within a label by asset name with --name (substring).
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: List to see labels/counts (labels, list --label X)
- [ ] Step 3: disable / enable the matching set (use --dry-run first if unsure)
- [ ] Step 4: Confirm on a rendered view (effect is visual + collision)
Commands need CARLA_HOST/CARLA_PORT from scripts/env.sh.
Step 1: Check prerequisites
bash scripts/check_env.sh
Step 2-3: List and toggle
source scripts/env.sh
python3 scripts/toggle_env.py labels # valid CityObjectLabel names
python3 scripts/toggle_env.py list # whole-map summary by type
python3 scripts/toggle_env.py list --label Buildings # count + sample of buildings
python3 scripts/toggle_env.py disable --label Buildings # hide all buildings
python3 scripts/toggle_env.py disable --label Vegetation --dry-run # preview first
python3 scripts/toggle_env.py disable --label Poles --name lamp # subset by name
python3 scripts/toggle_env.py enable --label Buildings # bring them back
Step 4: Confirm
The effect is visual + collision on a rendered server. enable_environment_objects
returns nothing to read back, so the command reports the count toggled;
confirm the change in a windowed/packaged view.
On CARLA 0.10.0 (the UE5 line: 5.5 and 5.8)
get_environment_objects() and enable_environment_objects() — what this skill
uses — work normally. Measured on Town10HD_Opt: 59 102 objects, 48 369 of them
Buildings, then Vegetation 4 270, Fences 1 767, Static 1 223,
Dynamic 489, Sidewalks 269, TrafficSigns 147, Poles 120,
TrafficLight 62, Bicycle 56, plus 1 768 labelled NONE.
CityObjectLabel gained Rock (= 29), which does not exist on 0.9.x
(LibCarla/source/carla/rpc/ObjectLabel.h:48). Code that iterates the enum by
name is fine; code that hard-codes label integers is not.
Do not reach for map layers as an alternative here. load_map_layer /
unload_map_layer are accepted and silently do nothing on 0.10.0 — see
[[load-map]] for the measurement and the cause. enable_environment_objects is
the mechanism that actually hides geometry on this version.
Examples
Example 1: clear the buildings
User says: "hide all the buildings"
disable --label Buildings → reports N buildings hidden; the town goes bare.
enable --label Buildings restores them.
Example 2: strip vegetation for a clean capture
User says: "remove the trees and bushes"
disable --label Vegetation. Combine with a weather/settings setup for dataset
capture.
Example 3: preview before a big toggle
User says: "what would hiding the fences affect?"
disable --label Fences --dry-run lists the count and sample without changing
anything.
Troubleshooting
Problem: nothing changes visually
Cause: headless -nullrhi server (no rendering), or wrong label.
Solution: use a rendered server; list --label X to confirm the set is non-empty.
Problem: objects came back after loading a map
Cause: toggles are per-world; a map load/reload rebuilds all objects.
Solution: re-apply the toggles after load-map.
Problem: list --label X is empty but I see those assets
Cause: the assets may be tagged under a different label (e.g. Static/Other).
Solution: list (no label) for the by-type summary, then target the right label.
O
Preguntas frecuentes
¿Ocultar los edificios también quita su colisión?
Sí. Desactivar un objeto cambia tanto su aspecto como la posibilidad de que los coches choquen contra él.
¿Puede ocultar solo algunos edificios?
Sí. Se puede usar un nombre para limitar el cambio a los elementos que coincidan dentro de un grupo.
¿El cambio se mantiene al recargar el mapa?
No. Los elementos vuelven a su estado normal cuando se recarga el mapa.
Detalles
Descripción original del autor
Lists and toggles a map's static environment objects via get_environment_objects / enable_environment_objects — hide or show buildings, vegetation, poles, fences, traffic signs and other baked assets by CityObjectLabel (and optional name filter). Use when the user asks to "hide/remove the buildings", "turn off the trees/vegetation", "show only the roads", "disable the fences", or "list the environment objects". Affects rendering and collision; resets on map reload.
repo: carla-simulator/carla
Popularidad
- Estrellas en GitHub
- 15 mil
- Posición en el ranking
- #11105
- 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.