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

#include <nros_generated.h>

Collaboration diagram for nros_client_t:
Collaboration graph
[legend]

Data Fields

struct ServiceClientInternal _internal
 
uint64_t _opaque [SERVICE_CLIENT_OPAQUE_U64S]
 
void * context
 
const struct nros_node_tnode
 
struct nros_qos_t qos
 
nros_response_callback_t response_callback
 
nros_sched_context_id_t sched_context_id
 
uint8_t service_name [256]
 
size_t service_name_len
 
enum nros_client_state_t state
 
uint8_t type_hash [128]
 
size_t type_hash_len
 
uint8_t type_name [256]
 
size_t type_name_len
 

Detailed Description

Service client structure.

Field Documentation

◆ _internal

struct ServiceClientInternal nros_client_t::_internal

Internal state (arena entry index + executor pointer + timeout). Typed C-ABI handle field.

◆ _opaque

uint64_t nros_client_t::_opaque[SERVICE_CLIENT_OPAQUE_U64S]

Phase 122.3.c.5 — inline opaque storage for the L1 polling-mode RawServiceClient<MESSAGE_BUFFER_SIZE, MESSAGE_BUFFER_SIZE>. Zeroed in L2 (callback + executor arena) mode; populated by nros_client_init_polling.

◆ context

void* nros_client_t::context

User context pointer passed to response_callback.

◆ node

const struct nros_node_t* nros_client_t::node

Pointer to parent node

◆ qos

struct nros_qos_t nros_client_t::qos

Phase 193.4b — service-client QoS (applied to both request + reply endpoints). Defaults to the services profile (RELIABLE+VOLATILE+KEEP_LAST(10)); set via nros_client_init_with_qos.

◆ response_callback

nros_response_callback_t nros_client_t::response_callback

User response callback, fired from nros_executor_spin_some when a response to a previously-sent async request arrives.

◆ sched_context_id

nros_sched_context_id_t nros_client_t::sched_context_id

Phase 189.M3.3.a — scheduling-context slot to bind the client's executor handle to. 0 = inherit the executor / Node default; set via nros_client_init_with_options. When non-zero, nros_executor_register_client binds the freshly-created handle to this SC after registration. No effect on the L1 polling path.

◆ service_name

uint8_t nros_client_t::service_name[256]

Service name storage

◆ service_name_len

size_t nros_client_t::service_name_len

Service name length

◆ state

enum nros_client_state_t nros_client_t::state

Current state

◆ type_hash

uint8_t nros_client_t::type_hash[128]

Type hash storage

◆ type_hash_len

size_t nros_client_t::type_hash_len

Type hash length

◆ type_name

uint8_t nros_client_t::type_name[256]

Type name storage

◆ type_name_len

size_t nros_client_t::type_name_len

Type name length


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