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

Data Fields | |
| uint64_t | _opaque [SERVICE_SERVER_OPAQUE_U64S] |
| struct rclc_node_ref_t | node |
| enum rclc_service_state_t | state |
A service server the CALLER drains, with no executor (phase-487 W2).
The C counterpart of C++'s nros::PollService<S>. Nothing dispatches it, so it has no arena slot: _opaque holds a RawServiceServer from rclc_polling_service_init until rclc_polling_service_fini. Zero-initialised is UNINITIALIZED. Until phase-487 it was the NROS_SERVICE_STATE_POLLING state of rcl_service_t, which made every dispatched server carry this storage unused.
| uint64_t rclc_polling_service_t::_opaque[SERVICE_SERVER_OPAQUE_U64S] |
Inline storage for the RawServiceServer. Internal: treat as opaque.
| struct rclc_node_ref_t rclc_polling_service_t::node |
The node the server was created on.
| enum rclc_service_state_t rclc_polling_service_t::state |
Current state: UNINITIALIZED, INITIALIZED (server live) or SHUTDOWN.