Implementation:CARLA simulator Carla Show Recorder File Info Tool
| Knowledge Sources | |
|---|---|
| Domains | Simulation, Recording, Utility |
| Last Updated | 2026-02-15 05:00 GMT |
Overview
Command-line utility script that displays detailed information about a CARLA recorder file, with optional export to a text file for offline analysis.
Description
This script (show_recorder_file_info.py) connects to a CARLA server and uses client.show_recorder_file_info() to extract and display the contents of a recorder (.rec) file. The --show_all flag (-a) enables verbose output showing detailed frame-by-frame content including actor positions, velocities, and events. The output can optionally be saved to a file using the -s/--save_to_file argument. The script uses a 60-second client timeout to handle large recording files. The output format is a text representation that can be used with the recorder_comparer.py tool for determinism testing.
Usage
Use this tool to inspect recorded simulation data, debug replay issues, or generate text files for comparison testing with the recorder_comparer tool.
Code Reference
Source Location
- Repository: CARLA
- File: PythonAPI/util/show_recorder_file_info.py
Signature
def main():
"""Connect to CARLA and display recorder file information."""
# Uses client.show_recorder_file_info(filename, show_all)
# Optionally saves output to file
Import
# Run as a command-line tool:
python show_recorder_file_info.py -f test1.rec
I/O Contract
| Argument | Type | Default | Description |
|---|---|---|---|
| --host | str | 127.0.0.1 | CARLA server IP address |
| -p, --port | int | 2000 | CARLA server TCP port |
| -f, --recorder_filename | str | test1.rec | Name of the recorder file to inspect |
| -a, --show_all | flag | False | Show detailed info about all frames |
| -s, --save_to_file | str | None | Save output to specified file |
Usage Examples
# Display basic recorder info
python show_recorder_file_info.py -f my_recording.rec
# Show all frame details
python show_recorder_file_info.py -f my_recording.rec -a
# Save to file for comparison
python show_recorder_file_info.py -f my_recording.rec -a -s output.txt