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

import-carla-vehicle

하는 일

이 스킬은 3D 자동차 모델을 CARLA 시뮬레이터에서 달리는 차량으로 바꿉니다. 시뮬레이션에서 자체 차량 디자인을 테스트해야 하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓3D 자동차 모델이 있고, CARLA에서 주행하게 하고 싶을 때.
  • ✓특정 차량을 자율주행 소프트웨어가 어떻게 다루는지 테스트하려고 맞춤 차량이 필요할 때.
  • ✓모델의 바퀴 설정이 CARLA가 요구하는 방식과 달라서 가져오기가 멈출 때.

스킬 링크

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

AI에게 요청하는 예시

“내 밴 3D 모델을 CARLA에 운전할 수 있는 차량으로 가져오고, 제대로 생성되는지 확인해 줄 수 있나요?”

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

작동 방식

에이전트는 먼저 모델의 바퀴 설정을 확인한 뒤, 메시를 가져오고 물리와 바퀴 설정을 만듭니다. 그다음 차량을 등록해서 기본 제공 차량처럼 차량 목록에 나타나게 합니다.

기술 내용 (원본 SKILL.md)

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

Import a vehicle 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.

python3 scripts/import_vehicle.py ~/models/SK_MyVan.fbx \
    --make ford --model transit --base-type truck --generation 3 --wheel-radius 40

The FBX must be a skeletal mesh whose wheels are bones named Wheel_Front_Left, Wheel_Front_Right, Wheel_Rear_Left, Wheel_Rear_Right. PhysX's PxVehicleDrive4W finds wheels by those exact names — the physics bodies, the WheelSetups and the animation blueprint all address them — so the rig is checked before anything boots.

The result spawns and drives like any native CARLA vehicle:

bp = bp_lib.find('vehicle.ford.transit')
car = world.spawn_actor(bp, world.get_map().get_spawn_points()[0])
car.apply_control(carla.VehicleControl(throttle=0.6, steer=0.2))

Pipeline, schema and constraints: references/vehicle_import.md.

Instructions

Vehicle Import Progress:
- [ ] Step 0: ASK THE USER for make, model, base type, generation and wheel radius
- [ ] Step 1: Check the INPUT FILE first — format, skinned, rig, textures
- [ ] Step 2: Check prerequisites — hand off to build-carla-ue4 on a build FAIL
- [ ] Step 3: Import — boot 1 assembles the vehicle, boot 2 registers it
- [ ] Step 4: Verify it spawns, drives and steers on a running server

Step 0: Ask the user for the attributes

Do this before anything else, every time. Do not infer them from the file name.

ask values why it must be asked
make e.g. ford, tesla, carla first half of the blueprint id
model e.g. transit, model3 second half of the blueprint id
base type car / truck / van / bus / motorcycle / bicycle Traffic Manager and most example scripts filter on it
generation 1 / 2 / 3 asset generation the attribute claims
wheel radius centimetres PhysX sizes the suspension from it and nothing in the mesh states it

Optional and worth offering: --wheel-width (defaults to 45% of the radius), --wheel-mass, --steer-angle (default 70°), --special-type (electric, emergency, taxi), --has-lights, --object-type.

Wheel radius is the one number with physical consequences: too small and the car sits in the road, too large and it bounces. Measure it in the authoring scene; failing that, a normal car's wheel diameter is roughly a third of its total height.

Step 1: Check the input file — ALWAYS FIRST

python3 scripts/check_input.py ~/models/SK_MyCar.fbx

Expected input, in one place:

requirement detail
format FBX, binary or ASCII. Nothing else is importable — .ma, .mb, .blend, .max, .c4d, .obj, USD, glTF, COLLADA all fail here
kind a skinned/skeletal mesh whose wheels are BONES. A rigid body is a prop, not a vehicle
rig the four canonical wheel bones: Wheel_Front_Left, Wheel_Front_Right, Wheel_Rear_Left, Wheel_Rear_Right, plus a chassis bone (Vehicle_Base by convention; otherwise inferred)
textures embedded (FBX export option "Embed Media") or texture files beside the FBX. Absolute paths from the author's machine resolve nowhere
contents one vehicle per file; animation is not needed and is not imported
units authored in cm or m — the importer converts scene units
known separately the wheel radius in cm. It is not in the file and PhysX sizes the suspension from it

Exit codes: 0 usable, 1 wheel bones missing, 2 unusable (wrong format, or not skinned).

[input] SK_Ambulance_export.fbx  2493 KB
[input] PASS  binary FBX
[input] PASS  skinned
[input] PASS  all 4 wheel bones present

Extra bones beyond the wheels and chassis are fine — doors, steering wheel, suspension helpers all pass. The texture line is a warning, never fatal.

import_vehicle.py runs this itself and refuses on a 1 or 2.

Step 2: Check prerequisites

bash scripts/check_env.sh

Beyond a runnable editor this checks the things no step here can create: CarlaTools built with VehicleAuthoringLibrary (hard blocker — see C4), add_vehicle_to_vehicle_factory.py, the donor vehicle blueprint, its four donor wheel blueprints, the donor anim blueprint, and that `VehicleF

자주 묻는 질문

자동차 모델에는 무엇이 필요한가요?

네 바퀴가 CARLA가 기대하는 이름의 뼈대(bone)로 지정된, 뼈대 기반 모델이어야 합니다.

가져오기에 어떤 정보가 필요한가요?

제조사, 모델명, 기본 유형, 세대, 바퀴 크기입니다. 스킬이 가져오기 전에 먼저 이 정보를 물어봅니다.

내 차도 기본 제공 차량처럼 주행하나요?

네. 가져온 뒤에는 기본 CARLA 차량처럼 생성되고 제어할 수 있습니다.

상세 정보

작성자의 원본 설명

Imports an FBX vehicle into a CARLA source build as a spawnable vehicle.<make>.<model> — checks the FBX carries CARLA's 4-wheel bone rig, imports the mesh, then assembles the vehicle through CarlaTools' VehicleAuthoringLibrary (physics asset with kinematic wheel bodies, retargeted anim blueprint, four configured wheel blueprints, the vehicle blueprint), registers it in VehicleFactory through CARLA's own add_vehicle_to_vehicle_factory.py, and verifies it spawns, drives and steers. Use when the user asks to "add a car/truck/van to CARLA", "import a vehicle FBX", or needs a custom drivable vehicl

repo: carla-simulator/carla

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬