package-carla-ue4
Was er macht
Dieser Skill packt einen CARLA-Build in fertige Archivdateien, entweder den vollständigen Simulator oder eine ausgewählte Menge an Assets. Er richtet sich an Menschen, die ihr CARLA-Setup an andere verteilen müssen.
Wann du ihn nutzt
- ✓Wenn du eine einzelne gepackte Kopie von CARLA zum Teilen oder Ablegen erstellen willst.
- ✓Wenn du eine oder mehrere eigene Karten als Paket exportieren willst, damit jemand anderes sie importieren kann.
- ✓Wenn die native ROS-2-Schnittstelle im gepackten Build erhalten bleiben muss.
Link zum Skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue4/package-carla-ue4/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Kannst du meinen CARLA-Build in ein weitergebbares Archiv packen und die ROS-2-Schnittstelle darin behalten?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent führt den Cook-Schritt aus, der den Simulator vorbereitet, und speichert das Ergebnis als komprimiertes Archiv im Ordner Dist. Das Paket trägt die Versionsangabe im Namen, damit du Builds unterscheiden kannst.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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.
Häufige Fragen
Was ist der Unterschied zwischen einem Release und einem Asset-Paket?
Ein Release packt den ganzen Simulator. Ein Asset-Paket enthält nur die gewählten Karten und Requisiten.
Behält ein normaler Cook ROS 2 bei?
Nein. Ein einfacher Cook lässt die ROS-2-Schnittstelle stillschweigend weg, deshalb muss sie bewusst erhalten werden.
Muss meine Python-Umgebung vorher aktiv sein?
Ja. Der Packschritt baut die Python-Teile, daher muss deine CARLA-Python-Umgebung aktiv sein.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 15k
- Platz im Ranking
- #11126
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
create-leaderboard-route
15kHilft deinem Agenten, Routendateien für das CARLA Leaderboard zu erstellen, indem er Wegpunkte und Szenarien aus der Simulatorkamera setzt und prüft.
package-leaderboard-agent
15kHilft deinem Agenten, einen Fahragenten für die CARLA-Leaderboard-Einreichung in ein Docker-Image zu packen und zu prüfen, ob es ihn lädt.
read-leaderboard-results
15kHilft deinem Agenten, eine Ergebnisdatei des CARLA Leaderboards zu lesen, Punkte und Verstöße je Route zu erklären und Läufe neu zu bewerten.
run-leaderboard-evaluation
15kHilft deinem Agenten, die CARLA-Leaderboard-Bewertung auf vielen Routen auszuführen, mit vorheriger Prüfung und Checkpoints zum Fortsetzen.
Ähnliche Skills
openclaw-update
394kHilft deinem Agenten, ein bestehendes OpenClaw-Gateway zu aktualisieren, mit der Methode, die zu deiner Installation passt, während deine Sitzung weiterläuft.
diagnose-gateway
394kHilft deinem Agenten herauszufinden, warum dein OpenClaw-Gateway fehlschlägt, indem er Einstellungen, Kanäle und Ports prüft, ohne etwas zu ändern.
crabbox-apps
394kHilft deinem Agenten, eine App auf einer temporären Cloud-Maschine zu öffnen und auszuführen und ihre Ansicht in deinem Chat-Seitenpanel zu zeigen.