Software
cascade_lifecycle
From github.com/fmrico/cascade_lifecycle (opens in a new tab)
- Middleware
- Library
- Apache-2.0
A ROS 2 library that lets lifecycle nodes depend on one another, so a transition on one node is automatically applied to its dependents.
Facts
- GitHub stars
- 81read on 27 Nov 2026
- Last update
- 21 Oct 2026Newest commit on rolling-devel
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Intermediate
Checked on GitHub on 27 Nov 2026.
Licenses
- Code
- Apache-2.0 (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit 16b3733 (opens in a new tab), on 24 Oct 2026.
- Commercial use
- Yes
At a glance
- What it is
- Extends the rclcpp LifecycleNode API with CascadeLifecycleNode, which adds add_activation, remove_activation and clear_activation methods.
- When a node enters a state, the nodes it lists as dependencies automatically enter the same state.
- Makes it possible to build configuration, activation and deactivation trees across multiple lifecycle nodes.
- Includes an example where node_B follows the same configure transitions as node_A, shown with an events executor.
- Inspired by the author's earlier work on BICA and aimed at simplifying orchestration patterns used in Navigation2 and PlanSys2.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- Apache-2.0. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Active, last commit on 21 Oct 2026.
Use it
How to install it, in the creator's words: The project's README (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/fmrico/cascade_lifecycle (opens in a new tab)
- The version Robotheca read16b3733 (opens in a new tab)
- Latest releaseNone published on GitHub
Robotheca read the repository at two versions: the summary at 67a5475 and the facts and the README at 16b3733 (read on 27 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by @fmrico, at commit 16b3733, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
cascade_lifecycle
(opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab)
Managed nodes (opens in a new tab) (or lifecycle nodes, LN) are an extremely useful concept in ROS2. It provides a mechanism to define states in a node so that its life cycle can be better controlled.
When an application is made up of multiple LNs, it is common to use a node to orchestrate the transitions of each one. This occurs, for example, in Navigation2 (opens in a new tab) or in ROS2 Planning System (opens in a new tab).
cascade_lifecycle provides a mechanism that can make managing LNs easier. This idea is based on my developments with BICA (opens in a new tab). This mechanism allows defining dependencies between LNs. When an LN A establishes an LN B as a dependency, when an A enters a state, B automatically enters this state. This allows creating configuration/activation/deactivation trees.
The class rclcpp_cascade_lifecycle::CascadeLifecycleNode extends the rclcpp_lifecycle::LifecycleNode API with next operations:
void add_activation (const std::string & node_name);
void remove_activation (const std::string & node_name);
void clear_activation ();
Using rclcpp_cascade_lifecycle in the next example, node_b makes the same state transitions as node_a:
auto node_a = std::make_shared<rclcpp_cascade_lifecycle::CascadeLifecycleNode>("node_A");
auto node_b = std::make_shared<rclcpp_cascade_lifecycle::CascadeLifecycleNode>("node_B");
rclcpp::executors::SingleThreadedExecutor executor;
executor.add_node(node_a->get_node_base_interface());
executor.add_node(node_b->get_node_base_interface());
node_a->add_activation("node_B");
node_a->trigger_transition(lifecycle_msgs::msg::Transition::TRANSITION_CONFIGURE);
{
rclcpp::Rate rate(10);
auto start = node_a->now();
while ((node_a->now() - start).seconds() < 0.5) {
executor.spin_some();
rate.sleep();
}
}
ASSERT_EQ(node_a->get_current_state().id(), lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE);
ASSERT_EQ(node_b->get_current_state().id(), lifecycle_msgs::msg::State::PRIMARY_STATE_INACTIVE);
Hope it helps!!!
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.