import-carla-walker
Skill này làm gì
Skill nhập một mô hình người 3D vào CARLA như một người đi bộ có thể đi lại. Skill dành cho người muốn có người tùy chỉnh trên đường phố mô phỏng.
Khi nào nên dùng
- ✓Khi bạn có mô hình 3D của một người và muốn người đó đi bộ trong CARLA.
- ✓Khi bạn cần một người đi bộ với dáng vẻ hoặc vóc dáng cụ thể cho một bài kiểm thử.
- ✓Khi người đã nhập không di chuyển vì bộ xương không khớp với cách bố trí của CARLA.
Liên kết skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue4/import-carla-walker/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể nhập mô hình người 3D của tôi vào CARLA như một người đi bộ và kiểm tra rằng nó sinh ra và đi được không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra bộ xương của mô hình có khớp với cách bố trí mà người đi bộ CARLA dùng không, rồi nhập lưới, vật liệu và vật lý. Sau đó nó đăng ký người vào danh sách người đi bộ và xác nhận người đó đứng và đi được.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Import a pedestrian into CARLA
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.
python3 scripts/import_walker.py ~/models/SK_AfroBoy01_G3.fbx \
--gender male --age child --generation 3 --speed 0.0,1.1,2.0
--gender, --age and --generation are required and asked of the user (step 0);
--speed is optional, defaulting to the stock adult triple 0.0,1.7,4.0.
The FBX must be skinned to CARLA's GEN3 pedestrian rig — 26 crl_* bones. That is
the whole contract: match it and the walker inherits ABP_GEN3 and every AS_*_G3
animation with no retargeting. Miss it and the import succeeds while the walker never
moves, which is why the rig is checked before anything boots.
The result spawns exactly like a native CARLA pedestrian:
walker_bp = bp_lib.find('walker.pedestrian.0053')
walker = world.spawn_actor(walker_bp, world.get_random_location_from_navigation())
controller = world.spawn_actor(bp_lib.find('controller.ai.walker'),
carla.Transform(), attach_to=walker)
controller.start(); controller.go_to_location(world.get_random_location_from_navigation())
Pipeline, factory schema and constraints:
references/walker_import.md.
Instructions
Walker Import Progress:
- [ ] Step 0: ASK THE USER for gender, age and generation (speed optional)
- [ ] 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 builds the assets, boot 2 registers them
- [ ] Step 4: Verify it spawns, stands, and walks on a running server
Step 0: Ask the user for the attributes
Do this before anything else, every time. Do not infer them, do not carry them over from an earlier import, do not read them off the file name.
Three questions, and the import will not start without the answers — the CLI makes
--gender, --age and --generation required precisely so this cannot be skipped:
| ask | values | why it must be asked |
|---|---|---|
| gender | male / female / other |
not derivable from a mesh at all |
| age | child / teenager / adult / elderly |
height is measured and reported, but a 1.2 m mesh can be a child or a scaled adult |
| generation | 1 / 2 / 3 |
3 is the GEN3 rig this skill imports; the user still chooses what the attribute claims |
--speed is optional and defaults to 0.0,1.7,4.0 — the stock adult triple, and
the same default CARLA's add_walker_to_walker_factory.py uses. Children and teenagers
normally use 0.0,1.1,2.0; when the default contradicts the chosen age the importer
says so rather than accepting it quietly. Ask for it only if the user cares about
walking and running speed.
Every one of these is silent when wrong: nothing raises, the walker spawns happily,
and the attribute is simply wrong for anyone filtering the blueprint library on
gender, age or generation.
Step 1: Check the input file — ALWAYS FIRST
python3 scripts/check_input.py ~/models/SK_MyPed.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. A static mesh is a prop, not a walker |
| rig | skinned to CARLA's GEN3 skeleton: exactly the 26 crl_* bones, no more and no fewer |
| textures | embedded (FBX export option "Embed Media") or texture files beside the FBX. Absolute paths from the author's machine resolve nowhere |
| contents | one character per file; animation is not needed and is not imported |
| units | authored in cm or m — the importer converts scene units |
Exit codes: 0 usable, 1 rig mismatch, 2 unusable (wrong format, or not skinned).
[input] SK_AfroBoy01_G3_test.fbx 1313 KB
[input] PASS binary FBX
[input] PASS skinned, 26 crl_* bones
[input] PASS rig is GEN3 — ABP_GEN3 and every AS_*_G3 animation apply as-is
[input] WARN 2 texture reference(s) are paths from another machine ...
The texture line is a warning, never fatal: the import proceeds and the walker comes out flat white. Nothing downstream can invent textures the
Câu hỏi thường gặp
Việc nhập cần những chi tiết nào?
Giới tính, nhóm tuổi và thế hệ của mô hình, mà skill sẽ hỏi bạn.
Vì sao bộ xương phải khớp?
Bộ xương không khớp có thể nhập không báo lỗi nhưng không bao giờ cử động, nên việc kiểm tra được làm trước tiên.
Tôi có thể đặt tốc độ đi bộ không?
Có. Bạn có thể đặt tốc độ đi bộ, hoặc giữ tốc độ người lớn chuẩn.
Chi tiết
Mô tả gốc của tác giả
Imports an FBX pedestrian into a CARLA source build as a spawnable walker.pedestrian.NNNN — checks the FBX is skinned to CARLA's GEN3 rig, imports the mesh, physics asset and materials, builds the walker blueprint from a GEN3 donor, registers it in WalkerFactory through CARLA's own add_walker_to_walker_factory.py, and verifies it spawns, stands on the ground and walks. Use when the user asks to "add a pedestrian to CARLA", "import a walker/character FBX", or needs a custom human spawnable from the Python API.
repo: carla-simulator/carla
Độ phổ biến
- Sao GitHub
- 15k
- Vị trí xếp hạng
- #11125
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
create-leaderboard-route
15kGiúp agent của bạn tạo file tuyến đường CARLA Leaderboard bằng cách đặt các điểm waypoint và trigger kịch bản từ camera của simulator, rồi kiểm tra và sắp xếp chúng.
package-leaderboard-agent
15kGiúp agent của bạn đóng gói một agent lái xe thành image Docker để nộp lên CARLA Leaderboard, kiểm tra cấu trúc thư mục và thử rằng image nạp được agent.
read-leaderboard-results
15kGiúp agent của bạn đọc file kết quả CARLA Leaderboard, giải thích điểm và vi phạm của từng tuyến, và chấm lại một lần chạy theo phiên bản luật khác.
run-leaderboard-evaluation
15kGiúp agent của bạn chạy bộ đánh giá CARLA Leaderboard trên một tập tuyến với agent lái xe, kiểm tra thiết lập trước và lưu checkpoint để có thể tiếp tục.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.