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

Data Fields | |
| struct ServiceServerInternal | _internal |
| uint64_t | _opaque [SERVICE_SERVER_OPAQUE_U64S] |
| nros_service_callback_t | callback |
| void * | context |
| const struct nros_node_t * | node |
| struct nros_qos_t | qos |
| nros_sched_context_id_t | sched_context_id |
| uint8_t | service_name [256] |
| size_t | service_name_len |
| enum nros_service_state_t | state |
| uint8_t | type_hash [128] |
| size_t | type_hash_len |
| uint8_t | type_name [256] |
| size_t | type_name_len |
Service server structure.
| struct ServiceServerInternal nros_service_t::_internal |
Internal state (arena entry index + executor pointer). Phase 87.5: Typed C-ABI handle field (was an opaque blob in earlier versions).
| uint64_t nros_service_t::_opaque[SERVICE_SERVER_OPAQUE_U64S] |
Phase 122.3.c.4 — inline opaque storage for the L1 polling-mode RawServiceServer<MESSAGE_BUFFER_SIZE, MESSAGE_BUFFER_SIZE>. Zeroed in L2 (callback + executor arena) mode; populated by nros_service_init_polling.
| nros_service_callback_t nros_service_t::callback |
User callback function
| void* nros_service_t::context |
User context pointer
| const struct nros_node_t* nros_service_t::node |
Pointer to parent node
| struct nros_qos_t nros_service_t::qos |
Phase 193.4 — service QoS (applied to both request + reply endpoints). Defaults to the services profile (RELIABLE+VOLATILE+KEEP_LAST(10)); set via nros_service_init_with_qos.
| nros_sched_context_id_t nros_service_t::sched_context_id |
Phase 189.M3.3.a — scheduling-context slot to bind the service's executor handle to. 0 = inherit the executor / Node default (no explicit bind); set via nros_service_init_with_options. When non-zero, nros_executor_register_service binds the freshly-created handle to this SC after registration. No effect on the L1 polling path.
| uint8_t nros_service_t::service_name[256] |
Service name storage
| size_t nros_service_t::service_name_len |
Service name length
| enum nros_service_state_t nros_service_t::state |
Current state
| uint8_t nros_service_t::type_hash[128] |
Type hash storage
| size_t nros_service_t::type_hash_len |
Type hash length
| uint8_t nros_service_t::type_name[256] |
Type name storage
| size_t nros_service_t::type_name_len |
Type name length