31 #ifndef _DATALOGGER_H_ 32 #define _DATALOGGER_H_ 36 #include <Rcs_MatNd.h> 78 void record(
const MatNd* observation,
const MatNd* action);
unsigned int currentStep
Step counter in current logging run.
std::recursive_mutex mutex
void start(const BoxSpace *observationSpace, const BoxSpace *actionSpace, unsigned int maxStepCount)
MatNd * buffer
Buffer to avoid writing on realtime main thread.
unsigned int fileCounter
Automatic log file naming.
std::ofstream output
Current output stream.
volatile bool running
Flag if the logger is currently recording.
void record(const MatNd *observation, const MatNd *action)