Skip to content

Commit f91b3c6

Browse files
committed
Resolve conflicts
Signed-off-by: Francisco Martín Rico <fmrico@gmail.com>
2 parents 5f071bf + 6d095e9 commit f91b3c6

File tree

10 files changed

+58
-19
lines changed

10 files changed

+58
-19
lines changed

.github/workflows/humble-devel.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
fail-fast: false
1818
steps:
1919
- name: Setup ROS 2
20-
uses: ros-tooling/setup-ros@0.3.3
20+
uses: ros-tooling/setup-ros@0.7.1
2121
with:
2222
required-ros-distributions: humble
2323
- name: build and test
24-
uses: ros-tooling/action-ros-ci@0.2.5
24+
uses: ros-tooling/action-ros-ci@0.3.6
2525
with:
2626
package-name: rclcpp_cascade_lifecycle cascade_lifecycle_msgs
2727
target-ros2-distro: humble

.github/workflows/iron-devel.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: humble-devel
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- humble-devel
7+
push:
8+
branches:
9+
- humble-devel
10+
11+
jobs:
12+
build-and-test:
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
os: [ubuntu-22.04]
17+
fail-fast: false
18+
steps:
19+
- name: Setup ROS 2
20+
uses: ros-tooling/setup-ros@0.3.3
21+
with:
22+
required-ros-distributions: humble
23+
- name: build and test
24+
uses: ros-tooling/action-ros-ci@0.2.5
25+
with:
26+
package-name: rclcpp_cascade_lifecycle cascade_lifecycle_msgs
27+
target-ros2-distro: humble
28+
vcs-repo-file-url: ""
29+
colcon-mixin-name: coverage-gcc
30+
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
31+
- name: Codecov
32+
uses: codecov/codecov-action@v1.2.1
33+
with:
34+
file: ros_ws/lcov/total_coverage.info
35+
flags: unittests
36+
name: codecov-umbrella
37+
# yml: ./codecov.yml
38+
fail_ci_if_error: false

.github/workflows/rolling-devel.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
fail-fast: false
2121
steps:
2222
- name: Setup ROS 2
23-
uses: ros-tooling/setup-ros@0.4.1
23+
uses: ros-tooling/setup-ros@0.7.1
2424
with:
25-
required-ros-distributions: rolling
25+
required-ros-distributions: humble
2626
- name: build and test
27-
uses: ros-tooling/action-ros-ci@0.2.7
27+
uses: ros-tooling/action-ros-ci@0.3.6
2828
with:
2929
package-name: rclcpp_cascade_lifecycle cascade_lifecycle_msgs
3030
target-ros2-distro: rolling

.github/workflows/master.yaml renamed to .github/workflows/rolling.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: master
1+
name: rolling
22

33
on:
44
pull_request:
55
branches:
6-
- master
6+
- rolling
77
push:
88
branches:
9-
- master
9+
- rolling
1010
workflow_dispatch:
1111
schedule:
1212
- cron: '0 0 * * 0'
@@ -20,11 +20,11 @@ jobs:
2020
fail-fast: false
2121
steps:
2222
- name: Setup ROS 2
23-
uses: ros-tooling/setup-ros@0.4.1
23+
uses: ros-tooling/setup-ros@0.7.1
2424
with:
2525
required-ros-distributions: rolling
2626
- name: build and test
27-
uses: ros-tooling/action-ros-ci@0.2.7
27+
uses: ros-tooling/action-ros-ci@0.3.6
2828
with:
2929
package-name: rclcpp_cascade_lifecycle cascade_lifecycle_msgs
3030
target-ros2-distro: rolling

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# cascade_lifecycle
22

3-
[![master](https://github.com/fmrico/cascade_lifecycle/actions/workflows/master.yaml/badge.svg)](https://github.com/fmrico/cascade_lifecycle/actions/workflows/master.yaml)
3+
[![rolling](https://github.com/fmrico/cascade_lifecycle/actions/workflows/rolling.yaml/badge.svg)](https://github.com/fmrico/cascade_lifecycle/actions/workflows/rolling.yaml)
44
[![foxy-devel](https://github.com/fmrico/cascade_lifecycle/actions/workflows/foxy-devel.yaml/badge.svg)](https://github.com/fmrico/cascade_lifecycle/actions/workflows/foxy-devel.yaml)
55
[![galactic-devel](https://github.com/fmrico/cascade_lifecycle/actions/workflows/galactic-devel.yaml/badge.svg)](https://github.com/fmrico/cascade_lifecycle/actions/workflows/galactic-devel.yaml)
66
[![humble-devel](https://github.com/fmrico/cascade_lifecycle/actions/workflows/humble-devel.yaml/badge.svg)](https://github.com/fmrico/cascade_lifecycle/actions/workflows/humble-devel.yaml)
7+
[![iron-devel](https://github.com/fmrico/cascade_lifecycle/actions/workflows/iron-devel.yaml/badge.svg)](https://github.com/fmrico/cascade_lifecycle/actions/workflows/iron-devel.yaml)
78
[![rolling-devel](https://github.com/fmrico/cascade_lifecycle/actions/workflows/rolling-devel.yaml/badge.svg)](https://github.com/fmrico/cascade_lifecycle/actions/workflows/rolling-devel.yaml)
89

910
[Managed nodes](https://design.ros2.org/articles/node_lifecycle.html) (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.
1011

11-
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](https://github.com/ros-planning/navigation2/tree/master/nav2_lifecycle_manager) or in [ROS2 Planning System](https://github.com/IntelligentRoboticsLabs/ros2_planning_system/tree/master/plansys2_lifecycle_manager).
12+
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](https://github.com/ros-planning/navigation2/tree/master/nav2_lifecycle_manager) or in [ROS2 Planning System](https://github.com/IntelligentRoboticsLabs/ros2_planning_system/tree/rolling/plansys2_lifecycle).
1213

1314
`cascade_lifecycle` provides a mechanism that can make managing LNs easier. This idea is based on my developments with [BICA](https://github.com/IntelligentRoboticsLabs/BICA/tree/ros2). 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.
1415

cascade_lifecycle_msgs/CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Changelog for package cascade_lifecycle_msgs
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5-
1.0.3 (2022-12-31)
5+
2.0.0 (2024-04-04)
66
------------------
77

88
1.0.2 (2022-12-31)

cascade_lifecycle_msgs/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>cascade_lifecycle_msgs</name>
5-
<version>1.0.3</version>
5+
<version>2.0.0</version>
66

77
<description>Messages for rclcpp_cascade_lifecycle package</description>
88

rclcpp_cascade_lifecycle/CHANGELOG.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
Changelog for package rclcpp_cascade_lifecycle
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5-
1.0.3 (2022-12-31)
5+
2.0.0 (2024-04-04)
66
------------------
7-
* Update to Rolling
7+
* Fix clear_activation
88
* Contributors: Francisco Martín Rico
99

1010
1.0.2 (2022-12-31)

rclcpp_cascade_lifecycle/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>rclcpp_cascade_lifecycle</name>
5-
<version>1.0.3</version>
5+
<version>2.0.0</version>
66
<description>Provides a mechanism to make trees of lifecycle nodes to propagate state changes</description>
77
<maintainer email="fmrico@gmail.com">fmrico</maintainer>
88
<license>Apache License, Version 2.0</license>

rclcpp_cascade_lifecycle/src/rclcpp_cascade_lifecycle/rclcpp_cascade_lifecycle.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ CascadeLifecycleNode::remove_activation(const std::string & node_name)
202202
void
203203
CascadeLifecycleNode::clear_activation()
204204
{
205-
for (const auto & activation : activations_) {
206-
remove_activation(activation);
205+
while (!activations_.empty()) {
206+
remove_activation(*activations_.begin());
207207
}
208208
}
209209

0 commit comments

Comments
 (0)