Aller au contenu
Skillpedia
Tests15k · #11114

run-scenic-scenario

Ce qu’il fait

Cette compétence exécute des scénarios de circulation Scenic dans le simulateur CARLA, y compris l'ensemble standard carlaChallenge. Elle s'adresse aux personnes qui testent leurs logiciels de conduite autonome face à des situations de circulation variées.

Quand l’utiliser

  • ✓Quand vous avez un fichier Scenic et voulez l'exécuter dans le simulateur CARLA.
  • ✓Quand un scénario Scenic échoue et que vous devez savoir si le problème vient de la carte ou du fichier.
  • ✓Quand vous voulez lancer l'un des tests de circulation standard carlaChallenge.

Lien du skill

https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/scenic/run-scenic-scenario/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/scenic/run-scenic-scenario/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Peux-tu lancer mon fichier de circulation Scenic dans CARLA et me dire s'il échoue à cause de la carte ou du fichier lui-même ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent génère d'abord une scène de son côté pour détecter un éventuel problème de fichier ou de carte, sans avoir besoin du simulateur. Si cela fonctionne, il lance la scène dans CARLA puis restaure les réglages du simulateur.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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

Questions fréquentes

Pourquoi vérifier la scène avant de lancer le simulateur ?

Un scénario qui ne peut pas générer de scène n'atteindra jamais le simulateur, donc la vérification préalable fait gagner du temps.

La version de Scenic doit-elle correspondre à celle du simulateur ?

Oui. La version du client doit correspondre à celle du serveur CARLA, sinon les options de voitures et d'accessoires risquent de ne pas se charger.

Modifie-t-elle le simulateur après l'exécution ?

Oui. Elle restaure les réglages du monde lorsque l'exécution se termine.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
15k
Position au classement
#11114
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires