run-leaderboard-evaluation
O que ela faz
A skill executa a avaliação do CARLA Leaderboard para um agente de direção em um conjunto de rotas. É para desenvolvedores que querem pontuar seu agente e precisam de uma execução de teste longa configurada corretamente.
Quando usar
- ✓Quando você quer avaliar seu agente de direção nas rotas do Leaderboard.
- ✓Quando uma avaliação longa travou e você quer retomá-la a partir de um checkpoint.
- ✓Quando você quer um teste rápido de fumaça em uma rota antes de uma execução completa.
Link da skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/leaderboard/run-leaderboard-evaluation/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Rode meu agente primeiro nas rotas de devtest e depois inicie o conjunto de treino completo com um checkpoint do qual eu possa retomar.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente verifica toda a configuração antes de começar, incluindo as versões, os mapas, a classe do agente e os sensores. Ele roda primeiro um teste de fumaça em um conjunto curto de rotas, depois executa o conjunto completo e salva checkpoints.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Run a leaderboard evaluation
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.
leaderboard_evaluator.py drives your agent through each route, records
infractions, computes a driving score and writes a JSON checkpoint it can resume
from. It is a long-running batch job: routes_devtest.xml is 2 routes,
routes_validation.xml is 20, routes_training.xml is 90 routes in Town12 —
hours of wall clock, so the preflight matters more than usual.
Instructions
Progress:
- [ ] Step 1: Preflight everything (bash scripts/check_env.sh) — clear every FAIL
- [ ] Step 2: Smoke-test on one devtest route
- [ ] Step 3: Run the real set, with a checkpoint you can resume from
- [ ] Step 4: Read the results (read-leaderboard-results)
Step 1: Preflight
source scripts/env.sh
bash scripts/check_env.sh
This is the skill's main value. It checks, before anything expensive: the
leaderboard version, that scenario_runner is on the paired branch, that carla
/ agents / srunner / leaderboard all import, that the agent file exists and
defines the class the evaluator will look for, that the track is valid for the
version, and that Town12/Town13 exist on the running server.
Step 2-3: Run
source scripts/env.sh
# smoke test: one route, debug on
TEAM_AGENT="$LEADERBOARD_ROOT/leaderboard/autoagents/npc_agent.py" \
bash scripts/run_leaderboard.sh --routes-subset 0 --debug 1
# your agent over the validation set, resumable
TEAM_AGENT=~/team_code/my_agent.py TEAM_CONFIG=~/team_code/config.json \
CHECKPOINT_ENDPOINT=~/results/validation.json \
bash scripts/run_leaderboard.sh --routes "$LEADERBOARD_ROOT/data/routes_validation.xml"
# a slice of the training set, 3 repetitions each
bash scripts/run_leaderboard.sh --routes-subset '0-4,10' --repetitions 3
# resume after a crash — picks up where the checkpoint left off
bash scripts/run_leaderboard.sh --resume 1
The wrapper sets the environment, runs the preflight, then calls the evaluator.
The repo's own run_leaderboard.sh does the same thing with less checking — and
note it references DEBUG_CHECKPOINT_ENDPOINT without ever exporting it, so live
results silently go nowhere. This wrapper defaults it next to the checkpoint.
Everything the evaluator accepts, and what it means:
| Flag / env | Meaning |
|---|---|
--routes / ROUTES |
route XML (default data/routes_devtest.xml) |
--routes-subset / ROUTES_SUBSET |
'' = all, 0-4, 1,6,8, or 0-2,5,8-10 |
--repetitions / REPETITIONS |
repeats per route; each gets a fresh TM seed |
--track / CHALLENGE_TRACK_CODENAME |
SENSORS, MAP, SENSORS_QUALIFIER, MAP_QUALIFIER |
--agent / TEAM_AGENT |
the agent .py |
--agent-config / TEAM_CONFIG |
passed to your setup() |
--checkpoint / CHECKPOINT_ENDPOINT |
results JSON; also the resume state |
--debug-checkpoint / DEBUG_CHECKPOINT_ENDPOINT |
live text results, written when --debug >= 2 |
--debug / DEBUG_CHALLENGE |
0 quiet, 1 route/scenario info, 2+ live results |
--record / RECORD_PATH |
CARLA recorder output directory |
--resume / RESUME |
continue from the checkpoint instead of restarting |
--timeout |
per-route client timeout, default 300 s |
--traffic-manager-seed |
fixed per run; repetitions vary it deterministically |
--routes-subset is indices into the file, not route ids. They coincide in the
shipped files because ids are sequential from 0, but not in a hand-edited file.
What the evaluator forces
_setup_simulation applies these regardless of the server's current settings:
synchronous_mode = True, fixed_delta_seconds = 1/20
deterministic_ragdolls = True, spectator_as_ego = False
traffic_manager: synchronous, hybrid_physics_mode = True
per load_world: tile_stream_distance = 650, actor_active_distance = 650
world.reset_all_traffic_lights()
So do not bother setting weather, sync or TM options beforehand — they are overwritten. The 20 Hz tick rate is fixed and is what your agent's per-tick budget is measured against.
Step 4: Aftermath
The evaluator resets the world to async itself in _reset_world_settings, but
only if the run did not time out (`if self.world and self.manager and not
self._client_timed_out
Perguntas frequentes
Quanto tempo leva uma execução completa?
O conjunto de treino tem 90 rotas na Town12, então uma execução completa pode levar horas, e por isso as verificações vêm primeiro.
Uma execução pode ser retomada depois de uma falha?
Sim. O avaliador grava checkpoints a partir dos quais uma execução pode ser retomada.
Qual é o tamanho dos conjuntos de teste?
O conjunto de devtest tem 2 rotas, o de validação tem 20 e o de treino tem 90.
Detalhes
Descrição original do autor
Runs the CARLA Leaderboard evaluator over a set of routes with your agent — routes/routes-subset/repetitions/track selection, checkpoint and live-results endpoints, resume after a crash, recording, and the debug levels — for leaderboard 1.0, 2.0 or 2.1. Preflights the whole stack (version pairing, maps, ports, agent class, sensor budget) before spending hours, and hands the world back in async mode. Use when the user asks to "run the leaderboard", "evaluate my agent", "run routes_training", "resume an evaluation", or "reproduce my submission locally".
repo: carla-simulator/carla
Popularidade
- Estrelas no GitHub
- 15 mil
- Posição no ranking
- #11082
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
create-leaderboard-route
15 milAjuda seu agente a criar arquivos de rota do CARLA Leaderboard posicionando waypoints e gatilhos de cenário a partir da câmera do simulador, depois verificando e ordenando-os.
package-leaderboard-agent
15 milAjuda seu agente a empacotar um agente de direção em uma imagem Docker para envio ao CARLA Leaderboard, verificando a estrutura de pastas e testando se a imagem o carrega.
read-leaderboard-results
15 milAjuda seu agente a ler um arquivo de resultados do CARLA Leaderboard, explicar a pontuação e as infrações de cada rota e recalcular uma execução pela outra versão das regras.
write-leaderboard-agent
15 milAjuda seu agente a escrever um agente de direção para o CARLA Leaderboard, com a classe correta, uma configuração de sensores dentro dos limites da pista e um arquivo inicial funcional.
Skills parecidas
test-driven-development
311 milEnsina seu agente a escrever primeiro um teste que falha, ver a falha e depois escrever o menor código que passa, antes de criar qualquer funcionalidade ou correção.
verification-before-completion
311 milEnsina seu agente a rodar verificações reais e ler a saída antes de afirmar que uma tarefa, correção ou build está concluído ou passando.
migrate-to-shoehorn
310 milSubstitui conversões de tipo arriscadas nos seus arquivos de teste pela biblioteca shoehorn, para que os testes usem dados parciais e ainda passem na checagem de tipos.