import-carla-map
Was er macht
Dieser Skill macht aus einer in RoadRunner erstellten Straßenkarte eine Karte, die im CARLA-Simulator läuft. Er richtet sich an Menschen, die eigene Städte oder Straßenlayouts für ihre Fahrtests bauen.
Wann du ihn nutzt
- ✓Wenn du einen RoadRunner-Export einer Straßenkarte hast und sie in CARLA nutzen willst.
- ✓Wenn deine Karte sehr groß ist und in Kacheln aufgeteilt werden muss, die einzeln importiert werden.
- ✓Wenn du prüfen willst, dass die importierte Karte auf einem laufenden Server richtig lädt.
Link zum Skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue4/import-carla-map/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 meine RoadRunner-Karte aus meinem Ordner in CARLA importieren und prüfen, ob ich darauf fahren kann?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent liest die Mesh- und Straßendateien aus dem Ordner, den du angibst, und startet dann das Importwerkzeug von CARLA. Es baut die Karte mit Verkehrsrouten und Gehbereichen. Die Originaldateien werden kopiert, nicht verändert.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Import a map into CARLA
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.
Turn a RoadRunner export — an .fbx mesh plus its .xodr OpenDRIVE — into a
CARLA map you can load and drive on. The map's directory comes from the
request — Import/Maps, ~/dev/Maps/MyTown, a mounted share, anywhere. Ask
for it if the request doesn't say; never guess a location. Your files are only
read, never modified in place (Import.py copies them into
Util/DockerUtils/dist/ for the navmesh stage and deletes the copies again).
# standard map: MyTown.fbx + MyTown.xodr in the directory the user named
python3 scripts/import_map.py <map-dir> --package MyTown
# large map: MyTown_Tile_0_0.fbx … + MyTown.xodr, imported in memory-bounded batches
python3 scripts/import_map.py <map-dir> --package BigCity --tile-size 1000 --batch-size 200
Both go through the same Import.py pipeline; the large-map path is just a
branch on the tile naming. The map lands at
/Game/<package>/Maps/<name>/<name>, cooked with its Traffic Manager route
graph and — for standard maps only — its pedestrian navmesh (Step 4).
Pipeline internals, naming rules, the tiled branch and the M-lessons:
references/maps.md.
Instructions
Map Import Progress:
- [ ] Step 1: Check prerequisites — hand off to build-carla-ue4 on a build/carla FAIL
- [ ] Step 2: Import (one command: runs Import.py over the map's directory, verifies artifacts)
- [ ] Step 3: Verify it loads and drives on a running server
- [ ] Step 4: (standard maps + walkers only) build and inspect the pedestrian navmesh
- [ ] (opt-in) Cook it into a distributable package
Step 1: Check prerequisites
bash scripts/check_env.sh <map-dir> # map-dir optional: also checks the .fbx/.xodr pair
Blocks only on hard failures: a runnable editor for this project (UE4_ROOT, the
checkout, CarlaUE4Editor) and a python that imports carla — map import
runs carla.Map() in-process, so a missing wheel aborts Import.py on its first
line (M4). On a build FAIL, stop and run [[build-carla-ue4]] against that
checkout.
Read the WARN lines too. Two matter before you import anything: Content -> … (shared with other checkouts) means the map lands in a content clone every
worktree sees, and leftover geometry in Util/DockerUtils/dist from an
interrupted run can feed the next navmesh build stale data.
Run it with the map directory as above. The MCP check_prerequisites tool takes
no argument, so through that path you get the environment checks only — the
.fbx/.xodr pair is then first checked by import_map.py itself.
The carla wheel must be importable by the python3 that runs Step 2 — unlike
prop import, that is a hard requirement here, not a verify-only one. You bring the
env; the skill never creates one:
- Activate it in the same shell before Step 2 (venv/conda/pyenv/system — no manager is assumed).
- Non-interactive? Point
CARLA_ENV_ACTIVATEat its activate script — an optional hookscripts/env.shsources, used by bothcheck_env.shandimport_map.py. Nothing else is detected. check_env.shprints the interpreter it resolved (client python: … (imports carla)); that line is the one to trust, not which env you think is active.
A missing FBX2OBJ is a warning, and only for a standard map: it imports and
drives, but gets no pedestrian navmesh. Do Step 4 first if that map needs
walkers, so the import builds the navmesh in one pass.
Step 2: Import
python3 scripts/import_map.py <map-dir> --package <PackageName>
<map-dir> is the directory the user named (or the .xodr/.fbx in it). The
script enforces the one rule that breaks silently otherwise — the .fbx and
.xodr must share the same name root (M1) — detects standard vs. tiled, runs
Import.py against that directory, then confirms the cooked artifacts by path and
size.
This imports into the source build you are running against: the map lands in
the Content tree and loads in the editor or on an uncooked server straight away.
Cooking a distributable package (a Dist/ tarball) is the separate opt-in step
at the end.
Always pass --package. It names the content package — the folder under
Content/ that holds the map and the `Config/<
Häufige Fragen
Wo sollen meine Kartendateien liegen?
In einem Ordner, den du angibst, etwa dem Ordner mit den Mesh- und Straßenbeschreibungsdateien.
Werden meine Originaldateien verändert?
Nein. Der Skill liest sie nur, kopiert sie für den Import und entfernt die Kopien danach.
Werden bei großen Karten Gehbereiche hinzugefügt?
Nein. Sehr große Kacheln bekommen keinen Gehbereich. Das entspricht dem Umgang von CARLA mit großen Karten.
Details
Originalbeschreibung des Autors
Imports a custom RoadRunner map (FBX geometry + XODR OpenDRIVE) into a CARLA source build as a drivable map — reads the map from the directory the user names, runs CARLA's Import.py to cook the level, Traffic Manager graph and (standard maps only) pedestrian navmesh, and verifies it loads on a server. Handles both standard maps and large tiled maps; large maps get no navmesh, matching upstream CARLA. Use when the user asks to "import a map into CARLA", "add a custom/RoadRunner map", "ingest an FBX+XODR map", "make import", bring in a "large/tiled map", or fix missing walkers / a missing pedest
repo: carla-simulator/carla
Beliebtheit
- GitHub-Sterne
- 15k
- Platz im Ranking
- #11122
- 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
diffs
394kLässt deinen Agenten einen echten, teilbaren Diff seiner Änderungen als Viewer-Link oder Bilddatei erstellen, statt einer handgeschriebenen Zusammenfassung.
coding-agent
394kHilft deinem Agenten, eine größere Programmieraufgabe als Hintergrund-Worker an Codex, Claude Code oder OpenCode zu übergeben und danach den Fortschritt zu prüfen.
gh-issues
394kHilft deinem Agenten, GitHub-Issues zu finden, die zu bearbeitenden auszuwählen und Pull Requests mit Korrekturen zu öffnen, einschließlich der Nacharbeit an Review-Kommentaren.