

The time factor will determine the playback speed. Set it to 0 to let the spectator move freely. ID of the actor that the camera will focus on. 0 is all the recording.īy the end of the playback, vehicles will be set to autopilot and pedestrians will stop. If negative, it will be considered from the end. If positive, time will be considered from the beginning of the recording. Recording time in seconds to start the simulation at. client.replay_file("recording01.log", start, duration, camera) Besides the path to the log file, this method needs some parameters. client.start_recorder("/home/carla/recording01.log", True)Īs an estimate, 1h recording with 50 traffic lights and 100 vehicles takes around 200MB in size.Ī playback can be started at any point during a simulation. In order to save all the information previously mentioned, the argument additional_data has to be configured when starting the recording. client.start_recorder("/home/carla/recording01.log")īy default, the recorder is set to store only the necessary information to play the simulation back. If no path is detailed, the file will be saved in CarlaUE4/Saved.

Using \, / or : characters in the file name will define it as an absolute path. To start recording there is only need for a file name. Lights - Light states from buildings, streets, and vehicles.Pedestrians - position and orientation, and linear and angular velocity.Vehicles - position and orientation, linear and angular velocity, light state, and physics control.Traffic lights - state changes and time settings.Actors - creation and destruction, bounding and trigger boxes.The recorder file includes information regarding many different elements. By the end of the playback, vehicles will be set to autopilot, but pedestrians will stop.
