package-carla-ue4
Fungsinya
Skill ini mengemas build CARLA menjadi arsip siap bagi, baik simulator lengkap maupun kumpulan aset yang dipilih. Untuk orang yang perlu mendistribusikan pengaturan CARLA mereka ke orang lain.
Kapan dipakai
- βSaat Anda ingin membuat satu salinan CARLA yang dikemas untuk dibagikan atau disimpan.
- βSaat Anda ingin mengekspor satu atau lebih peta kustom sebagai paket untuk diimpor orang lain.
- βSaat Anda perlu antarmuka ROS 2 native tetap ada dalam build yang dikemas.
Link skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue4/package-carla-ue4/SKILL.mdSalin 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
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBisakah Anda mengemas build CARLA saya menjadi arsip yang bisa dibagikan dan tetap menyertakan antarmuka ROS 2?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent menjalankan langkah cook yang menyiapkan simulator, lalu menyimpan hasilnya sebagai arsip terkompresi di folder Dist. Paket diberi nama dengan tag versi agar Anda bisa membedakan build.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Package CarlaUE4
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.
make package produces two different artifacts depending on --packages:
| Mode | Command | Output | Cook driven by |
|---|---|---|---|
| Release | bash scripts/package.sh |
Dist/CARLA_<tag>.tar.gz |
Config/DefaultGame.ini |
| Asset package | PACKAGES=<Name> bash scripts/package.sh |
Dist/<Name>_<tag>.tar.gz |
<Name>.Package.json |
Instructions
Copy this checklist and track progress β the run is long and gated, so a skipped step usually surfaces an hour in:
Package Progress:
- [ ] Step 1: Activate the client Python env, run check_env.sh, clear FAILs
- [ ] Step 2: Cook β 2a full release, or 2b a named asset package
- [ ] Step 3: Verify the artifact exists, is the right size, and is in Dist/
- [ ] (opt-in) Run or import the build β only if asked to run/load it
Step 1: Activate your Python env, then check prerequisites
The wheel stage runs python3 -m build, so have your CARLA client
environment active first β the one whose python3 imports build and
carla. Any manager works (venv, conda, system); the skill assumes none and
pins no version. If you drive this non-interactively, either activate the env
in the same shell, or point CARLA_ENV_ACTIVATE at its activate script β the
only hook the skill looks at. Only set CARLA_PY_VERSION if you
deliberately need a version-suffixed interpreter β and it must resolve inside
that env, or the wheel escapes to the wrong Python.
bash scripts/check_env.sh
Fix warnings about the wheel python and missing content before starting β both cost most of the build time before they surface.
Step 2a: Full release
bash scripts/package.sh 2>&1 | tee /tmp/carla_package.log
30-90 min cold, not resumable.
Step 2b: Standalone asset package
For distributing maps and props, or for a cheap sensor-capable build containing one town instead of thirteen.
A package is defined by a JSON found anywhere under Content/ β the package
name is the filename minus .Package.json. It needs no matching directory, so
stock maps can be exported as-is:
# define it (writes Content/Carla/Config/OneTown.Package.json)
python3 scripts/package_json.py OneTown --map Town02 --carla-materials
# cook it
PACKAGES=OneTown bash scripts/package.sh
Each map needs <MapName>.xodr under an OpenDrive/ directory somewhere in
Content/. package_json.py --check verifies this; a missing .xodr yields a
package that imports but has no road network.
Step 3: Verify
scripts/package.sh already checks the expected artifact by name, size and
location, and fails loudly if it is missing β make can exit 0 having produced
nothing. Confirm independently:
ls -la "${CARLA_UE4_ROOT:?}"/Dist/
A release is several GB; low megabytes means the cook ran without content.
This is where the skill stops by default. The deliverable is the verified
artifact in Dist/ (or in PACKAGE_DEST, below). Booting or importing it is a
separate, opt-in step β do it only when the request explicitly asks to run or
load the result.
Placing artifacts outside Dist/
Set PACKAGE_DEST to a directory to land the artifact elsewhere. It is applied
after verification: PACKAGE_DEST_MODE=move (the default) relocates the verified
artifact and leaves no multi-GB duplicate in Dist/; PACKAGE_DEST_MODE=copy
keeps Dist/ intact. So "package CARLA into <dir>" is a move, "package CARLA and
copy it to <dir>" is a copy.
# move the release into ~/dev/Carla/packages/ (nothing left in Dist/)
PACKAGE_DEST=~/dev/Carla/packages bash scripts/package.sh
# copy instead, keeping Dist/
PACKAGE_DEST=~/dev/Carla/packages PACKAGE_DEST_MODE=copy bash scripts/package.sh
ROS 2 packages (ROS2=1)
ROS2=1 bash scripts/package.sh # release WITH the native ROS 2 interface
Package.sh has no ROS 2 option β support is inherited from the editor
build. But make package depends on CarlaUE4Editor, so every cook re-runs
BuildCarlaUE4.sh, which rewrites Unreal/CarlaUE4/Config/OptionalModules.ini.
Cook without ROS2=1 and that rewrite says Ros2 OFF: the package loses ROS 2
even though the checkout was built with it, with nothing in the log to say so.
Pertanyaan umum
Apa bedanya rilis dan paket aset?
Rilis mengemas seluruh simulator, sedangkan paket aset hanya berisi peta dan properti yang dipilih.
Apakah cook biasa mempertahankan ROS 2?
Tidak. Cook biasa diam-diam membuang antarmuka ROS 2, sehingga harus dipertahankan secara sengaja.
Apakah perlu lingkungan Python aktif lebih dulu?
Ya. Langkah pengemasan membangun bagian Python, sehingga lingkungan Python CARLA Anda harus aktif.
Detail
Deskripsi asli dari pembuat
Cooks and packages CarlaUE4 into distributable tarballs under Dist/ β either the full simulator or a standalone asset package of selected maps and props for later import. ROS2=1 keeps the native ROS 2 interface in the cooked package (a plain cook silently drops it). Use when the user asks to "package CARLA", "make a Dist build", "cook the project", "export a map as a package", "package CARLA with ROS2", or needs a build with working camera and lidar sensors.
repo: carla-simulator/carla
Popularitas
- Bintang GitHub
- 15k
- Peringkat
- #11126
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
create-leaderboard-route
15kMembantu agent Anda membuat file rute CARLA Leaderboard dengan menempatkan waypoint dan pemicu skenario dari kamera simulator, lalu memeriksa dan mengurutkannya.
package-leaderboard-agent
15kMembantu agent Anda memaketkan agent mengemudi ke dalam image Docker untuk pengiriman CARLA Leaderboard, dengan memeriksa tata letak folder dan menguji bahwa image memuatnya.
read-leaderboard-results
15kMembantu agent Anda membaca file hasil CARLA Leaderboard, menjelaskan skor dan pelanggaran setiap rute, dan menilai ulang sebuah run dengan versi aturan lain.
run-leaderboard-evaluation
15kMembantu agent Anda menjalankan evaluator CARLA Leaderboard pada sekumpulan rute dengan agent mengemudi Anda, memeriksa pengaturan terlebih dahulu dan menyimpan checkpoint yang bisa dilanjutkan.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.