aboutsummaryrefslogtreecommitdiffstats
path: root/lcmtype/robot_control_t.h
diff options
context:
space:
mode:
Diffstat (limited to 'lcmtype/robot_control_t.h')
-rw-r--r--lcmtype/robot_control_t.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/lcmtype/robot_control_t.h b/lcmtype/robot_control_t.h
new file mode 100644
index 0000000..d28de92
--- /dev/null
+++ b/lcmtype/robot_control_t.h
@@ -0,0 +1,76 @@
1/** THIS IS AN AUTOMATICALLY GENERATED FILE. DO NOT MODIFY
2 * BY HAND!!
3 *
4 * Generated by lcm-gen
5 **/
6
7#include "lcmtype.h"
8#include <stdint.h>
9#include <stdlib.h>
10
11#ifndef _robot_control_t_h
12#define _robot_control_t_h
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18typedef struct _robot_control_t robot_control_t;
19struct _robot_control_t {
20 int64_t utime;
21 int8_t commandid;
22 int8_t robotid;
23 int8_t ndparams;
24 double *dparams;
25 int8_t niparams;
26 int8_t *iparams;
27 int8_t nsparams;
28 char **sparams;
29 int64_t nbparams;
30 uint8_t *bparams;
31};
32
33robot_control_t *robot_control_t_copy(const robot_control_t *p);
34void robot_control_t_destroy(robot_control_t *p);
35
36typedef struct _robot_control_t_subscription_t robot_control_t_subscription_t;
37typedef void (*robot_control_t_handler_t)(const lcm_recv_buf_t *rbuf,
38 const char *channel,
39 const robot_control_t *msg,
40 void *user);
41
42int robot_control_t_publish(lcm_t *lcm, const char *channel,
43 const robot_control_t *p);
44robot_control_t_subscription_t *
45robot_control_t_subscribe(lcm_t *lcm, const char *channel,
46 robot_control_t_handler_t f, void *userdata);
47int robot_control_t_unsubscribe(lcm_t *lcm,
48 robot_control_t_subscription_t *hid);
49int robot_control_t_subscription_set_queue_capacity(
50 robot_control_t_subscription_t *subs, int num_messages);
51
52int robot_control_t_encode(void *buf, int offset, int maxlen,
53 const robot_control_t *p);
54int robot_control_t_decode(const void *buf, int offset, int maxlen,
55 robot_control_t *p);
56int robot_control_t_decode_cleanup(robot_control_t *p);
57int robot_control_t_encoded_size(const robot_control_t *p);
58
59// LCM support functions. Users should not call these
60int64_t __robot_control_t_get_hash(void);
61int64_t __robot_control_t_hash_recursive(const __lcm_hash_ptr *p);
62int __robot_control_t_encode_array(void *buf, int offset, int maxlen,
63 const robot_control_t *p, int elements);
64int __robot_control_t_decode_array(const void *buf, int offset, int maxlen,
65 robot_control_t *p, int elements);
66int __robot_control_t_decode_array_cleanup(robot_control_t *p, int elements);
67int __robot_control_t_encoded_array_size(const robot_control_t *p,
68 int elements);
69int __robot_control_t_clone_array(const robot_control_t *p, robot_control_t *q,
70 int elements);
71
72#ifdef __cplusplus
73}
74#endif
75
76#endif