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

create-scenic-scenario

하는 일

이 스킬은 교통 상황에 대한 평범한 설명을 CARLA 시뮬레이터용 Scenic 파일로 바꿉니다. 차와 사람을 하나하나 배치하지 않고 반복 가능한 교통 테스트를 작성하려는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓교통 상황을 말로 설명하고 그에 맞는 테스트 파일을 얻고 싶을 때.
  • ✓차가 옆에서 끼어들거나 사람이 도로를 건너는 시나리오가 필요할 때.
  • ✓시뮬레이터에서 실행하기 전에 파일이 작동하는지 확인하고 싶을 때.

스킬 링크

https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/scenic/create-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/create-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 시나리오를 작성하고, 제대로 작동하는지 확인해 줄 수 있나요?”

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

작동 방식

에이전트는 설명을 짧은 계획으로 바꾼 뒤, 이 빌드에서 작동하는 것으로 알려진 패턴을 사용해 파일을 만듭니다. 그다음 파일을 컴파일하고 장면을 샘플링해 시뮬레이터를 시작하지 않고도 실행되는지 확인합니다.

기술 내용 (원본 SKILL.md)

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

Create a Scenic scenario from a description

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.

Scenic describes a distribution over scenes, not one scene. So a good scenario is not a script of positions — it is a set of constraints loose enough to sample and tight enough to be the situation asked for.

Translating a request has three parts, and only the first is a judgement call:

  1. request → spec (yours): pick the map, the placement, the actors and their relations.
  2. spec → file (scripts/scaffold_scenic.py): emits boilerplate and placement idioms lifted from scenarios that run on this build.
  3. validate (same script): compile, then sample. No server needed.

Do not hand-write the boilerplate. Three things bite every time and the generator already handles them:

  • assert len(x) > 0 is illegal on a random value. Anything derived from a Uniform(...) raises RandomControlFlowError. Only assert on lists built deterministically from network.
  • Pedestrians and props need with regionContainedIn None when placed on the road. Containment is re-checked every sample, so without it generation never converges — it looks like an unsatisfiable require.
  • param map and param carla_map must name the same town. map builds the road network; carla_map tells CARLA what to load. Disagree and the scene is sampled on one map and simulated on another.

Instructions

Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh)
- [ ] Step 2: Pick a map that can express the situation
- [ ] Step 3: Pick blueprints that exist in THIS build
- [ ] Step 4: Write the spec, generate, and let it validate
- [ ] Step 5: Loop on the verdict until it samples; then simulate

Step 2: The map has to support the situation

A scenario selects road features. If the map has none of them, no wording will save it — the generated filter matches nothing and compilation fails with tried to make discrete distribution over empty domain.

python3 ../run-scenic-scenario/scripts/list_scenic.py --check-maps

Read the 4way=N(uns M) / 3way=N(uns M) columns. Junction-negotiation scenarios need uns > 0; dense downtown maps are usually fully signalized.

Step 3: Blueprints that exist here

python3 scripts/blueprint_table.py                      # inventory + gaps
python3 scripts/blueprint_table.py --category bicycle   # ids Scenic offers
python3 scripts/blueprint_table.py --list vehicles      # what the build has
python3 scripts/blueprint_table.py --check vehicle.lincoln.mkz vehicle.lincoln.mkz_2017

Two lists, and they disagree. blueprint_table.py reads the build's own Content/Carla/Config/*Parameters.json — the definitive inventory — and diffs it against Scenic's table for the installed client version.

  • A category Scenic reports empty makes new Bicycle fail at sample time even when the build has bicycles. Name the id instead: with blueprint "vehicle.bh.crossbike".
  • An id in the build but absent from Scenic's table is still spawnable — reference it explicitly.
  • An id in neither fails at spawn time, long after sampling passed. This is how the upstream scenarios still carrying vehicle.lincoln.mkz_2017 behave.

Step 4: Spec, generate, validate

python3 scripts/scaffold_scenic.py --example > spec.json   # start from this shape
# edit spec.json
python3 scripts/scaffold_scenic.py --spec spec.json --out my.scenic

Generating with --out validates automatically. To re-validate after a hand edit:

python3 scripts/scaffold_scenic.py --validate my.scenic

Spec keys:

Key Meaning
map town name; needs a matching .xodr in the assets (required)
model srunner (default) or scenic — see [[run-scenic-scenario]]
placement lane for road situations, intersection for junction ones
arms, signalized intersection filter; signalized: false for negotiation
ego {blueprint, speed, maneuver}; maneuver is straight/left/right
actors[] {name, type, blueprint, relation, distance, speed, maneuver, offset, threshold}
requires[] extra require lines, verbatim
terminate termination condition; defa
자주 묻는 질문

검사하려면 시뮬레이터가 필요한가요?

아니요. 파일은 먼저 컴파일되고 샘플링되며, 이 과정에는 서버가 필요하지 않습니다.

Scenic은 왜 하나의 장면이 아니라 여러 장면을 설명하나요?

Scenic은 가능성이 높은 상황들의 집합을 설명하므로, 실행할 때마다 설명에 맞으면서 약간씩 다른 장면이 나옵니다.

보행자를 도로에 놓을 수 있나요?

네. 보행자와 소품을 도로에 놓을 수 있으며, 스킬이 그 설정을 처리합니다.

상세 정보

작성자의 원본 설명

Writes a new Scenic scenario (.scenic) from a natural-language description — "a car cuts in from the right lane", "a pedestrian crosses in front of the ego", "negotiate an unsignalized four-way" — by turning the request into a spec, generating the file from idioms proven on this build, and validating it by compiling and sampling before any simulator is involved. Use when the user asks to "write a Scenic scenario", "create a .scenic file", "turn this description into Scenic", "generate a scenario from text", or wants a Scenic scenario authored or repaired.

repo: carla-simulator/carla

인기도

GitHub 스타
15k
순위
#11113
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬