Cheetah Software  1.0
Handler Class Reference

#include <rt_interface_lcm.h>

+ Collaboration diagram for Handler:

Public Member Functions

void main_control_settings_handler (const lcm::ReceiveBuffer *rbuf, const std::string &channel, const gui_main_control_settings_t *msg)
 Handler for main control settings from MATLAB interface. Never call this yourself, leave it to LCM. More...
 
void rc_channels_handler (const lcm::ReceiveBuffer *rbuf, const std::string &channel, const rc_channels_t *msg)
 

Detailed Description

Definition at line 13 of file rt_interface_lcm.h.

Member Function Documentation

void Handler::main_control_settings_handler ( const lcm::ReceiveBuffer *  rbuf,
const std::string &  channel,
const gui_main_control_settings_t *  msg 
)

Handler for main control settings from MATLAB interface. Never call this yourself, leave it to LCM.

Parameters
[in]rbufThe receive buffer
[in]channelThe name of the LCM Channel
[in]msgPointer to the LCM message

Definition at line 40 of file rt_interface_lcm.cpp.

References iterations_since_last_lcm, lcm_get_set_mutex, and main_control_settings.

42  {
43  (void)rbuf;
44  (void)channel;
45 
47  pthread_mutex_lock(&lcm_get_set_mutex);
48  main_control_settings = *msg;
49  pthread_mutex_unlock(&lcm_get_set_mutex);
50 }
static pthread_mutex_t lcm_get_set_mutex
gui_main_control_settings_t main_control_settings
int iterations_since_last_lcm

+ Here is the caller graph for this function:

void Handler::rc_channels_handler ( const lcm::ReceiveBuffer *  rbuf,
const std::string &  channel,
const rc_channels_t *  msg 
)

Definition at line 52 of file rt_interface_lcm.cpp.

References lcm_get_set_mutex, and rc_channels.

54  {
55  (void)rbuf;
56  (void)channel;
57 
58  pthread_mutex_lock(&lcm_get_set_mutex);
59  rc_channels = *msg;
60  pthread_mutex_unlock(&lcm_get_set_mutex);
61 }
rc_channels_t rc_channels
static pthread_mutex_t lcm_get_set_mutex

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files: