load-map
하는 일
이 스킬은 시뮬레이터가 실행 중인 지도를 바꿉니다. 다른 도시나 도로망에서 테스트하려는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓시뮬레이터를 다른 도시나 지도로 바꾸고 싶을 때.
- ✓현재 월드를 다시 불러오고 싶을 때.
- ✓OpenDRIVE 도로 파일을 불러오거나 지도 레이어를 켜고 끄고 싶을 때.
스킬 링크
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/load-map/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“실행 중인 서버에 Town10을 불러오고, 동기 설정은 그대로 유지해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 지도를 나열하거나 이름을 지정한 뒤 Python API로 불러오고, 지도 이름과 설정을 다시 읽어 확인합니다. 설정 유지 옵션은 현재의 동기 및 렌더링 설정을 새 월드로 옮깁니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Load a CARLA map
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.
Change what map a running server hosts, from a client. The deliverable is a verified world: after any load the map name and the sync/rendering settings are read back, because a load can quietly land on a different map or reset settings.
The one decision that governs every load: reset settings, or keep them?
reset_settings=True (the API default) drops the new world to async/default
rendering; reset_settings=False carries your current synchronous_mode,
fixed_delta_seconds, and no_rendering_mode across. In this skill that is the
--keep flag. Full semantics: references/map-loading.md.
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: List maps if the target name is unknown
- [ ] Step 3: Do the operation (load / reload / opendrive / layer), keep-settings if a sync pipeline is live
- [ ] Step 4: Verify the printed map name + settings match what was asked
All commands need CARLA_HOST/CARLA_PORT from scripts/env.sh (defaults
127.0.0.1:2000). Prefix any command with source scripts/env.sh or export them.
Step 1: Check prerequisites
bash scripts/check_env.sh
FAILs only on a missing carla module or an unreachable server — both are hard
blockers for a client operation. Start a server first if it FAILs (no server is
launched by this skill).
Step 2: List available maps
source scripts/env.sh
python3 scripts/load_map.py list
Names are returned stripped of the /Game/Carla/Maps/ prefix, so Town03,
Town10HD_Opt, etc. — pass those straight to load.
Friendly names resolve, but not uniformly — load maps a bare town name to
the map actually used: Town2 → Town02 (non-opt, like every numbered town
except one), but Town10 → Town10HD_Opt (Town10's canonical map is the
layered HD one; plain Town10HD exists but is effectively unused). An explicit
exact name (Town02_Opt, Town10HD) is always honoured as typed; load prints
what it resolved to.
Step 3: Do the operation
# load a map, resetting settings to default (the plain case)
python3 scripts/load_map.py load --map Town03
# load a map but KEEP current settings — use inside a sync-mode pipeline
python3 scripts/load_map.py load --map Town03 --keep
# reload the current map (fresh actors), reset vs keep settings
python3 scripts/load_map.py reload
python3 scripts/load_map.py reload --keep
# build a world from an OpenDRIVE file (road network only, no props)
python3 scripts/load_map.py opendrive --xodr /path/to/road.xodr
# build a world from an OpenStreetMap export (.osm -> xodr -> world)
python3 scripts/load_map.py osm --osm /path/to/city.osm
# stream layers in/out on a layered ('_Opt') map already loaded
python3 scripts/load_map.py load --map Town10HD_Opt --layers Ground,Buildings
python3 scripts/load_map.py layer --load Foliage,ParkedVehicles
python3 scripts/load_map.py layer --unload ParkedVehicles
Low freedom on the two fragile points — --keep when a sync pipeline is live,
and layers only on _Opt/large maps; otherwise choose maps/params freely.
Step 4: Verify
Every mutating command prints a VERIFY block (map name + synchronous_mode,
fixed_delta_seconds, no_rendering_mode). Do not trust that a call
returned — confirm the block: the map name is the one you asked for, and the
settings are default (plain) or unchanged (--keep). An OpenDRIVE world reports
its name as Carla/Maps/OpenDriveMap.
On a ROS 2 server
A map switch is an episode switch, so on a server started with --ros2
([[run-carla-server]] ROS2=1):
rt/carla/mapre-publishes automatically — the new map's full OpenDRIVE, as a latched (transient_local)std_msgs/String. Verified: the sample content changes with the map. It carries no header, so there is no stamp or episode id to correlate with; reading it needs an explicit--qos-durability transient_localrequest (plus--full-length, or it truncates at 128 chars).- Every actor is destroyed — but its topics do NOT go away. Verified: after a
switch the old sensor topic is still listed with
Publisher count: 1and publishes nothing, because
자주 묻는 질문
설정 유지는 무슨 뜻인가요?
현재의 동기 모드, 시간 간격, 렌더링 모드를 초기화하지 않고 새 지도에 그대로 적용한다는 뜻입니다.
지도가 실제로 바뀌었는지 확인하나요?
네. 지도를 불러올 때마다 지도 이름과 설정을 다시 읽어 확인합니다.
직접 만든 도로 파일도 불러올 수 있나요?
네. OpenDRIVE .xodr 파일로 월드를 생성할 수 있습니다.
상세 정보
작성자의 원본 설명
Loads, reloads, and reshapes the map on a running CARLA server via the Python API — get_available_maps, load_world and reload_world (with or without resetting world settings), generate a world from an OpenDRIVE .xodr, and load/unload map layers. Use when the user asks to "load a map", "change the town", "reload the world", "list available maps", "load an xodr/opendrive map", or "load/unload map layers", and when settings (sync mode, fixed delta) must survive the switch.
repo: carla-simulator/carla
인기도
- GitHub 스타
- 15k
- 순위
- #11093
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
create-leaderboard-route
15k카메라 화면에서 웨이포인트와 시나리오 트리거를 배치하고, 확인하고, 순서를 정해 CARLA 리더보드 경로 파일을 만들도록 에이전트를 돕습니다.
package-leaderboard-agent
15k주행 에이전트를 CARLA Leaderboard 제출용 Docker 이미지로 패키징하고, 폴더 구조를 확인하며 이미지가 에이전트를 로드하는지 테스트하도록 돕습니다.
read-leaderboard-results
15kCARLA Leaderboard 결과 파일을 읽고 경로별 점수와 위반 사항을 설명하며, 다른 규칙 버전에서 실행을 다시 채점하도록 에이전트를 돕습니다.
run-leaderboard-evaluation
15k주행 에이전트로 경로 세트에 대한 CARLA Leaderboard 평가를 실행하도록 돕습니다. 먼저 설정을 확인하고, 재개할 수 있는 체크포인트를 저장합니다.