Langsung ke konten
Skillpedia
Pemrograman umum15k Β· #11133

import-carla-ue58-walker

Fungsinya

Skill ini mengimpor model manusia 3D yang memiliki skeleton ke CARLA pada Unreal Engine 5.8 sebagai pejalan kaki yang berjalan. Untuk orang yang membutuhkan orang kustom di jalan simulasi versi yang lebih baru.

Kapan dipakai

  • βœ“Saat Anda punya model 3D orang yang sudah di-rig dan ingin ia berjalan di build CARLA yang lebih baru.
  • βœ“Saat orang yang diimpor muncul tetapi tidak bergerak, dan Anda perlu mencari tahu penyebabnya.
  • βœ“Saat Anda ingin mengekspor pejalan kaki CARLA yang sudah ada untuk memulai model baru dari skeleton-nya.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue58/import-carla-ue58-walker/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBisakah Anda mengimpor model 3D orang yang sudah di-rig ke CARLA pada Unreal 5.8 agar ia berjalan seperti pejalan kaki bawaan?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent mengimpor model yang memiliki skeleton ke skeleton bersama CARLA, menyalin pengaturan pejalan kaki yang berfungsi, dan mengarahkannya ke mesh baru. Lalu orang itu didaftarkan agar dapat dimunculkan dan berjalan dengan animasi standar.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Import a walker on UE 5.8

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 walker is three artefacts, not one. Miss any and it either never appears or appears and never moves:

skinned FBX
  --import, bound to the SHARED skeleton-->  SkeletalMesh
  --duplicate a donor BP, repoint its mesh-->  BP_<Name>_C
  --WalkerParameters.json entry-->  walker.pedestrian.<id>

Two things make this harder than [[import-carla-ue58-prop]]:

  • The registry points at a blueprint class, not a mesh. So a blueprint has to exist, and it is made by duplicating a donor β€” the skeletal mesh and anim class live on the compiled class's CDO, and a fresh subclass would need a recompile, which resets both to the parent's defaults.
  • The skeleton binding decides whether it animates, and getting it wrong fails silently. Bind to CARLA's shared Skel_Pedestrian_G2/G3 and the pedestrian animation set drives your mesh. Let the importer create its own skeleton β€” the default β€” and you get a structurally identical private skeleton, a walker that registers, spawns, looks right and stands still. No warning anywhere.

Instructions

Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh)
- [ ] Step 2: donors β€” pick a donor and see the shared skeletons
- [ ] Step 3: get a rig-conforming FBX (export one if you have no art)
- [ ] Step 4: plan, then import
- [ ] Step 5: RESTART the server, then verify --spawn

Step 2-3: Donor, and where the FBX comes from

source scripts/env.sh

python3 scripts/import_walker.py donors

Lists the 38 shipped walkers with generation/gender/age, checks both shared skeletons exist, and reports free registry ids.

The FBX must be skinned to CARLA's pedestrian rig. If you have no such art, export a shipped walker β€” that is also the round-trip that validates the pipeline:

python3 scripts/import_walker.py export --walker 0015 --out ~/MyPed.fbx

Measured on walker 0015: a 1.72 MB FBX, mesh 1.69 Γ— 0.34 Γ— 1.84 m, skeleton Skel_Pedestrian_G2.

Step 4: Import

python3 scripts/import_walker.py plan   ~/MyPed.fbx --name MyPed
python3 scripts/import_walker.py import ~/MyPed.fbx --name MyPed
Flag Effect
--name asset and blueprint name; the FBX is staged as <name>.fbx first, because the imported asset takes the file's name
--gen 2|3 which shared skeleton to bind to (default 2)
--id registry id (default: first free from 0090)
--donor donor id or blueprint path (default: lowest id of that generation)
--gender, --age override the donor's values
--scale import_uniform_scale
--no-register import without touching the registry

import fails loudly if the mesh ends up on a private skeleton, rather than registering a walker that cannot animate.

Step 5: Restart, verify

Definitions load once at startup. A walker registered against a running server does not appear until it restarts.

cd ../run-carla-ue58-server && bash scripts/run_server.sh stop
DETACH=1 bash scripts/run_server.sh game

cd ../import-carla-ue58-walker
python3 scripts/import_walker.py verify --id 0090 --spawn

verify --spawn checks the registry entry, the blueprint on disk, the blueprint library, then spawns it, drives it with a WalkerControl and asserts a non-zero peak speed. That last check is the only proof the shared skeleton's animations are driving the mesh β€” a private-skeleton walker spawns and reads exactly 0.00 m/s. It also reports the bone count.

Verified output:

PASS registered: gen2 Female Adult -> /Game/Carla/Blueprints/Walkers/BP_SkillPed.BP_SkillPed_C
PASS blueprint on disk   PASS walker.pedestrian.0090 in the blueprint library
PASS spawned id=25 bbox 1.68 x 0.30 x 1.83 m
PASS peak 1.40 m/s under WalkerControl β€” the shared skeleton's animations are
     driving it (net travel 0.09 m)
PASS 66 bones readable

The check asserts on peak SPEED, not distance travelled, and that matters. Measured on a stock walker: peak 1.40 m/s β€” exactly the commanded speed β€” with 0.09 m of net travel, because get_spawn_points() returns vehicle bays that can be boxed in by geometry, so the walker treadmills against a wall. Speed proves the mesh/skeleton/

Pertanyaan umum

Mengapa skeleton penting?

Jika model memakai skeleton pribadi, ia bisa terlihat benar tetapi tetap diam, dan tidak ada peringatan.

Bisakah memulai dari pejalan kaki yang sudah ada?

Bisa. Skill dapat mengekspor pejalan kaki bawaan ke file sebagai titik awal.

Di mana pejalan kaki didaftarkan?

Dalam file parameter yang mendaftar setiap pejalan kaki berdasarkan ID-nya.

Detail

Deskripsi asli dari pembuat

Imports a pedestrian into CARLA on UE 5.8 as a spawnable, animating walker β€” imports the skinned FBX bound to CARLA's shared pedestrian skeleton, duplicates a donor walker blueprint and repoints it at the new mesh, and registers it in WalkerParameters.json as walker.pedestrian.<id>. Can also export a shipped walker to FBX, which is how you obtain a rig-conforming mesh to start from. Use when the user asks to "import a walker/pedestrian", "add a custom character", "clone a walker", or has a walker that spawns but stands still.

repo: carla-simulator/carla

Popularitas

Bintang GitHub
15k
Peringkat
#11133
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa