Recording and playback#
Genesis World records simulation data through a recorder framework: register a recorder with the scene, describe what to sample, then step the scene as usual. The recorder samples on its own schedule and either writes the data to a file or draws it in a live plot, so you never thread logging code through your step loop.
For the recording workflow and worked examples, see Recording data.
Components#
Recorder: the base class that processes each sampled value. See Recorder.
RecorderManager: the per-scene coordinator that drives every registered recorder as the scene builds, steps, and resets. See RecorderManager.
File writers:
NPZFile,CSVFile, andVideoFilepersist data to disk, andTrajectoryFilerecords the scene itself for replay. See File writers.Plotters:
PyQtLinePlot,MPLLinePlot,MPLImagePlot, andMPLVectorFieldPlotvisualize data live and can save the animation. See Plotters.
Every recorder options class is exported from gs.recorders.
Components reference#
See also#
Recording data: task-oriented guide to recording sensor and custom data.
Visualization and rendering: cameras and other visual output.
Engine:
scene.add_recorder,scene.start_recording, andscene.stop_recording.