nanover.websocket.client.playback_client module

class nanover.websocket.client.playback_client.PlaybackClient(connection: ClientConnection)

Bases: WebsocketClient

Mixin of methods for running playback commands with a WebSocketClient.

run_list() list[str]

Retrieves an ordered list of the available simulations for the load command.

run_load(index: int)

Sends a request for the trajectory service to switch to a particular simulation.

run_next()

Sends a request for the trajectory service to switch to the next simulation.

run_pause()

Sends a request to pause the simulation to the trajectory service.

run_play()

Sends a request to start playing the trajectory to the trajectory service.

run_reset()

Sends a request to reset the simulation to the trajectory service.

run_step()

Sends a request to take one step to the trajectory service.