diff options
Diffstat (limited to 'lcmtype/pose_t.h')
-rw-r--r-- | lcmtype/pose_t.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/lcmtype/pose_t.h b/lcmtype/pose_t.h new file mode 100644 index 0000000..621cd5c --- /dev/null +++ b/lcmtype/pose_t.h | |||
@@ -0,0 +1,63 @@ | |||
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 _pose_t_h | ||
12 | #define _pose_t_h | ||
13 | |||
14 | #ifdef __cplusplus | ||
15 | extern "C" { | ||
16 | #endif | ||
17 | |||
18 | typedef struct _pose_t pose_t; | ||
19 | struct _pose_t { | ||
20 | int64_t utime; | ||
21 | double pos[3]; | ||
22 | double vel[3]; | ||
23 | double orientation[4]; | ||
24 | double rotation_rate[3]; | ||
25 | double accel[3]; | ||
26 | }; | ||
27 | |||
28 | pose_t *pose_t_copy(const pose_t *p); | ||
29 | void pose_t_destroy(pose_t *p); | ||
30 | |||
31 | typedef struct _pose_t_subscription_t pose_t_subscription_t; | ||
32 | typedef void (*pose_t_handler_t)(const lcm_recv_buf_t *rbuf, | ||
33 | const char *channel, const pose_t *msg, | ||
34 | void *user); | ||
35 | |||
36 | int pose_t_publish(lcm_t *lcm, const char *channel, const pose_t *p); | ||
37 | pose_t_subscription_t *pose_t_subscribe(lcm_t *lcm, const char *channel, | ||
38 | pose_t_handler_t f, void *userdata); | ||
39 | int pose_t_unsubscribe(lcm_t *lcm, pose_t_subscription_t *hid); | ||
40 | int pose_t_subscription_set_queue_capacity(pose_t_subscription_t *subs, | ||
41 | int num_messages); | ||
42 | |||
43 | int pose_t_encode(void *buf, int offset, int maxlen, const pose_t *p); | ||
44 | int pose_t_decode(const void *buf, int offset, int maxlen, pose_t *p); | ||
45 | int pose_t_decode_cleanup(pose_t *p); | ||
46 | int pose_t_encoded_size(const pose_t *p); | ||
47 | |||
48 | // LCM support functions. Users should not call these | ||
49 | int64_t __pose_t_get_hash(void); | ||
50 | int64_t __pose_t_hash_recursive(const __lcm_hash_ptr *p); | ||
51 | int __pose_t_encode_array(void *buf, int offset, int maxlen, const pose_t *p, | ||
52 | int elements); | ||
53 | int __pose_t_decode_array(const void *buf, int offset, int maxlen, pose_t *p, | ||
54 | int elements); | ||
55 | int __pose_t_decode_array_cleanup(pose_t *p, int elements); | ||
56 | int __pose_t_encoded_array_size(const pose_t *p, int elements); | ||
57 | int __pose_t_clone_array(const pose_t *p, pose_t *q, int elements); | ||
58 | |||
59 | #ifdef __cplusplus | ||
60 | } | ||
61 | #endif | ||
62 | |||
63 | #endif | ||