52 std::ofstream tgOutput;
53 tgOutput.open(m_fileName.c_str(), std::ios::app);
55 tgOutput << time <<
",";
65 tgOutput << subject.getCPGValue(i) <<
",";
68 catch (std::invalid_argument e)
71 tgOutput << std::endl;
tgCPGLogger(std::string fileName)
virtual void onStep(BaseSpineCPGControl &subject, double dt)
A controller for the template class BaseSpineModelLearning.
Contains the definition of interface class tgCPGLogger.