nanover.websocket.record module
- class nanover.websocket.record.BackgroundRecordingContext(connection: Connection, writer: NanoverRecordingWriter)
Bases:
object- close()
End recording by disconnection and close writer.
- classmethod from_address_to_path(*, address: str, path: str)
Connect to the given websocket address and record trajectory frames and state updates to a file at the given path
- Parameters:
address – Websocket address in the form protocol://host[:port]
path – File path to record to
- nanover.websocket.record.message_events_from_websocket(websocket: Connection)
Iterate the stream of incoming messages of a websocket connection and yield generic MessageEvents for use with the recording functions.
- nanover.websocket.record.record_from_runner(runner: OmniRunner, out_path)
Connect to the given runner and record trajectory frames and state updates to a file
- Parameters:
runner – OmniRunner instance to connect to
out_path – File to write recording to