import-carla-ue58-prop
ما الذي تفعله
تستورد هذه المهارة شبكات ثلاثية الأبعاد إلى محاكي CARLA على Unreal Engine 5.8 كعناصر ديكور، وهي أشياء مثل المقاعد واللافتات. وهي مخصصة لمن يضيف عناصر خاصة إلى شوارع المحاكاة في الإصدار الأحدث.
متى تستخدمها
- ✓عندما يكون لديك نموذج ثلاثي الأبعاد لجسم في الشارع وتريده في بناء CARLA الأحدث.
- ✓عندما لا يظهر عنصر الديكور الجديد في المحاكي وتحتاج إلى إعادة التشغيل والتحقق.
- ✓عندما تريد ضبط حجم عنصر الديكور من مقاييسه الحقيقية بدلًا من التخمين.
رابط المهارة
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue58/import-carla-ue58-prop/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هل يمكنك استيراد نموذج المقعد الثلاثي الأبعاد الخاص بي إلى CARLA على Unreal 5.8، والتحقق من ظهوره كعنصر ديكور؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يستورد الوكيل الشبكة إلى المحرر دون فتح نافذته، ويقيس حجمها، ويضيفها إلى قائمة عناصر الديكور. ثم تعيد تشغيل الخادم حتى يمكن استخدام العنصر والتحقق منه.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Import a prop 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.
Three steps, and the middle one is where UE4 recipes break:
FBX --(editor, headless)--> StaticMesh in Content
--(PropParameters.json)--> static.prop.<name> in the blueprint library
--(PropActorFactory)--> spawnable actor
Registration moved. On UE4 a prop is declared in a *.Package.json that
UCarlaBlueprintRegistry::LoadPropDefinitions scans for. On ue58 that function
has zero callers — it is dead code. Props are loaded by APropActorFactory
from Content/Carla/Config/PropParameters.json (key "Props", fields
Name/Mesh/Size). Writing a .Package.json changes nothing: verified by
doing it and watching the prop count stay at 83.
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh)
- [ ] Step 2: plan — see where the asset lands and what it will be called
- [ ] Step 3: import — get the scale right on the first go if you can
- [ ] Step 4: RESTART the server or editor, then verify
Step 2-3: Plan, then import
source scripts/env.sh
python3 scripts/import_prop.py plan ~/meshes/Bench.fbx
python3 scripts/import_prop.py import ~/meshes/Bench.fbx --tag Static
A directory works too, and a level of subdirectory is read as the tag — the same shape as the destination:
~/meshes/
├── Static/Bench.fbx -> /Game/Carla/Static/Static/Bench
└── Building/Kiosk.fbx -> /Game/Carla/Static/Building/Kiosk
| Flag | Effect |
|---|---|
--tag |
subfolder under the destination root (default Static) |
--scale |
import_uniform_scale; see below |
--size |
override the derived Tiny/Small/Medium/Big |
--dest-root |
default /Game/Carla/Static — keep it under /Game/Carla |
--no-register |
import the mesh without touching the registry |
--no-combine / --no-collision |
disable mesh combining / auto collision |
--verbose |
stream the editor log |
Get the scale right
FBX unit metadata is frequently absent or wrong, and nothing warns you. A door
from CARLA's own HoudiniEngine/Pieces imported at --scale 1.0 measured
0.43 × 250 × 400 m — a 400-metre door, spawnable and towering over the town.
At --scale 0.01 the same file measured 0.43 × 2.5 × 4.0 m and classified as
Medium.
import prints the measured dimensions and warns when the longest side exceeds
30 m, which is the practical "this is building-scale" threshold. Re-import with the
right factor; replace_existing is on, so it overwrites cleanly.
Size, when not overridden, comes from the measured longest dimension:
<=0.5 m Tiny, <=2 m Small, <=8 m Medium, else Big.
Keep the destination under /Game/Carla
An asset elsewhere in Content/ imports fine and works in the editor, but a
packaged server resolves content only under /Game/Carla/... — the same
single-fallback limitation that stops nested large maps loading from a package
([[run-carla-ue58-server]]). list flags any registered prop whose mesh sits
outside /Game/Carla.
Step 4: Restart, then verify
Prop definitions are read once at startup. A prop registered while a server is running will not appear until you restart it.
cd ../run-carla-ue58-server && bash scripts/run_server.sh stop
DETACH=1 bash scripts/run_server.sh game
cd ../import-carla-ue58-prop
python3 scripts/import_prop.py verify --name Bench --spawn
python3 scripts/import_prop.py list
verify checks the registry entry, that the .uasset is on disk, that the
blueprint is in the library with the right mesh_path, and — with --spawn —
spawns it, reports its bounding box and destroys it.
Undo
python3 scripts/import_prop.py revert --name Bench # dry run
python3 scripts/import_prop.py revert --name Bench --yes
Unregisters and deletes the asset directory. import and revert both back
PropParameters.json up to PropParameters.json.bak first.
Examples
Example 1: "add this bench mesh so I can spawn it"
plan, then import ~/bench.fbx. If the printed dimensions look wrong, re-import
with --scale. Restart the server, verify --spawn. The blueprint is
static.prop.bench.
**Example 2: "I imported a prop but it's not in the blueprint li
الأسئلة الشائعة
لماذا أحتاج إلى إعادة التشغيل؟
تُقرأ قائمة عناصر الديكور عند بدء المحاكي، لذلك لا يظهر العنصر الجديد إلا بعد إعادة التشغيل.
هل تصحح المهارة حجم نموذجي؟
تشتق الحجم من الأبعاد المقاسة، وهذا يساعد في مشكلات وحدات القياس في ملفات ثلاثية الأبعاد.
هل يمكنها التراجع عن الاستيراد؟
نعم. تستطيع المهارة التراجع عن الاستيراد بشكل نظيف.
التفاصيل
الوصف الأصلي من المؤلف
Imports FBX meshes into CARLA on UE 5.8 as spawnable props — drives the editor headlessly to import the mesh, derives the prop size from its measured bounds, and registers it in PropParameters.json so it appears in the blueprint library as static.prop.<name>. Handles the FBX unit-scale problem, verifies the result against a running server, and can revert cleanly. Use when the user asks to "import a prop", "add a custom mesh/object to CARLA", "make my model spawnable", or a prop imports but never shows up in the blueprint library.
repo: carla-simulator/carla
الشعبية
- نجوم GitHub
- 15k
- الترتيب
- #11132
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
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 على مجموعة مسارات مع وكيل قيادتك، بفحص الإعداد أولًا وحفظ نقاط يمكن استئناف التشغيل منها.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.