nros C API
Lightweight ROS 2 client for embedded real-time systems
Loading...
Searching...
No Matches
Files
executor

Callback dispatch, timers, and guard conditions. More...

Files

file  executor.h
 Callback executor (polling) API.
 
file  guard_condition.h
 Manual wake-up trigger API.
 
file  timer.h
 Periodic timer API.
 

Detailed Description

Callback dispatch, timers, and guard conditions.

nros_executor_t polls the transport, drains ready data from subscriptions/services/clients/actions, and invokes their registered callbacks. nros_timer_t fires on a wall-clock period; nros_guard_condition_t is an explicit wake source you can trigger from any thread.

nros_executor_init(&exec, &support, 4);
nros_executor_add_subscription(&exec, &sub);
nros_executor_spin_period(&exec, 10000000ULL);
nros_ret_t nros_executor_init(struct nros_executor_t *executor, const struct nros_support_t *support, size_t max_handles)
struct nros_executor_t nros_executor_get_zero_initialized(void)
nros_ret_t nros_executor_spin_period(struct nros_executor_t *executor, uint64_t period_ns)
Definition nros_generated.h:972
See also
pubsub for callback-driven subscriptions
service for callback-driven service servers
action for callback-driven action servers