1#ifndef __lightweight_comunications_h__
2#define __lightweight_comunications_h__
12#define LCM_MAX_MESSAGE_SIZE (1 << 28)
14#define LCM_MAX_CHANNEL_NAME_LENGTH 63
17#define LCM_API_FUNCTION __declspec(dllexport)
19#define LCM_API_FUNCTION
91 const char *channel,
void *user_data);
279 unsigned int datalen);
348#define LCM_MAJOR_VERSION 1
351#define LCM_MINOR_VERSION 3
354#define LCM_MICRO_VERSION 1
lcm_t * lcm_create(const char *provider)
Constructor.
void(* lcm_msg_handler_t)(const lcm_recv_buf_t *rbuf, const char *channel, void *user_data)
Callback function prototype.
Definition lcm.h:90
struct _lcm_subscription_t lcm_subscription_t
Definition lcm.h:53
lcm_subscription_t * lcm_subscribe(lcm_t *lcm, const char *channel, lcm_msg_handler_t handler, void *userdata)
Subscribe a callback function to a channel, without automatic message decoding.
int lcm_handle_timeout(lcm_t *lcm, int timeout_millis)
Wait for and dispatch the next incoming message, up to a time limit.
void lcm_destroy(lcm_t *lcm)
Destructor.
int lcm_get_fileno(lcm_t *lcm)
Returns a file descriptor or socket that can be used with select(), poll(), or other event loops for ...
int lcm_subscription_set_queue_capacity(lcm_subscription_t *handler, int num_messages)
Adjusts the maximum number of received messages that can be queued up for a subscription.
int lcm_unsubscribe(lcm_t *lcm, lcm_subscription_t *handler)
Unsubscribe a message handler.
int lcm_handle(lcm_t *lcm)
Wait for and dispatch the next incoming message.
struct _lcm_t lcm_t
Definition lcm.h:48
int lcm_publish(lcm_t *lcm, const char *channel, const void *data, unsigned int datalen)
Publish a message, specified as a raw byte buffer.
int64_t recv_utime
Definition lcm.h:74
lcm_t * lcm
Definition lcm.h:78
uint32_t data_size
Definition lcm.h:69
void * data
Definition lcm.h:65