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

#include <nros_generated.h>

Data Fields

void * executor_ptr
 
ActionServerRawHandle handle
 

Detailed Description

The arena handle, filled in by executor registration.

handle was Option<ActionServerRawHandle> previously; now it is always present, with the sentinel INVALID_ENTRY_INDEX indicating "not registered yet". Use is_handle_set() to check.

phase-487 W4 — this used to carry a SECOND copy of the server's callback record (c_goal_callback, c_cancel_callback, c_accepted_callback, c_context) plus a server_ptr back to the struct that contains it, so the trampolines could take &_internal as their context. The trampolines take the server itself now and read the one record it already has.

Field Documentation

◆ executor_ptr

void* ActionServerInternal::executor_ptr

Pointer to the internal executor (CExecutor).

◆ handle

ActionServerRawHandle ActionServerInternal::handle

Handle returned by executor registration. entry_index == INVALID_ENTRY_INDEX until registration completes.


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