본문으로 건너뛰기
cccskills
무료GitHub에 공개

toggle-env-objects

List static objects built into a CARLA map and hide or restore them by category or asset name. Adjust buildings, vegetation, fences, and other scenery, preview affected objects, and change both their visibility and collision behavior.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

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.

설치 방법 보기

이럴 때 유용합니다

  • Hide buildings to inspect a scene
  • Remove trees and bushes for dataset capture
  • Preview which fences a change would affect
  • Restore hidden scenery

포함된 파일(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.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Add a message type to CARLA's native ROS 2 interface. Create its C++ data structure, serialization code for transmission, type identity hash, registration, and tests, with Docker-based hash calculation and build checks.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Adding a standard ROS 2 message type missing from CARLA
  • Defining a custom carla_msgs message
  • Investigating type-hash warnings
carla-simulator/carla1.5만2026년 10월 18일 업데이트

Extend CARLA’s native ROS 2 interface to publish sensor data or receive vehicle commands. Covers topic implementation, registration, data connections, and verification, plus adding middleware, the communication layer used to exchange messages.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Publish obstacle sensor data to ROS 2
  • Add a topic for vehicle speed commands
  • Integrate another communication middleware
carla-simulator/carla1.5만2026년 10월 18일 업데이트

Summarize ScenarioRunner results to see which scenarios passed and which checks failed. Compare runs before and after changes, or analyze recorded driving to produce measurements and plots of vehicle distance and deviation from the lane center.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Checking scenario pass and fail results
  • Comparing results before and after controller changes
  • Plotting vehicle distances from a recorded run
carla-simulator/carla1.5만2026년 10월 18일 업데이트

Checks a local CARLA checkout for missing API documentation, outdated references, broken links, and pages absent from navigation. Produces a grouped Markdown report without building the project or running the simulator.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Reviewing documentation before a release
  • Finding missing or outdated API references
  • Checking broken links and navigation gaps
carla-simulator/carla1.5만2026년 10월 18일 업데이트

Read and display CARLA object bounding boxes, then project them onto a camera image as 2D rectangles. Export an annotated PNG and box coordinates in JSON for object detection annotation work.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Adding vehicle boxes to a camera image
  • Exporting box coordinates for detection annotations
  • Checking vehicle dimensions
carla-simulator/carla1.5만2026년 10월 18일 업데이트

Builds CARLA's ue4-dev branch on Linux, producing the Unreal Engine 4.26 editor, server modules, and an installed Python client package. Fetches required content, optionally compiles native ROS 2 support, and verifies the build against a source-built server.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Building CARLA ue4-dev from source
  • Compiling CARLA with native ROS 2 support
  • Building the Python client for an existing environment
carla-simulator/carla1.5만2026년 10월 18일 업데이트

carla-simulator의 스킬 모두 보기

이 스킬의 문제 신고