run-scenic-scenario
하는 일
이 스킬은 표준 carlaChallenge 세트를 포함한 Scenic 교통 시나리오를 CARLA 시뮬레이터에서 실행합니다. 다양한 교통 상황에서 자율주행 소프트웨어를 테스트하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓Scenic 파일이 있고 CARLA 시뮬레이터에서 실행하고 싶을 때.
- ✓Scenic 시나리오가 실패해서 원인이 지도인지 파일인지 알아야 할 때.
- ✓표준 carlaChallenge 교통 테스트 중 하나를 실행하고 싶을 때.
스킬 링크
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/scenic/run-scenic-scenario/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“내 Scenic 교통 파일을 CARLA에서 실행하고, 실패한다면 지도 때문인지 파일 자체 때문인지 알려 줄 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 먼저 시뮬레이터 없이 장면을 직접 생성해 파일이나 지도 문제를 찾습니다. 그것이 작동하면 CARLA에서 장면을 실행한 뒤, 시뮬레이터의 설정을 복원합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Run a Scenic scenario
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 Scenic scenario is a .scenic file describing a distribution over scenes.
Running it has two distinct phases, and almost every confusing failure comes from
not knowing which one broke:
- sample — Scenic reads the map's OpenDrive, then rejection-samples until a
scene satisfies every
require. No simulator involved. - simulate — the sampled scene is spawned in CARLA and behaviours tick.
A scenario that cannot sample will never reach CARLA, so a server-side explanation for it is always wrong. scripts/sample_scenic.py separates the two in about a second per file.
Three things decide whether a run works:
- the model —
srunner.scenic.models.modelneedsSCENARIO_RUNNER_ROOTonPYTHONPATH;scenic.simulators.carla.modelships in the wheel. - the map — scenarios filter road features (
is4Way and not isSignalized). A filter that matches nothing is an empty domain, not a bug. - the client version — Scenic's blueprint table is keyed on it, so a client/server mismatch silently offers ids the server does not have.
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: Inventory what is runnable, and on which map
- [ ] Step 3: Sample headlessly to separate map problems from syntax problems
- [ ] Step 4: Run it bounded, with --simulate --2d
- [ ] Step 5: Confirm a simulation actually terminated; leave the world async
Step 1-2: What can I run
source scripts/env.sh
bash scripts/check_env.sh
python3 scripts/list_scenic.py # every scenario, its model, its map
python3 scripts/list_scenic.py --check-maps # + each road network's features
python3 scripts/list_scenic.py --map Town05 # only scenarios for one map
list_scenic.py parses the headers as text, so it needs neither Scenic nor a
server and cannot be broken by a failing model import.
Step 3: Sample before you simulate
python3 scripts/sample_scenic.py "$SCENARIO_RUNNER_ROOT"/srunner/scenic/carlaChallenge*.scenic
Verdicts map to causes with no overlap:
| Verdict | Meaning | Where to look |
|---|---|---|
PASS |
scene constructible; only runtime issues remain | go to Step 4 |
COMPILE-FAIL |
syntax, model import, missing .xodr, or an empty blueprint category |
check_env.sh, PYTHONPATH |
SAMPLE-FAIL |
requires unsatisfiable on this map |
--check-maps |
Step 4: Run
Always bound the run. --count and --time default to infinity, so a bare
scenic --simulate never returns.
source scripts/env.sh
# the canonical smoke test
bash scripts/run_scenic.sh carlaChallenge1
# reproducible: one simulation, fixed seed, 300 steps
COUNT=1 TIME=300 SEED=7 bash scripts/run_scenic.sh carlaChallenge7
# retarget a scenario at another map (both params, or the .xodr and the server disagree)
PARAMS="carla_map Town05" PARAMS2="map $SCENARIO_RUNNER_ROOT/srunner/scenic/assets/Town05.xodr" \
bash scripts/run_scenic.sh carlaChallenge10
Or call the CLI directly — the wrapper only adds resolution, bounding, logging, artifact confirmation and the async reset:
scenic "$SCENARIO_RUNNER_ROOT/srunner/scenic/carlaChallenge1.scenic" --simulate --2d --count 1 --time 300
| Var | Effect |
|---|---|
COUNT |
simulations to run, default 1; empty means unbounded |
TIME |
step bound per simulation, default 300; empty means unbounded |
SEED |
fixes the sampled scene, so a run is reproducible |
MODE2D=0 |
drop --2d; 3D mode needs meshes the CARLA model does not define |
PARAMS/PARAMS2/PARAMS3 |
--param pairs, e.g. PARAMS="carla_map Town05" |
VERBOSITY |
scenic -v, default 2 — 2 prints per-sample rejections |
LOG_DIR |
where the run log lands, default ./scenic-runs |
EXTRA |
raw extra CLI arguments |
--2d is the mode these scenarios were written for. Drop it only deliberately:
in 3D mode Scenic wants real object meshes and the CARLA world model does not
supply them.
Step 5: Aftermath
Scenic switches the world to synchronous mode for a run and restores async on a clean exit. An interrupted run leaves it synchronous with nobody ticking, and every other c
자주 묻는 질문
시뮬레이터를 실행하기 전에 장면을 확인하는 이유는 무엇인가요?
장면을 생성하지 못하는 시나리오는 시뮬레이터까지 가지 못하므로, 먼저 확인하면 시간을 아낄 수 있습니다.
Scenic 버전이 시뮬레이터와 맞아야 하나요?
네. 클라이언트 버전이 CARLA 서버와 맞아야 합니다. 그렇지 않으면 차량과 소품 옵션이 로드되지 않을 수 있습니다.
실행이 끝난 뒤 시뮬레이터를 바꾸나요?
네. 실행이 끝나면 월드의 설정을 복원합니다.
상세 정보
작성자의 원본 설명
Runs Scenic probabilistic scenarios against a running CARLA server with the `scenic FILE --simulate --2d` CLI — the carlaChallenge1-10 traffic scenarios shipped by ScenarioRunner (`model srunner.scenic.models.model`) and by Scenic itself (`model scenic.simulators.carla.model`) — bounding the run, sampling scenes headlessly first to tell a map problem from a syntax problem, and restoring the world afterwards. Use when the user asks to "run a Scenic scenario", "run carlaChallenge", "test a .scenic file", "scenic --simulate", or reports a Scenic scenario that rejects every sample or cannot find b
repo: carla-simulator/carla
인기도
- GitHub 스타
- 15k
- 순위
- #11114
- 라이선스
- 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 평가를 실행하도록 돕습니다. 먼저 설정을 확인하고, 재개할 수 있는 체크포인트를 저장합니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.