nros C API
Lightweight ROS 2 client for embedded real-time systems
Loading...
Searching...
No Matches
Data Fields
rclc_polling_service_t Struct Reference

#include <nros_generated.h>

Collaboration diagram for rclc_polling_service_t:
Collaboration graph
[legend]

Data Fields

uint64_t _opaque [SERVICE_SERVER_OPAQUE_U64S]
 
struct rclc_node_ref_t node
 
enum rclc_service_state_t state
 

Detailed Description

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.

Field Documentation

◆ _opaque

uint64_t rclc_polling_service_t::_opaque[SERVICE_SERVER_OPAQUE_U64S]

Inline storage for the RawServiceServer. Internal: treat as opaque.

◆ node

struct rclc_node_ref_t rclc_polling_service_t::node

The node the server was created on.

◆ state

enum rclc_service_state_t rclc_polling_service_t::state

Current state: UNINITIALIZED, INITIALIZED (server live) or SHUTDOWN.


The documentation for this struct was generated from the following file: