本文へ移動
cccskills
無料GitHub で公開

toggle-env-objects

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.

インストール方法を見る

含まれるファイル(5)

  • SKILL.md5.5 KB
  • references/env-objects.md2.6 KB
  • scripts/check_env.sh2.1 KB
  • scripts/env.sh1.1 KB
  • scripts/toggle_env.py5.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Toggle CARLA environment objects

Paths. scripts/… and references/… 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-enable selectively.

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.

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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Adds a new ROS 2 message type to CARLA's native ROS 2 interface — the hand-written POD struct under LibCarla/source/carla/ros2/types/msg, its Fast-CDR serialize/deserialize pair, the RIHS01 type hash computed in Docker, the CdrTopicInfo registration and the type-hash test. Use when the user asks to "add a ROS message type", "support sensor_msgs/X in CARLA", "add a carla_msgs type", "why is my type hash warning appearing", or needs a message CARLA does not publish yet. There is no IDL codegen — every step is manual.

日本語の概要は準備中です。原文の説明を表示しています。

carla-simulator/carla-agentic-tools42026年9月12日 更新

Adds a new topic to CARLA's native ROS 2 interface — a publisher (BasePublisher + PublisherImpl, topic suffix, QoS, registration in ROS2::GetOrCreateSensor, a ProcessDataFrom* entry point and its call site in the UE4 plugin) or a subscriber that lets ROS drive an actor. Also covers adding a middleware (RMW) behind IPublisherMiddleware. Use when the user asks to "publish X to ROS from CARLA", "add a ROS topic/publisher/subscriber", "make the obstacle/lane-invasion sensor publish", "add odometry to ROS", or "add another RMW".

日本語の概要は準備中です。原文の説明を表示しています。

carla-simulator/carla-agentic-tools42026年9月12日 更新

Reads and summarises ScenarioRunner output — the criteria pass/fail tables from --output/--file, the machine-readable --json and --junit result files, and the criteria JSON written alongside a --record recording — and runs the metrics module (metrics_manager.py) to compute custom measurements over a recorded run offline, without the simulator. Use when the user asks "did the scenario pass", "why did it fail", "summarise these results", "compare these runs", or wants distance/speed/lane metrics from a recording.

日本語の概要は準備中です。原文の説明を表示しています。

carla-simulator/carla-agentic-tools42026年9月12日 更新

Gets actor and level 3D bounding boxes and projects them into a camera image as 2D boxes — the dataset-annotation workflow. Lists box geometry, draws 3D boxes in the world via debug, or captures one camera frame and writes an annotated PNG plus a JSON of 2D boxes for matching actors. Use when the user asks to "get bounding boxes", "draw boxes around the cars", "project boxes onto the camera", or "generate a detection dataset / annotations".

日本語の概要は準備中です。原文の説明を表示しています。

carla-simulator/carla-agentic-tools42026年9月12日 更新

Builds CARLA (branch ue4-dev, Unreal Engine 4.26) from source on Linux end-to-end — UE4 fork, the Carla server (editor C++ modules), the LibCarla Python client wheel, and content — then verifies them against a from-source server. Optionally builds the native ROS 2 interface in (ROS2=1 → --ros2, Fast-DDS/CycloneDDS/Zenoh), which is compile-time only and cannot be enabled later. Use when the user asks to "build CARLA from source", "compile CARLA ue4-dev", "set up CARLA on Ubuntu (incl. 24.04)", "build CARLA with ROS2 support", or "produce a CARLA server + client wheel". Cooking a distributable Dist/ package is a separate skill (package-carla-ue4); running the build is run-carla-server.

日本語の概要は準備中です。原文の説明を表示しています。

carla-simulator/carla-agentic-tools42026年9月12日 更新

Builds CARLA on Unreal Engine 5.8 from the ue58-dev branch using its CMake build system — configure a preset, then build the carla-unreal / carla-unreal-editor / carla-python-api-install / launch targets — with ROS 2, DLSS, RSS and cook-scope options, and the engine-side build of the CarlaUnreal UE 5.8 fork. There is no Makefile and no Util/BuildTools in this tree, so every UE4 `make` recipe is invalid here. Use when the user asks to "build CARLA UE5", "build ue58-dev", "compile CARLA with cmake", "rebuild the Python API", or hits a CMake configure or target failure.

日本語の概要は準備中です。原文の説明を表示しています。

carla-simulator/carla-agentic-tools42026年9月12日 更新

carla-simulator のスキルをすべて見る

このスキルの問題を報告する