carla-simulator/carla-agentic-tools/toggle-env-objects
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install carla-simulator/carla-agentic-tools/toggle-env-objectsSKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry/toggle-env-objects.
Toggle CARLA environment objects
Paths.scripts/…andreferences/…below are relative to thedirectory holding this SKILL.md. Your working directory is the user'sproject, not that directory, so prefix them with its absolute path or thecommand 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-enable selectively.
Narrow within a label by asset name with --name (substring).
Instructions
Commands need CARLA_HOST/CARLA_PORT from scripts/env.sh.
Step 1: Check prerequisites
Step 2-3: List and toggle
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.
Outputs
Server-side visibility/collision state of static map assets. No file. The reported count is the record of what was toggled.
Detail (the label taxonomy, name filtering, rendering/collision semantics) in references/env-objects.md.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/python-api/toggle-env-objects/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/carla-simulator/carla-agentic-tools/toggle-env-objects)