14 #define ORUW_LOG_ENABLE 17 #ifdef ORUW_LOG_ENABLE 22 #include "smpc_solver.h" 24 #include "joints_sensors_id.h" 35 void logCoM (smpc_parameters&, nao_igm&);
50 #define ORUW_LOG_IS_OPEN (oruw_log_instance != NULL) 51 #define ORUW_LOG_OPEN oruw_log_instance = new oruw_log(); 53 #define ORUW_LOG_CLOSE \ 54 if ORUW_LOG_IS_OPEN {delete oruw_log_instance; oruw_log_instance = NULL;} 56 #define ORUW_LOG_JOINTS(sensors,actuators) \ 57 if ORUW_LOG_IS_OPEN {oruw_log_instance->logJointValues(sensors,actuators);} 59 #define ORUW_LOG_COM(mpc,nao) \ 60 if ORUW_LOG_IS_OPEN {oruw_log_instance->logCoM(mpc,nao);} 62 #define ORUW_LOG_FEET(nao) \ 63 if ORUW_LOG_IS_OPEN {oruw_log_instance->logFeet(nao);} 65 #define ORUW_LOG_MESSAGE(...) \ 66 if ORUW_LOG_IS_OPEN {fprintf(oruw_log_instance->FMessages, __VA_ARGS__);} 68 #define ORUW_LOG_SOLVER_INFO \ 69 if ORUW_LOG_IS_OPEN {oruw_log_instance->logSolverInfo(solver, wp.mpc_solver_type);} 71 #define ORUW_LOG_STEPS(wmg) \ 72 if ORUW_LOG_IS_OPEN {wmg.FS2file("oru_steps_m.log", false);} 75 #else // ORUW_LOG_ENABLE 79 #define ORUW_LOG_CLOSE 80 #define ORUW_LOG_JOINTS(sensors,actuators) 81 #define ORUW_LOG_COM(mpc,nao) 82 #define ORUW_LOG_FEET(nao) 83 #define ORUW_LOG_MESSAGE(...) 84 #define ORUW_LOG_STEPS(wmg) 85 #define ORUW_LOG_SOLVER_INFO 88 #endif // ORUW_LOG_ENABLE
void logJointValues(const jointState &, const jointState &)
oruw_log * oruw_log_instance
void logCoM(smpc_parameters &, nao_igm &)
void logSolverInfo(smpc::solver *, int)
void logFeet(nao_igm &nao)