hbp_nrp_cleserver.server.CSVLogger module

This module contains the REST implementation for saving to the storage the content of the CSV recorders of the simulation.

class CSVLogger(assembly, interval=5, folder_name=None)[source]

Bases: object

Class that logs CSV data to the storage, received from the CLE every n seconds Runs in a separate killable thread

initialize()[source]

Initializes a killable thread which runs the log_csv function every interval seconds, and starts the thread

reset()[source]

Resets the killable thread that saves the csv data and updates the creation time. This is done to create a new folder after reset

shutdown()[source]

Terminates the killable thread that saves the csv data