|
nros C API
Lightweight ROS 2 client for embedded real-time systems
|
#include <nros_generated.h>
Data Fields | |
| uint8_t | _reserved [3] |
| nros_sched_context_id_t | sched_context |
Phase 189.M3.3.a — rclc-style named service options.
Sits ALONGSIDE the QoS profile (same convention as nros_subscription_options_t): QoS is passed separately, this struct carries the non-QoS service-creation axes. Plain scalar fields only — safe to stack-allocate, memcpy, and pass across the FFI. Zero-init selects the default behaviour, identical to nros_service_init_with_qos.
| uint8_t nros_service_options_t::_reserved[3] |
Reserved for future use; must be zero. Pads the struct for ABI stability.
| nros_sched_context_id_t nros_service_options_t::sched_context |
Scheduling-context slot to bind the service's executor handle to. 0 = inherit the executor / Node default (no explicit bind). A non-zero value must be an id previously returned from nros_executor_create_sched_context; the bind is applied by nros_executor_register_service once the handle exists. No effect on the L1 polling path.