|
nros C API
Lightweight ROS 2 client for embedded real-time systems
|
#include <nros_generated.h>

Data Fields | |
| uint64_t | _opaque [SUBSCRIPTION_OPAQUE_U64S] |
| nros_subscription_callback_t | callback |
| void * | context |
| size_t | handle_id |
| const struct nros_node_t * | node |
| struct nros_qos_t | qos |
| nros_sched_context_id_t | sched_context_id |
| enum nros_subscription_state_t | state |
| uint8_t | topic_name [256] |
| size_t | topic_name_len |
| uint8_t | type_hash [128] |
| size_t | type_hash_len |
| uint8_t | type_name [256] |
| size_t | type_name_len |
Subscription structure.
| uint64_t nros_subscription_t::_opaque[SUBSCRIPTION_OPAQUE_U64S] |
Phase 122.3.b — inline opaque storage for the L1 polling-mode RawSubscription<MESSAGE_BUFFER_SIZE>. Zeroed in callback (L2) mode; populated by nros_subscription_init_polling.
| nros_subscription_callback_t nros_subscription_t::callback |
User callback function
| void* nros_subscription_t::context |
User context pointer
| size_t nros_subscription_t::handle_id |
Handle ID from executor registration (SIZE_MAX = not registered)
| const struct nros_node_t* nros_subscription_t::node |
Pointer to parent node
| struct nros_qos_t nros_subscription_t::qos |
QoS settings (stored during init, used by executor registration)
| nros_sched_context_id_t nros_subscription_t::sched_context_id |
Phase 189.M3 — scheduling-context slot requested via [nros_subscription_init_with_options]. 0 = inherit the executor / Node default (no explicit bind), matching the nros_node_options_t::sched_context_id convention. When non-zero, nros_executor_register_subscription binds the freshly-created handle to this SC after registration. Has no effect on the L1 polling path (no executor handle to bind).
| enum nros_subscription_state_t nros_subscription_t::state |
Current state
| uint8_t nros_subscription_t::topic_name[256] |
Topic name storage
| size_t nros_subscription_t::topic_name_len |
Topic name length
| uint8_t nros_subscription_t::type_hash[128] |
Type hash storage
| size_t nros_subscription_t::type_hash_len |
Type hash length
| uint8_t nros_subscription_t::type_name[256] |
Type name storage
| size_t nros_subscription_t::type_name_len |
Type name length