import-carla-ue58-walker
它能做什么
这项技能把带骨骼蒙皮的三维人物模型导入 Unreal Engine 5.8 上的 CARLA,使其成为可以行走的行人。适合想在较新版本的模拟街道中加入自定义人物的人。
适用场景
- ✓当你有一个已绑定骨骼的三维人物模型,并想让它在较新的 CARLA 构建中行走的时候。
- ✓当导入的人物出现了但不动,你需要找出原因的时候。
- ✓当你想导出一个现有的 CARLA 行人,以它的骨骼为起点制作新模型的时候。
技能链接
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue58/import-carla-ue58-walker/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我把已绑定骨骼的三维人物模型导入 Unreal 5.8 上的 CARLA,让它能像内置行人一样四处走动?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会把带蒙皮的模型导入 CARLA 的共享骨骼,复制一套可用的行人设置,并将其指向新的网格。之后它会注册这个人物,使其能被生成,并使用标准动画行走。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Import a walker on UE 5.8
Paths.
scripts/…andreferences/…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/G3and 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/
常见问题
为什么骨骼很重要?
如果模型使用自己的独立骨骼,它看起来可能正常,但会站着不动,而且没有任何警告。
我可以从现有行人开始吗?
可以。这项技能可以把内置行人导出为文件,作为起点。
行人注册在哪里?
注册在一个参数文件中,文件里按 ID 列出每个行人。
详情
作者的原始描述
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
热度
- GitHub 星标
- 15k
- 排名
- #11133
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
create-leaderboard-route
15k帮你的智能体通过在模拟器视角中放置路径点和场景触发器,构建 CARLA Leaderboard 路线文件,并对其进行检查和排序。
package-leaderboard-agent
15k帮你的智能体把驾驶智能体打包成 Docker 镜像,用于提交 CARLA Leaderboard,并检查文件夹结构,测试镜像能否加载它。
read-leaderboard-results
15k帮你的智能体阅读 CARLA Leaderboard 结果文件,解释每条路线的得分和违规情况,并按另一规则版本重新计分。
run-leaderboard-evaluation
15k帮你的智能体用你的驾驶智能体在一组路线上运行 CARLA Leaderboard 评估器,先检查设置,并保存可以恢复的检查点。