replay-recording
What it does
The skill replays a recording in the simulator so you can watch the run again. It is for people who want to review or study a recorded scenario.
When to use it
- ✓When you want to play back a recording you made earlier.
- ✓When you want to watch a replay in slow motion or at a faster speed.
- ✓When you want to follow a specific vehicle during the replay.
Skill link
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/replay-recording/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Replay my last recording at half speed and follow vehicle number 12.”
5 new skills a week. 1 minute to read.
How it works
The agent stops any local holders that would interfere, sets the world to asynchronous mode, clears the scene, and starts the replay on the server. It then prints a summary and follows the chosen actor.
Technical content (original SKILL.md)
Original text by the author, straight from 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:
FAQ
Will the replay keep my current actors?
By default it clears the scene first, because the replay recreates the logged actors. A keep-scene option skips this.
Can I replay on another map?
Yes. The skill can replay a recording onto a different map.
Does a replay need a client to tick the clock?
No. The replayer runs on the server, so no client has to tick it.
Details
Original description by the author
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
Popularity
- GitHub stars
- 15k
- Ranking position
- #11099
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
create-leaderboard-route
15kHelps your agent build CARLA Leaderboard route files by placing waypoints and scenario triggers from the simulator camera, then checking and ordering them.
package-leaderboard-agent
15kHelps your agent package a driving agent into a Docker image for CARLA Leaderboard submission, checking the folder layout and testing that the image loads it.
read-leaderboard-results
15kHelps your agent read a CARLA Leaderboard results file, explain each route's score and infractions, and rescore a run under the other rule version.
run-leaderboard-evaluation
15kHelps your agent run the CARLA Leaderboard evaluator on a set of routes with your driving agent, checking the setup first and saving checkpoints you can resume.
Similar skills
blucli
394kHelps your agent find, play, pause, group, and adjust the volume of Bluesound and NAD speakers through the blu command.
camsnap
394kHelps your agent grab snapshots, short clips, or motion events from network cameras and local webcams that you have set up.
eightctl
394kHelps your agent check and control an Eight Sleep pod, including its temperature, alarms, and sleep schedules.