nanover.omni.playback module

class nanover.omni.playback.PlaybackSimulation(name, *, traj: PathLike[str] | None = None, state: PathLike[str] | None = None)

Bases: object

advance_by_one_step()

Advance playback to the next point a frame or update should be reported, and report it.

advance_by_seconds(dt: float)

Advance the playback by some seconds, emitting any intermediate frames and state updates. :param dt: Time to advance playback by in seconds

advance_to_next_entry()

Advance playback to the next point a frame or update should be reported, and report it.

emit(*, frame: FrameData | None, update: DictionaryChange | None)
classmethod from_paths(paths: Iterable[PathLike[str]])

Construct this from one or both of trajectory and state recording file paths. :param paths: One or both of trajectory and state recording file paths.

load()

Load and set up the simulation if it isn’t done already.

reset(app_server: NanoverImdApplication)

Reset the playback to its initial state. :param app_server: The app server hosting the frame publisher and imd state