|
nros C API
Lightweight ROS 2 client for embedded real-time systems
|
#include <nros_generated.h>
Data Fields | |
| uint8_t | _pad [7] |
| bool | initialized |
| uint64_t | storage [NROS_LIFECYCLE_CTX_OPAQUE_U64S] |
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.
| uint8_t nros_lifecycle_state_machine_t::_pad[7] |
Padding for 8-byte alignment of storage.
| bool nros_lifecycle_state_machine_t::initialized |
Whether the state machine has been initialised.
| uint64_t nros_lifecycle_state_machine_t::storage[NROS_LIFECYCLE_CTX_OPAQUE_U64S] |
Opaque storage for the underlying internal state machine.