import-carla-map
Fungsinya
Skill ini mengubah peta jalan yang Anda buat di RoadRunner menjadi peta yang berjalan di dalam simulator CARLA. Untuk orang yang membangun kota atau tata letak jalan kustom untuk tes mengemudi mereka.
Kapan dipakai
- βSaat Anda punya ekspor RoadRunner dari peta jalan dan ingin menggunakannya di CARLA.
- βSaat peta Anda sangat besar dan terbagi menjadi ubin yang perlu diimpor sebagian demi sebagian.
- βSaat Anda ingin memastikan peta yang diimpor dimuat dengan benar di server yang berjalan.
Link skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue4/import-carla-map/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 mengimpor peta RoadRunner saya dari folder saya ke CARLA dan memastikan saya bisa mengemudi di atasnya?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent membaca file mesh dan jalan dari folder yang Anda sebutkan, lalu menjalankan alat impor CARLA untuk membangun peta dengan rute lalu lintas dan area pejalan kakinya. File asli disalin, bukan diubah.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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/<
Pertanyaan umum
Di mana file peta saya harus berada?
Di folder yang Anda sebutkan, seperti folder dengan file mesh dan deskripsi jalan.
Apakah file asli saya akan berubah?
Tidak. Skill hanya membacanya dan menyalinnya untuk impor, lalu menghapus salinan itu.
Apakah area pejalan kaki ditambahkan untuk peta besar?
Tidak. Peta ubin yang sangat besar tidak mendapat area pejalan kaki, sesuai penanganan CARLA sendiri untuk peta besar.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 15k
- Peringkat
- #11122
- 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
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.