본문으로 건너뛰기
Skillpedia
일반 코딩15k · #11123

import-carla-prop

하는 일

이 스킬은 3D 모델 파일을 CARLA에 소품으로 가져옵니다. 소품은 벤치, 바리케이드, 도로 표지판 같은 물체입니다. 시뮬레이션 거리에 맞춤 물체를 추가하려는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓거리 물체의 3D 모델이 있고, 이를 CARLA에 넣고 싶을 때.
  • ✓테스트를 위해 시뮬레이터에 새 벤치나 표지판이 나타나기를 원할 때.
  • ✓가져온 소품을 실행 중인 시뮬레이션에 배치할 수 있는지 확인하고 싶을 때.

스킬 링크

https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue4/import-carla-prop/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue4/import-carla-prop/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내 폴더의 FBX 벤치 모델을 CARLA에 소품으로 가져오고, 배치할 수 있는지 확인해 줄 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 각 모델을 CARLA로 가져온 뒤, 폴더 이름에서 얻은 태그로 라벨을 붙이고, 기본 제공 소품처럼 생성할 수 있도록 등록합니다. 그다음 테스트용 복사본을 배치해 작동을 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Import a prop into CARLA

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.

# a directory — each subdirectory names the semantic tag for what is inside
python3 scripts/import_prop.py ~/meshes/props

# a single file — state its tag
python3 scripts/import_prop.py ~/meshes/Windmill.fbx --tag Building

Each mesh is imported into /Game/Carla/Static/<Tag>/<Name>, registered in Content/Carla/Config/Default.Package.json, and added to PropFactory — after which it spawns exactly like a native CARLA prop:

barrier_bp = bp_lib.find('static.prop.policebarrier')
for spawn_loc in spawn_locations:
    world.spawn_actor(barrier_bp, spawn_loc)

Pipeline detail, schema and the P-lessons: references/props.md.

Instructions

Prop Import Progress:
- [ ] Step 1: Check prerequisites — hand off to build-carla-ue4 on a build FAIL
- [ ] Step 2: Import (one command, one editor boot)
- [ ] Step 3: Verify the props spawn on a running server
- [ ] (opt-in) Export as a standalone package

Step 1: Check prerequisites

bash scripts/check_env.sh

What must exist is a runnable editor for this project: UE4_ROOT, the checkout, a built CarlaUE4Editor, and PythonScriptPlugin.

This skill never builds. On a FAIL naming UE4, CarlaUE4Editor or missing content, stop and run [[build-carla-ue4]] against that checkout, then come back.

The check also reports whether Content/Carla is a symlink to a shared content clone — if so, everything below lands in a tree every other checkout sees. --package NAME keeps an import out of it.

Step 2: Import

The directory form takes each prop's tag from the first level below the path you give — the same shape as the destination:

~/meshes/props/
├── Building/Windmill.fbx
├── Static/Bench_Modern.fbx
└── Dynamic/Crate.fbx

Any directory works. An FBX loose in the root, or under a directory that is not a tag, is an error before the editor boots.

size is measured, not asked. EPropSize is defined by physical scale, so the importer reads the mesh's bounding box and reports it:

[import] OK    static.prop.windmill    3.2 x 3.1 x 12.4 m    size=huge (measured)    412 KB

Read the dimensions: a mesh exported at the wrong scale shows up here. --size overrides.

tag cannot be measured and is never defaulted. It sets the semantic segmentation label, and a wrong one is labelled None with nothing raised. When filling it in from a request rather than from directory names:

the object is… tag
bolted-down street furniture — bench, ATM, bus stop, fountain, mailbox, vending machine Static
portable or knockable — bin, box, bag, cone, chair, cart, barrier Dynamic
a structure with mass — kiosk, shed, windmill, tower Building
a plant Vegetation
a post — street light, sign post, bollard Pole
road-surface debris Other

Say which tag you chose and why in one line, so the user can correct it before anything is written. When the object is ambiguous, ask.

Other flags:

flag why
--name prop name for a single file; defaults to the FBX stem
--package NAME import into its own /Game/NAME/ tree — self-contained, exportable, touches no shared content, no factory entry
--no-factory skip PropFactory; the registry entry alone still makes the prop spawnable
--mesh nominate one mesh when a multi-mesh FBX yields several
--verbose stream the editor log instead of capturing it

The importer stats every .uasset at the path it registered and fails if one is missing or too small to hold geometry.

Step 3: Verify they spawn

Start a server ([[run-carla-server]] — the default -nullrhi mode is enough, props need no rendering to spawn):

bash ../run-carla-server/scripts/run_server.sh Town10HD 2000 >/tmp/carla_server.log 2>&1 &
until nc -z 127.0.0.1 2000; do sleep 1; done
python3 scripts/verify_prop.py --name Windmill
pkill -x UE4Editor          # clean stop — never pkill -f (run-carla-server S3)

verify_prop.py filters, finds, spawns and destroys each prop. Blueprint ids are lowercase: static.prop.windmill.

Add --keep to leave the props standing, paired with a windowed server.

**This is whe

자주 묻는 질문

소품에 라벨은 어떻게 붙이나요?

각 하위 폴더의 이름이 그 안에 있는 모델의 라벨이 됩니다. 예를 들어 Building 같은 이름입니다.

파일 하나만 가져올 수 있나요?

네. 파일 하나에는 라벨을 직접 지정할 수 있습니다.

소품을 패키지로 공유할 수 있나요?

네. 다른 사람이 가져올 수 있도록 독립된 패키지로 내보낼 수 있습니다.

상세 정보

작성자의 원본 설명

Imports FBX meshes into a CARLA source build as spawnable static.prop.* blueprints — pass a directory whose subdirectories name the semantic tags, or a single FBX with its tag, and the props are imported into content, registered, added to the prop factory and verified by spawning. Use when the user asks to "add a prop to CARLA", "import an FBX as a prop", "add street furniture/benches/signs", or needs a custom mesh spawnable from the Python API.

repo: carla-simulator/carla

인기도

GitHub 스타
15k
순위
#11123
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬