A sparse MPC solver for walking motion generation.
Classes | Macros | Variables
oruw_log.h File Reference
#include <cstdio>
#include <qi/log.hpp>
#include "nao_igm.h"
#include "smpc_solver.h"
#include "WMG.h"
#include "joints_sensors_id.h"
#include "walk_parameters.h"

Go to the source code of this file.

Classes

class  oruw_log
 

Macros

#define ORUW_LOG_ENABLE
 
#define ORUW_LOG_IS_OPEN   (oruw_log_instance != NULL)
 
#define ORUW_LOG_OPEN   oruw_log_instance = new oruw_log();
 
#define ORUW_LOG_CLOSE   if ORUW_LOG_IS_OPEN {delete oruw_log_instance; oruw_log_instance = NULL;}
 
#define ORUW_LOG_JOINTS(sensors, actuators)   if ORUW_LOG_IS_OPEN {oruw_log_instance->logJointValues(sensors,actuators);}
 
#define ORUW_LOG_COM(mpc, nao)   if ORUW_LOG_IS_OPEN {oruw_log_instance->logCoM(mpc,nao);}
 
#define ORUW_LOG_FEET(nao)   if ORUW_LOG_IS_OPEN {oruw_log_instance->logFeet(nao);}
 
#define ORUW_LOG_MESSAGE(...)   if ORUW_LOG_IS_OPEN {fprintf(oruw_log_instance->FMessages, __VA_ARGS__);}
 
#define ORUW_LOG_SOLVER_INFO   if ORUW_LOG_IS_OPEN {oruw_log_instance->logSolverInfo(solver, wp.mpc_solver_type);}
 
#define ORUW_LOG_STEPS(wmg)   if ORUW_LOG_IS_OPEN {wmg.FS2file("oru_steps_m.log", false);}
 

Variables

oruw_logoruw_log_instance
 

Detailed Description

Author
Alexander Sherikov
Date
03.01.2012 19:17:44 MSK

Definition in file oruw_log.h.

Macro Definition Documentation

◆ ORUW_LOG_CLOSE

#define ORUW_LOG_CLOSE   if ORUW_LOG_IS_OPEN {delete oruw_log_instance; oruw_log_instance = NULL;}

Definition at line 53 of file oruw_log.h.

◆ ORUW_LOG_COM

#define ORUW_LOG_COM (   mpc,
  nao 
)    if ORUW_LOG_IS_OPEN {oruw_log_instance->logCoM(mpc,nao);}

Definition at line 59 of file oruw_log.h.

◆ ORUW_LOG_ENABLE

#define ORUW_LOG_ENABLE

Enable logging.

Definition at line 14 of file oruw_log.h.

◆ ORUW_LOG_FEET

#define ORUW_LOG_FEET (   nao)    if ORUW_LOG_IS_OPEN {oruw_log_instance->logFeet(nao);}

Definition at line 62 of file oruw_log.h.

◆ ORUW_LOG_IS_OPEN

#define ORUW_LOG_IS_OPEN   (oruw_log_instance != NULL)

Definition at line 50 of file oruw_log.h.

◆ ORUW_LOG_JOINTS

#define ORUW_LOG_JOINTS (   sensors,
  actuators 
)    if ORUW_LOG_IS_OPEN {oruw_log_instance->logJointValues(sensors,actuators);}

Definition at line 56 of file oruw_log.h.

◆ ORUW_LOG_MESSAGE

#define ORUW_LOG_MESSAGE (   ...)    if ORUW_LOG_IS_OPEN {fprintf(oruw_log_instance->FMessages, __VA_ARGS__);}

Definition at line 65 of file oruw_log.h.

◆ ORUW_LOG_OPEN

#define ORUW_LOG_OPEN   oruw_log_instance = new oruw_log();

Definition at line 51 of file oruw_log.h.

◆ ORUW_LOG_SOLVER_INFO

#define ORUW_LOG_SOLVER_INFO   if ORUW_LOG_IS_OPEN {oruw_log_instance->logSolverInfo(solver, wp.mpc_solver_type);}

Definition at line 68 of file oruw_log.h.

◆ ORUW_LOG_STEPS

#define ORUW_LOG_STEPS (   wmg)    if ORUW_LOG_IS_OPEN {wmg.FS2file("oru_steps_m.log", false);}

Definition at line 71 of file oruw_log.h.

Variable Documentation

◆ oruw_log_instance

oruw_log* oruw_log_instance

Definition at line 12 of file oruw_log.cpp.