import-carla-map
यह क्या करती है
यह स्किल RoadRunner में बनाए रोड मैप को CARLA सिमुलेटर के अंदर चलने वाले मैप में बदलती है। यह उन लोगों के लिए है जो अपने ड्राइविंग टेस्ट के लिए कस्टम शहर या रोड लेआउट बनाते हैं।
कब इस्तेमाल करें
- ✓जब आपके पास रोड मैप का RoadRunner एक्सपोर्ट है और उसे CARLA में इस्तेमाल करना है।
- ✓जब आपका मैप बहुत बड़ा है और टाइल्स में बँटा है, जिन्हें हिस्सों में इम्पोर्ट करना होगा।
- ✓जब आप चल रहे सर्वर पर जाँचना चाहते हैं कि इम्पोर्ट किया गया मैप सही लोड होता है।
Skill का लिंक
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/ue4/import-carla-map/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप मेरे फ़ोल्डर से मेरा RoadRunner मैप CARLA में इम्पोर्ट कर सकते हैं, और जाँच सकते हैं कि मैं उस पर ड्राइव कर सकता हूँ?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट आपके बताए फ़ोल्डर से मेश और रोड फ़ाइलें पढ़ता है, फिर CARLA का इम्पोर्ट टूल चलाकर मैप को उसके ट्रैफ़िक रूट और चलने के इलाकों के साथ बनाता है। मूल फ़ाइलें बदली नहीं जातीं, केवल उनकी कॉपी इम्पोर्ट के लिए बनाई जाती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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/<
अक्सर पूछे जाने वाले सवाल
मेरी मैप फ़ाइलें कहाँ होनी चाहिए?
आपके बताए फ़ोल्डर में, जैसे उस फ़ोल्डर में जिसमें मेश और रोड विवरण फ़ाइलें हैं।
क्या मेरी मूल फ़ाइलें बदल जाएँगी?
नहीं। स्किल उन्हें केवल पढ़ती है और इम्पोर्ट के लिए कॉपी करती है, फिर वे कॉपी हटा देती है।
क्या बड़े मैप के लिए चलने के इलाके जोड़े जाते हैं?
नहीं। बहुत बड़े टाइल वाले मैप को चलने का इलाका नहीं मिलता, जो CARLA के बड़े मैप संभालने के तरीके से मेल खाता है।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 15k
- रैंकिंग में स्थान
- #11122
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
create-leaderboard-route
15kयह आपके एजेंट को CARLA Leaderboard की रूट फ़ाइल बनाने में मदद करती है, जिसमें वेपॉइंट और सीन ट्रिगर कैमरे से लगाए जाते हैं।
package-leaderboard-agent
15kयह आपके एजेंट को CARLA Leaderboard के लिए Docker इमेज बनाने में मदद करती है, और जाँचती है कि इमेज में एजेंट सही लोड होता है।
read-leaderboard-results
15kयह आपके एजेंट को CARLA Leaderboard की नतीजा फ़ाइल पढ़कर हर रूट का स्कोर समझाने और दूसरे नियम संस्करण में फिर से स्कोर करने में मदद करती है।
run-leaderboard-evaluation
15kयह आपके एजेंट को रूट के सेट पर CARLA Leaderboard मूल्यांकन चलाने में मदद करती है, शुरू करने से पहले सेटअप जाँचकर और चेकपॉइंट सेव करके।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।