Skip to main content

Module lifecycle

Module lifecycle 

Source
Expand description

Lifecycle state machine types (REP-2002)

Provides the core types for ROS 2 lifecycle node management:

These types are shared between the Rust and C APIs. All enums use #[repr(u8)] for C interop.

Enums§

LifecycleState
Lifecycle state (REP-2002)
LifecycleTransition
Lifecycle transition (REP-2002)
TransitionResult
Result of a lifecycle transition callback.

Functions§

apply_transition
Apply a transition given the callback result.
can_transition
Check whether a transition is valid from the given state.