package-carla-ue4
What it does
This skill packs a CARLA build into ready-to-share archive files, either the full simulator or a selected set of assets. It is for people who need to distribute their CARLA setup to others.
When to use it
- βWhen you want to create a single packaged copy of CARLA to share or store.
- βWhen you want to export one or more custom maps as a package for someone else to import.
- βWhen you need the native ROS 2 interface kept in the packaged build.
Skill link
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue4/package-carla-ue4/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCan you package my CARLA build into a shareable archive and keep the ROS 2 interface in it?β
5 new skills a week. 1 minute to read.
How it works
The agent runs the cooking step that prepares the simulator, then saves the result as a compressed archive in the Dist folder. The package is named with the version tag so you can tell builds apart.
Technical content (original SKILL.md)
Original text by the author, straight from 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.
FAQ
What is the difference between a release and an asset package?
A release packages the whole simulator, while an asset package holds only the chosen maps and props.
Does a normal cook keep ROS 2?
No. A plain cook silently drops the ROS 2 interface, so it has to be kept on purpose.
Do I need my Python setup active first?
Yes. The packaging step builds the Python parts, so your CARLA Python environment must be active.
Details
Original description by the author
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
Popularity
- GitHub stars
- 15k
- Ranking position
- #11126
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
create-leaderboard-route
15kHelps your agent build CARLA Leaderboard route files by placing waypoints and scenario triggers from the simulator camera, then checking and ordering them.
package-leaderboard-agent
15kHelps your agent package a driving agent into a Docker image for CARLA Leaderboard submission, checking the folder layout and testing that the image loads it.
read-leaderboard-results
15kHelps your agent read a CARLA Leaderboard results file, explain each route's score and infractions, and rescore a run under the other rule version.
run-leaderboard-evaluation
15kHelps your agent run the CARLA Leaderboard evaluator on a set of routes with your driving agent, checking the setup first and saving checkpoints you can resume.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.