toggle-env-objects
O que ela faz
Esta skill liga ou desliga os itens de fundo embutidos de um mapa do CARLA, como prédios e árvores. É para quem quer uma visão mais clara das vias ou cenas de teste mais limpas.
Quando usar
- ✓Quando você quer ocultar os prédios para ver apenas as vias e os carros.
- ✓Quando você precisa remover árvores ou outras plantas de uma cena que está testando.
- ✓Quando você quer ver a lista de itens que um mapa contém antes de alterar qualquer coisa.
Link da skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/toggle-env-objects/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Você pode ocultar todos os prédios do meu mapa do CARLA para que eu veja apenas as vias e os carros?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente agrupa os itens fixos do mapa por tipo, como Prédios ou Vegetação, e liga ou desliga um grupo inteiro. A mudança dura até o mapa ser recarregado.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Ocultar os prédios também remove a colisão deles?
Sim. Desligar um objeto altera tanto a aparência quanto a possibilidade de carros colidirem com ele.
Ela consegue ocultar apenas alguns prédios?
Sim. Um nome pode ser usado para restringir a mudança aos itens correspondentes dentro de um grupo.
A mudança permanece depois que recarrego o mapa?
Não. Os itens voltam ao estado normal quando o mapa é recarregado.
Detalhes
Descrição original do 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
Popularidade
- Estrelas no GitHub
- 15 mil
- Posição no ranking
- #11105
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
create-leaderboard-route
15 milAjuda seu agente a criar arquivos de rota do CARLA Leaderboard posicionando waypoints e gatilhos de cenário a partir da câmera do simulador, depois verificando e ordenando-os.
package-leaderboard-agent
15 milAjuda seu agente a empacotar um agente de direção em uma imagem Docker para envio ao CARLA Leaderboard, verificando a estrutura de pastas e testando se a imagem o carrega.
read-leaderboard-results
15 milAjuda seu agente a ler um arquivo de resultados do CARLA Leaderboard, explicar a pontuação e as infrações de cada rota e recalcular uma execução pela outra versão das regras.
run-leaderboard-evaluation
15 milAjuda seu agente a rodar o avaliador do CARLA Leaderboard em um conjunto de rotas com seu agente de direção, verificando a configuração antes e salvando checkpoints para retomar.
Skills parecidas
test-driven-development
311 milEnsina seu agente a escrever primeiro um teste que falha, ver a falha e depois escrever o menor código que passa, antes de criar qualquer funcionalidade ou correção.
verification-before-completion
311 milEnsina seu agente a rodar verificações reais e ler a saída antes de afirmar que uma tarefa, correção ou build está concluído ou passando.
migrate-to-shoehorn
310 milSubstitui conversões de tipo arriscadas nos seus arquivos de teste pela biblioteca shoehorn, para que os testes usem dados parciais e ainda passem na checagem de tipos.