install-scenic
できること
このスキルは、CARLAシミュレーターで使えるように、交通テストのシナリオを書くためのツールであるScenicをインストールします。Scenicのシナリオを書いたり実行したりする人向けです。
使う場面
- ✓CARLA向けのScenicシナリオを書き始めたいとき。
- ✓すでにCARLAのPythonクライアントがあり、Scenicをそれと連携させたいとき。
- ✓インストール後にScenicのシナリオがモデルやブループリントのエラーで失敗するとき。
スキルのリンク
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/setup/install-scenic/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“CARLAシミュレーター用の交通シナリオを書けるように、Scenicをインストールし、私の環境で動くか確認してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、CARLAクライアントと同じPython環境にScenicをインストールします。両者は一緒に動く必要があるためです。例のシナリオもダウンロードでき、Scenicのコマンド、クライアント、バージョンの対応表が一致しているかを確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Install Scenic
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.
Scenic is pure Python — there is nothing to build and pip install scenic is
the whole install. Two things make it go wrong anyway, and neither reports an
install error:
- The
scenicCLI and thecarlaclient must be in ONE interpreter. Scenic loads the client itself when a scenario names the CARLA model. Split them and the failure arrives mid-run as a model import error, not at install time. - Scenic's blueprint tables are keyed on the CARLA client version. With no table for that version, every vehicle and prop category resolves empty and every scenario fails at sample time with "no blueprints recorded".
So the install order is client first, Scenic second, into the same
interpreter. install_scenic.py refuses to install into an interpreter with no
client unless you pass --force.
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh)
- [ ] Step 2: Pick the interpreter — the one that has the CARLA client
- [ ] Step 3: See the plan for this machine
- [ ] Step 4: Install (and clone examples if they are wanted)
- [ ] Step 5: Verify, and record `SCENIC_ROOT` and `PYTHON` with `set_config`
Step 1-3: What is here, and what to do about it
PYTHON=/path/to/venv/bin/python bash scripts/check_env.sh
python3 scripts/install_scenic.py detect # interpreter, Scenic, client, tables
python3 scripts/install_scenic.py plan # the exact commands, and why
Every subcommand takes --python to act on another interpreter:
python3 scripts/install_scenic.py --python ~/.venvs/carla/bin/python detect
detect is the one to read first. It prints which CARLA versions the installed
Scenic has blueprint tables for, and flags a CLI that belongs to a different
environment than the interpreter — the pyenv-shim trap, which otherwise surfaces
much later as a confusing model import failure.
Step 4: Install
# into the interpreter that has the client
python3 scripts/install_scenic.py install
# a specific version
python3 scripts/install_scenic.py install --version 3.1.1
# also clone upstream for the example scenarios and map assets
python3 scripts/install_scenic.py install --clone ~/Scenic
The wheel ships world models only — no example scenarios and no map assets.
--clone is how you get examples/ and assets/maps/CARLA/*.xodr. Skip it if
you are running a ScenarioRunner checkout's own scenarios, which carry their own
copies under srunner/scenic/.
install runs verify when it finishes.
Step 5: Verify and export
python3 scripts/install_scenic.py verify
Checks the five things that actually matter, and exits non-zero on any:
| Check | Why it matters |
|---|---|
scenic importable |
the install worked |
| CLI belongs to this interpreter | otherwise a run uses a different Scenic |
carla client present |
Scenic loads it for the CARLA model |
carla is the extension, not a directory |
a directory named carla on sys.path imports as an empty namespace package |
| blueprint table for this client version | otherwise every category is empty |
scenic.simulators.carla.simulator imports |
the real binding between Scenic and the client |
Then export the root, which is what the scenic skill group is gated on:
export SCENIC_ROOT=~/Scenic # a checkout, for examples
# or, for a pip-only install, the installed package directory:
export SCENIC_ROOT=$(python3 -c 'import os,scenic;print(os.path.dirname(scenic.__file__))')
Running and authoring scenarios is out of scope here — see [[run-scenic-scenario]] and [[create-scenic-scenario]].
Recording the path
An export lasts until the shell exits. Persist SCENIC_ROOT and PYTHON instead, so the
next session — and list_skills — still knows where this went:
set_config({"SCENIC_ROOT": "<the checkout or package dir>",
"PYTHON": "<the interpreter Scenic went into>"})
Without it the group this just enabled keeps reporting available: false,
and the next skill re-detects from scratch. CARLA_ROOT is the only CARLA
path to record: set_config derives the engine-specific variable itself.
Examples
**Example 1: "install Sce
よくある質問
ScenicとCARLAクライアントはなぜ同じPythonを使う必要があるのですか?
ScenicはCARLAクライアントを自分で読み込むため、別々にインストールすると実行の途中でエラーが起きてしまうからです。
例のシナリオは必要ですか?
いいえ。ただし、パッケージに含まれていない例のシナリオは、このスキルがダウンロードできます。
バージョンが一致しないとなぜ問題ですか?
Scenicはクライアントのバージョンに合わせて車両を一覧にするため、一致しないとシナリオで使える車がなくなることがあります。
詳細
作者による元の説明
Installs Scenic, the probabilistic scenario description language, for the CARLA in use — pip installing it into the same interpreter that holds the CARLA client, optionally cloning the upstream repo for the example scenarios the wheel does not ship, and verifying that the `scenic` CLI, the client and Scenic's version-keyed blueprint table all agree. Use when the user asks to "install Scenic", "set up Scenic", "download Scenic", "pip install scenic", wants to run `.scenic` files, or has a Scenic whose model import or blueprint lookup fails.
repo: carla-simulator/carla
人気
- GitHubのスター
- 15k
- ランキング
- #11120
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
create-leaderboard-route
15kエージェントが、シミュレーターのカメラでウェイポイントとシナリオのトリガーを配置し、CARLA Leaderboardのルートファイルを作成・確認できるよう支援します。
package-leaderboard-agent
15kエージェントが、ドライビングエージェントをCARLA Leaderboardへの提出用のDockerイメージにまとめられるよう支援します。フォルダ構成の確認と読み込みテストを行います。
read-leaderboard-results
15kエージェントが、CARLA Leaderboardの結果ファイルを読み、各ルートの得点と違反を説明し、別のルールのバージョンで実行結果を再採点できるよう支援します。
run-leaderboard-evaluation
15kエージェントが、ドライビングエージェントを使って一連のルートでCARLA Leaderboardの評価ツールを実行できるよう支援します。実行前に設定を確認し、再開可能なチェックポイントを保存します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。