replay-recording
Ce qu’il fait
La compétence rejoue un enregistrement dans le simulateur pour que vous puissiez revoir l'exécution. Elle s'adresse aux personnes qui veulent revoir ou étudier un scénario enregistré.
Quand l’utiliser
- ✓Quand vous voulez rejouer un enregistrement fait précédemment.
- ✓Quand vous voulez regarder un rejeu au ralenti ou plus rapidement.
- ✓Quand vous voulez suivre un véhicule précis pendant le rejeu.
Lien du skill
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/replay-recording/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
“Rejoue mon dernier enregistrement à demi-vitesse et suis le véhicule numéro 12.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent arrête les clients locaux qui pourraient gêner le rejeu, place le monde en mode asynchrone, vide la scène et lance le rejeu sur le serveur. Il affiche ensuite un résumé et suit l'acteur choisi.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Replay a CARLA recording
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.
Play back a .log produced by record-simulation.
The server re-creates the recorded scene; play prints its summary. Confirm the
replay by watching the followed actor or by inspecting the same log with
query-recording.
The scene, the holders and the clock
play puts the world into the state a replay needs, in this order:
- Stops local spawn holders.
spawn-vehicles/spawn-walkers/ a heldcreate-sensorstay resident by design, and each removes its own actors and restores the clock in afinally, so they are sent SIGINT rather than killed.--keep-sceneskips all of this. - Puts the world back to asynchronous. The replayer runs server-side, so no client has to tick anything. If a client still owned a synchronous clock the replay would advance only as fast as that client ticked; worse, with the holder gone and the world left synchronous, nothing ticks at all and the replay appears to do nothing.
- Clears the scene. A replay RECREATES the actors in the log, so it adds to the world rather than replacing it: replaying a 50-car log into a live 50-car scene gives 100 vehicles driving through each other. Traffic signs and the spectator survive — they belong to the map, not the scene.
The corollary for recording: the recorder is free to be the synchronous client. Capturing under a fixed timestep is what makes a log reproducible, and it costs the replay nothing, because playback is driven by the server.
Holder detection reads /proc argv rather than matching a command-line
substring — a shell whose own command line merely quotes
vehicles.py spawn --hold matches a substring search and gets signalled, which
kills the caller by accident.
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs
- [ ] Step 2: (optional) inspect the log first (query-recording) to pick times/ids
- [ ] Step 3: Play — whole log, or a window; set speed / follow as asked
- [ ] Step 4: Stop when done (decide keep-actors)
Commands need CARLA_HOST/CARLA_PORT from scripts/env.sh.
Step 1: Check prerequisites
bash scripts/check_env.sh
Step 3: Play
source scripts/env.sh
# whole log at real time
python3 scripts/replay.py play --file /tmp/run.log
# a 10s window from t=5s, following actor 87, at 2x
python3 scripts/replay.py play --file /tmp/run.log --start 5 --duration 10 --follow 87 --time-factor 2.0
# regenerate sensors and restore the recorded weather
python3 scripts/replay.py play --file /tmp/run.log --replay-sensors --replay-weather
# change speed of the running replay, e.g. slow motion
python3 scripts/replay.py speed --factor 0.25
--start is seconds from the beginning (negative counts from the end),
--duration 0 plays to the end, --follow 0 means don't move the spectator.
Step 4: Stop
python3 scripts/replay.py stop # remove replayed actors
python3 scripts/replay.py stop --keep-actors # leave them in the world
Examples
Example 1: watch it back
User says: "replay that run"
play --file /tmp/run.log. Server summary prints; watch in the CARLA window.
Example 2: slow-mo on one car
User says: "replay following car 87 at quarter speed"
play --file /tmp/run.log --follow 87 --time-factor 0.25.
Example 3: regenerate camera data from a recording
User says: "I need camera frames from that recording"
Re-attach the sensors you want (create-sensor / read-sensor skills), then
play --file /tmp/run.log --replay-sensors. The recorder stored no images; they
are regenerated now.
Troubleshooting
Problem: play prints a file-not-found / parse error
Cause: the .log is not on the server at that path.
Solution: use the server-side path; a relative name resolves under
CarlaUE4/Saved/. Verify with query-recording info first.
Problem: replay shows nothing / wrong map
Cause: the log was recorded on a different map than the one loaded.
Solution: replay loads the recorded map automatically; for OpenDRIVE-only logs
use --map-override <Name>.
Problem: no sensor images during replay Cause:
Questions fréquentes
Le rejeu conservera-t-il mes acteurs actuels ?
Par défaut, la scène est vidée d'abord, car le rejeu recrée les acteurs du journal. Une option de conservation de la scène permet de l'ignorer.
Puis-je rejouer sur une autre carte ?
Oui. La compétence peut rejouer un enregistrement sur une carte différente.
Le rejeu a-t-il besoin d'un client pour faire avancer l'horloge ?
Non. Le rejeu s'exécute sur le serveur, donc aucun client n'a besoin de le faire avancer.
Détails
Description originale de l’auteur
Replays a CARLA .log recorded by the recorder — the whole run or a time window, at any speed, following a chosen actor, optionally regenerating sensors and restoring weather. Use when the user asks to "replay the recording", "play back the run", "watch it again in slow motion / at 2x", "follow vehicle N during replay", or "replay onto a different map".
repo: carla-simulator/carla
Popularité
- Étoiles GitHub
- 15k
- Position au classement
- #11099
- Licence
- MIT
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
create-leaderboard-route
15kAide votre agent à créer des parcours CARLA Leaderboard : points de passage et déclencheurs de scénario placés depuis la caméra, puis vérifiés et ordonnés.
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.
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.