Skip to content
Skillpedia
Deploy & cloud (DevOps)15k Β· #11126

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.md

Copy 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

Use this skill to help me: https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue4/package-carla-ue4/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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/… and references/… 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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills