본문으로 건너뛰기
Skillpedia
테스트15k · #11114

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/scenic/run-scenic-scenario/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내 Scenic 교통 파일을 CARLA에서 실행하고, 실패한다면 지도 때문인지 파일 자체 때문인지 알려 줄 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 먼저 시뮬레이터 없이 장면을 직접 생성해 파일이나 지도 문제를 찾습니다. 그것이 작동하면 CARLA에서 장면을 실행한 뒤, 시뮬레이터의 설정을 복원합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Run a Scenic scenario

Paths. scripts/… and references/… 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:

  1. sample — Scenic reads the map's OpenDrive, then rejection-samples until a scene satisfies every require. No simulator involved.
  2. 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.model needs SCENARIO_RUNNER_ROOT on PYTHONPATH; scenic.simulators.carla.model ships 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬