create-leaderboard-route
Ce qu’il fait
La compétence crée et modifie des parcours de conduite pour le CARLA Leaderboard, un test du simulateur. Elle s'adresse aux développeurs qui veulent des parcours personnalisés pour évaluer des agents de conduite.
Quand l’utiliser
- ✓Quand vous voulez créer un nouveau fichier de parcours pour le CARLA Leaderboard.
- ✓Quand vous devez ajouter des points de déclenchement de scénario à un parcours existant.
- ✓Quand vous voulez afficher, résumer ou réordonner les scénarios d'un parcours.
Lien du skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/leaderboard/create-leaderboard-route/SKILL.mdCopiez-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
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Crée un parcours Leaderboard dans Town12 avec des points de passage le long de la route principale et un scénario près du carrefour.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent charge la bonne ville dans le simulateur, utilise des outils interactifs pour placer les points de passage et les déclencheurs de scénario depuis la vue de la caméra, puis affiche ou résume le parcours pour le vérifier.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Create a leaderboard route
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 route is waypoints plus scenarios pinned to trigger points, in one XML file ([[run-route-scenario]] documents the format). Writing the coordinates by hand does not work in practice — Town12 is 10 km across and a trigger point a metre into the wrong lane silently never fires. So the leaderboard ships interactive tools that read positions off the spectator camera in a live simulator.
All of them live in $LEADERBOARD_ROOT/scripts/ and all need a running server with
the right town loaded.
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh)
- [ ] Step 2: Load the town the route will live in (load-map)
- [ ] Step 3: Place waypoints (create), then scenarios (scenarios)
- [ ] Step 4: Inspect: display in the simulator, summarise as a table
- [ ] Step 5: Order the scenarios, then run it (run-leaderboard-evaluation)
Step 2-3: Build it
source scripts/env.sh
# 1. load the town first — every tool works on the *currently loaded* map
python3 -c "import carla; carla.Client('127.0.0.1',2000).load_world('Town12')"
# 2. place the route waypoints by flying the spectator and clicking
bash scripts/route_tools.sh create --file ~/routes/my_routes.xml
# 3. add scenarios along it
bash scripts/route_tools.sh scenarios --file ~/routes/my_routes.xml
# 4. capture the current weather as a <weather> element
bash scripts/route_tools.sh weather --route 0
route_creator and scenario_creator are terminal + spectator loops: you move the
spectator in the CARLA window, and type commands in the terminal to record the
current position as a waypoint or a scenario trigger. --file accepts several
files (nargs="+") so it can append into an existing set.
scenario_creator -s/--show-only shows the route without editing, which is the safe
way to look before touching.
Step 4: Inspect
# draw an existing route in the simulator
bash scripts/route_tools.sh display --file ~/routes/my_routes.xml --route 0 --keypoints --scenarios
# a table of every route: length, towns, scenario histogram
bash scripts/route_tools.sh summary --file ~/routes/my_routes.xml
# offline structural check — no server needed
bash scripts/route_tools.sh check --file ~/routes/my_routes.xml
check is this skill's own addition and the one to run first: it validates the XML
against the 2.x schema shape, confirms every <scenario type> has a class in the
paired scenario_runner checkout, flags routes whose town is not installed, and
finds trigger points that are far from the route polyline — the failure that
otherwise shows up as "the scenario never triggers".
route_displayer flags: -sr/--show-route, -sa/--show-all,
-sk/--show-keypoints, -ss/--show-scenarios.
Step 5: Tidy and run
# sort the <scenarios> block by position along the route (cosmetic but makes review sane)
bash scripts/route_tools.sh order --file ~/routes/my_routes.xml
cd ../run-leaderboard-evaluation
ROUTES=~/routes/my_routes.xml TEAM_AGENT=.../npc_agent.py \
bash scripts/run_leaderboard.sh --routes-subset 0
Always validate a new route with npc_agent.py before using it to judge your own
agent: a route the NPC agent cannot complete is a broken route, not a hard one.
Converting 1.0 routes
bash scripts/route_tools.sh bridge --routes old_routes.xml \
--scenarios all_towns_traffic_scenarios_public.json --endpoint new_routes.xml
scripts/route_bridge.py merges a 1.0 geometry file and its separate scenario JSON
into a single 2.x route file. It exists on master only — it was removed from
the leaderboard-2.0 and 2.1 branches, so run it from a master checkout and use
the output elsewhere.
Examples
Example 1: "make a short route in Town12 to test one scenario"
Load Town12, create two or three waypoints along one road, scenarios to drop a
single Accident trigger, check, then run with the NPC agent. Faster to iterate
on than any of the shipped 90-route files.
Example 2: "why doesn't my scenario trigger?"
check first — it reports trigger points off the route polyline and scenario types
with no class. If both are clean, display --scenarios and watch where the ego
passes relative to t
Questions fréquentes
Pourquoi ne pas écrire les coordonnées à la main ?
Des positions écrites à la main manquent souvent la voie, si bien qu'un déclencheur de scénario peut ne jamais se activer sans que personne ne le remarque.
Faut-il un simulateur en marche ?
Oui. Les outils fonctionnent sur la carte chargée sur un serveur en cours d'exécution.
Puis-je vérifier le parcours avant de le lancer ?
Oui. La compétence peut dessiner le parcours dans le simulateur ou le résumer sous forme de tableau.
Détails
Description originale de l’auteur
Creates and edits CARLA Leaderboard route files — placing waypoints and scenario trigger points interactively from the spectator camera (route_creator, scenario_creator), visualising an existing route in the simulator (route_displayer), summarising it as a table (route_summarizer), capturing the current weather in route format (weather_creator), sorting scenarios by route position (scenario_orderer) and converting 1.0-format routes to 2.x (route_bridge). Use when the user asks to "make a new route", "add a scenario to a route", "visualise/debug a route", "see what's in this route file", or "co
repo: carla-simulator/carla
Popularité
- Étoiles GitHub
- 15k
- Position au classement
- #11079
- Licence
- MIT
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
package-leaderboard-agent
15kAide votre agent à empaqueter un agent de conduite dans une image Docker pour le CARLA Leaderboard, en vérifiant les dossiers et le chargement de l'agent.
read-leaderboard-results
15kAide votre agent à lire les résultats du CARLA Leaderboard, à expliquer le score et les infractions de chaque parcours, et à recalculer selon l'autre version.
run-leaderboard-evaluation
15kAide votre agent à lancer l'évaluateur du CARLA Leaderboard sur un ensemble de parcours, en vérifiant d'abord la configuration et en sauvegardant des points de contrôle reprenables.
write-leaderboard-agent
15kAide votre agent à écrire un agent de conduite pour le CARLA Leaderboard, avec la bonne classe, une configuration de capteurs dans les limites de la piste et un fichier de départ fonctionnel.
Skills similaires
blucli
394kAide votre agent à trouver, lancer, mettre en pause, regrouper et régler le volume des enceintes Bluesound et NAD grâce à la commande blu.
camsnap
394kAide votre agent à prendre des instantanés, de courts extraits vidéo ou des événements de mouvement depuis les caméras réseau et webcams locales que vous avez configurées.
eightctl
394kAide votre agent à consulter et contrôler un boîtier Eight Sleep, y compris sa température, ses alarmes et ses programmes de sommeil.