Drake
lcmLogger.cpp File Reference
#include <simstruc.h>
#include <lcm/lcm.h>
#include <string>
#include <list>
#include <inttypes.h>
#include <sys/select.h>
#include "cg_sfun.h"
Include dependency graph for lcmLogger.cpp:

Macros

#define S_FUNCTION_NAME   lcmLogger
 
#define S_FUNCTION_LEVEL   2
 
#define UNUSED(x)   (void)(x)
 
#define MDL_INITIAL_SIZES
 
#define MDL_INITIALIZE_SAMPLE_TIMES
 
#define MDL_CHECK_PARAMETERS
 
#define MDL_START
 
#define MDL_UPDATE
 
#define MDL_OUTPUTS
 

Functions

static void mdlInitializeSizes (SimStruct *S)
 
static void mdlInitializeSampleTimes (SimStruct *S)
 
static void message_handler (const lcm_recv_buf_t *rbuf, const char *channel, void *u)
 
static void mdlStart (SimStruct *S)
 
static void mdlUpdate (SimStruct *S, int_T tid)
 
static void mdlOutputs (SimStruct *S, int_T tid)
 
static void mdlTerminate (SimStruct *S)
 

Variables

static double simtime = -1.0
 
static lcm_t * lcm = NULL
 
list< LCMMessage > message_log
 

Macro Definition Documentation

#define MDL_CHECK_PARAMETERS
#define MDL_INITIAL_SIZES
#define MDL_INITIALIZE_SAMPLE_TIMES
#define MDL_OUTPUTS
#define MDL_START
#define MDL_UPDATE
#define S_FUNCTION_LEVEL   2
#define S_FUNCTION_NAME   lcmLogger
#define UNUSED (   x)    (void)(x)

Function Documentation

static void mdlInitializeSampleTimes ( SimStruct *  S)
static
static void mdlInitializeSizes ( SimStruct *  S)
static
static void mdlOutputs ( SimStruct *  S,
int_T  tid 
)
static
static void mdlStart ( SimStruct *  S)
static

Here is the call graph for this function:

static void mdlTerminate ( SimStruct *  S)
static
static void mdlUpdate ( SimStruct *  S,
int_T  tid 
)
static
static void message_handler ( const lcm_recv_buf_t *  rbuf,
const char *  channel,
void *  u 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

lcm_t* lcm = NULL
static
list<LCMMessage> message_log
double simtime = -1.0
static