create-leaderboard-route
하는 일
스킬은 주행 에이전트를 평가하는 시뮬레이터 테스트인 CARLA Leaderboard의 주행 경로를 만들고 편집합니다. 평가용 맞춤 경로가 필요한 개발자를 위한 스킬입니다.
사용하는 경우
- ✓CARLA Leaderboard용 새 경로 파일을 만들고 싶을 때.
- ✓기존 경로에 시나리오 트리거 지점을 추가해야 할 때.
- ✓경로의 시나리오를 보고, 요약하고, 순서를 바꾸고 싶은 경우.
스킬 링크
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/leaderboard/create-leaderboard-route/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Town12에 리더보드 경로를 만들어 주세요. 주요 도로를 따라 웨이포인트를 두고, 교차로 근처에 시나리오를 넣어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 시뮬레이터에서 알맞은 타운을 불러오고, 카메라 화면에서 대화형 도구로 웨이포인트와 시나리오 트리거를 배치한 뒤, 경로를 표시하거나 요약해 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Create a leaderboard route
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.
A route is waypoints plus scenarios pinned to trigger points, in one XML file ([[run-route-scenario]] documents the format). Writing the coordinates by hand does not work in practice — Town12 is 10 km across and a trigger point a metre into the wrong lane silently never fires. So the leaderboard ships interactive tools that read positions off the spectator camera in a live simulator.
All of them live in $LEADERBOARD_ROOT/scripts/ and all need a running server with
the right town loaded.
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh)
- [ ] Step 2: Load the town the route will live in (load-map)
- [ ] Step 3: Place waypoints (create), then scenarios (scenarios)
- [ ] Step 4: Inspect: display in the simulator, summarise as a table
- [ ] Step 5: Order the scenarios, then run it (run-leaderboard-evaluation)
Step 2-3: Build it
source scripts/env.sh
# 1. load the town first — every tool works on the *currently loaded* map
python3 -c "import carla; carla.Client('127.0.0.1',2000).load_world('Town12')"
# 2. place the route waypoints by flying the spectator and clicking
bash scripts/route_tools.sh create --file ~/routes/my_routes.xml
# 3. add scenarios along it
bash scripts/route_tools.sh scenarios --file ~/routes/my_routes.xml
# 4. capture the current weather as a <weather> element
bash scripts/route_tools.sh weather --route 0
route_creator and scenario_creator are terminal + spectator loops: you move the
spectator in the CARLA window, and type commands in the terminal to record the
current position as a waypoint or a scenario trigger. --file accepts several
files (nargs="+") so it can append into an existing set.
scenario_creator -s/--show-only shows the route without editing, which is the safe
way to look before touching.
Step 4: Inspect
# draw an existing route in the simulator
bash scripts/route_tools.sh display --file ~/routes/my_routes.xml --route 0 --keypoints --scenarios
# a table of every route: length, towns, scenario histogram
bash scripts/route_tools.sh summary --file ~/routes/my_routes.xml
# offline structural check — no server needed
bash scripts/route_tools.sh check --file ~/routes/my_routes.xml
check is this skill's own addition and the one to run first: it validates the XML
against the 2.x schema shape, confirms every <scenario type> has a class in the
paired scenario_runner checkout, flags routes whose town is not installed, and
finds trigger points that are far from the route polyline — the failure that
otherwise shows up as "the scenario never triggers".
route_displayer flags: -sr/--show-route, -sa/--show-all,
-sk/--show-keypoints, -ss/--show-scenarios.
Step 5: Tidy and run
# sort the <scenarios> block by position along the route (cosmetic but makes review sane)
bash scripts/route_tools.sh order --file ~/routes/my_routes.xml
cd ../run-leaderboard-evaluation
ROUTES=~/routes/my_routes.xml TEAM_AGENT=.../npc_agent.py \
bash scripts/run_leaderboard.sh --routes-subset 0
Always validate a new route with npc_agent.py before using it to judge your own
agent: a route the NPC agent cannot complete is a broken route, not a hard one.
Converting 1.0 routes
bash scripts/route_tools.sh bridge --routes old_routes.xml \
--scenarios all_towns_traffic_scenarios_public.json --endpoint new_routes.xml
scripts/route_bridge.py merges a 1.0 geometry file and its separate scenario JSON
into a single 2.x route file. It exists on master only — it was removed from
the leaderboard-2.0 and 2.1 branches, so run it from a master checkout and use
the output elsewhere.
Examples
Example 1: "make a short route in Town12 to test one scenario"
Load Town12, create two or three waypoints along one road, scenarios to drop a
single Accident trigger, check, then run with the NPC agent. Faster to iterate
on than any of the shipped 90-route files.
Example 2: "why doesn't my scenario trigger?"
check first — it reports trigger points off the route polyline and scenario types
with no class. If both are clean, display --scenarios and watch where the ego
passes relative to t
자주 묻는 질문
좌표를 손으로 쓰지 않는 이유는?
손으로 쓴 위치는 차선을 자주 벗어나, 시나리오 트리거가 소리 없이 한 번도 실행되지 않을 수 있기 때문입니다.
시뮬레이터가 실행 중이어야 하나요?
네. 도구는 실행 중인 서버에 현재 로드된 맵에서 작동합니다.
실행 전에 경로를 확인할 수 있나요?
네. 스킬은 경로를 시뮬레이터에 그리거나 표로 요약할 수 있습니다.
상세 정보
작성자의 원본 설명
Creates and edits CARLA Leaderboard route files — placing waypoints and scenario trigger points interactively from the spectator camera (route_creator, scenario_creator), visualising an existing route in the simulator (route_displayer), summarising it as a table (route_summarizer), capturing the current weather in route format (weather_creator), sorting scenarios by route position (scenario_orderer) and converting 1.0-format routes to 2.x (route_bridge). Use when the user asks to "make a new route", "add a scenario to a route", "visualise/debug a route", "see what's in this route file", or "co
repo: carla-simulator/carla
인기도
- GitHub 스타
- 15k
- 순위
- #11079
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
package-leaderboard-agent
15k주행 에이전트를 CARLA Leaderboard 제출용 Docker 이미지로 패키징하고, 폴더 구조를 확인하며 이미지가 에이전트를 로드하는지 테스트하도록 돕습니다.
read-leaderboard-results
15kCARLA Leaderboard 결과 파일을 읽고 경로별 점수와 위반 사항을 설명하며, 다른 규칙 버전에서 실행을 다시 채점하도록 에이전트를 돕습니다.
run-leaderboard-evaluation
15k주행 에이전트로 경로 세트에 대한 CARLA Leaderboard 평가를 실행하도록 돕습니다. 먼저 설정을 확인하고, 재개할 수 있는 체크포인트를 저장합니다.
write-leaderboard-agent
15k올바른 클래스, 트랙 제한 안의 센서 구성, 작동하는 시작 파일을 갖춘 CARLA Leaderboard용 주행 에이전트를 작성하도록 에이전트를 돕습니다.