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

#include <nros_generated.h>

Data Fields

uint8_t _pad [7]
 
bool initialized
 
uint64_t storage [NROS_LIFECYCLE_CTX_OPAQUE_U64S]
 

Detailed Description

Opaque lifecycle state machine storage.

The storage field holds a [LifecyclePollingNodeCtx] placed into a u64 array to keep C-ABI struct layout predictable for C callers. Treat the struct as opaque — use [nros_lifecycle_get_state] and the nros_lifecycle_register_on_* functions to interact with it.

Field Documentation

◆ _pad

uint8_t nros_lifecycle_state_machine_t::_pad[7]

Padding for 8-byte alignment of storage.

◆ initialized

bool nros_lifecycle_state_machine_t::initialized

Whether the state machine has been initialised.

◆ storage

uint64_t nros_lifecycle_state_machine_t::storage[NROS_LIFECYCLE_CTX_OPAQUE_U64S]

Opaque storage for the underlying internal state machine.


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