42 #include <sys/types.h> 62 #define ORB_MULTI_MAX_INSTANCES 4 // This must be < 10 (because it's the last char of the node path) 87 #define ORB_ID(_name) &__orb_##_name 94 #if defined(__cplusplus) 95 # define ORB_DECLARE(_name) extern "C" const struct orb_metadata __orb_##_name __EXPORT 97 # define ORB_DECLARE(_name) extern const struct orb_metadata __orb_##_name __EXPORT 114 #define ORB_DEFINE(_name, _struct, _size_no_padding, _fields) \ 115 const struct orb_metadata __orb_##_name = { \ 157 int priority,
unsigned int queue_size)
__EXPORT;
256 #define ORB_ID_VEHICLE_ATTITUDE_CONTROLS ORB_ID(actuator_controls_0)
int orb_subscribe(const struct orb_metadata *meta) __EXPORT
orb_advert_t orb_advertise_multi(const struct orb_metadata *meta, const void *data, int *instance, int priority) __EXPORT
orb_advert_t orb_advertise_multi_queue(const struct orb_metadata *meta, const void *data, int *instance, int priority, unsigned int queue_size) __EXPORT
int orb_exists(const struct orb_metadata *meta, int instance) __EXPORT
int orb_priority(int handle, int32_t *priority) __EXPORT
uint8_t navigation_state_t
int orb_set_interval(int handle, unsigned interval) __EXPORT
__BEGIN_DECLS typedef void * orb_advert_t
ORB topic advertiser handle.
int orb_get_interval(int handle, unsigned *interval) __EXPORT
orb_advert_t orb_advertise_queue(const struct orb_metadata *meta, const void *data, unsigned int queue_size) __EXPORT
int orb_publish(const struct orb_metadata *meta, orb_advert_t handle, const void *data) __EXPORT
int orb_check(int handle, bool *updated) __EXPORT
const struct orb_metadata * orb_id_t
int orb_stat(int handle, uint64_t *time) __EXPORT
int orb_unadvertise(orb_advert_t handle) __EXPORT
int orb_unsubscribe(int handle) __EXPORT
int orb_group_count(const struct orb_metadata *meta) __EXPORT
Get the number of published instances of a topic group.
int orb_subscribe_multi(const struct orb_metadata *meta, unsigned instance) __EXPORT
int orb_copy(const struct orb_metadata *meta, int handle, void *buffer) __EXPORT
orb_advert_t orb_advertise(const struct orb_metadata *meta, const void *data) __EXPORT
static int orb_publish_auto(const struct orb_metadata *meta, orb_advert_t *handle, const void *data, int *instance, int priority)
Advertise as the publisher of a topic.