Expand description
Lifecycle state machine types (REP-2002)
Provides the core types for ROS 2 lifecycle node management:
LifecycleState— the five lifecycle statesLifecycleTransition— transitions between statesTransitionResult— callback return values
These types are shared between the Rust and C APIs. All enums use
#[repr(u8)] for C interop.
Enums§
- Lifecycle
State - Lifecycle state (REP-2002)
- Lifecycle
Transition - Lifecycle transition (REP-2002)
- Transition
Result - 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.