diff --git a/.github/workflows/humble-devel.yaml b/.github/workflows/humble-devel.yaml index 3984251..35ed625 100644 --- a/.github/workflows/humble-devel.yaml +++ b/.github/workflows/humble-devel.yaml @@ -17,11 +17,11 @@ jobs: fail-fast: false steps: - name: Setup ROS 2 - uses: ros-tooling/setup-ros@0.3.3 + uses: ros-tooling/setup-ros@0.7.1 with: required-ros-distributions: humble - name: build and test - uses: ros-tooling/action-ros-ci@0.2.5 + uses: ros-tooling/action-ros-ci@0.3.6 with: package-name: rclcpp_cascade_lifecycle cascade_lifecycle_msgs target-ros2-distro: humble diff --git a/.github/workflows/rolling-devel.yaml b/.github/workflows/rolling-devel.yaml index b9abe3f..1de46da 100644 --- a/.github/workflows/rolling-devel.yaml +++ b/.github/workflows/rolling-devel.yaml @@ -20,11 +20,11 @@ jobs: fail-fast: false steps: - name: Setup ROS 2 - uses: ros-tooling/setup-ros@0.4.1 + uses: ros-tooling/setup-ros@0.7.1 with: - required-ros-distributions: rolling + required-ros-distributions: humble - name: build and test - uses: ros-tooling/action-ros-ci@0.2.7 + uses: ros-tooling/action-ros-ci@0.3.6 with: package-name: rclcpp_cascade_lifecycle cascade_lifecycle_msgs target-ros2-distro: rolling diff --git a/.github/workflows/rolling.yaml b/.github/workflows/rolling.yaml index abf2ae2..7b2811c 100644 --- a/.github/workflows/rolling.yaml +++ b/.github/workflows/rolling.yaml @@ -20,11 +20,11 @@ jobs: fail-fast: false steps: - name: Setup ROS 2 - uses: ros-tooling/setup-ros@0.4.1 + uses: ros-tooling/setup-ros@0.7.1 with: required-ros-distributions: rolling - name: build and test - uses: ros-tooling/action-ros-ci@0.2.7 + uses: ros-tooling/action-ros-ci@0.3.6 with: package-name: rclcpp_cascade_lifecycle cascade_lifecycle_msgs target-ros2-distro: rolling diff --git a/rclcpp_cascade_lifecycle/src/rclcpp_cascade_lifecycle/rclcpp_cascade_lifecycle.cpp b/rclcpp_cascade_lifecycle/src/rclcpp_cascade_lifecycle/rclcpp_cascade_lifecycle.cpp index e34b6e8..aa7154b 100644 --- a/rclcpp_cascade_lifecycle/src/rclcpp_cascade_lifecycle/rclcpp_cascade_lifecycle.cpp +++ b/rclcpp_cascade_lifecycle/src/rclcpp_cascade_lifecycle/rclcpp_cascade_lifecycle.cpp @@ -202,8 +202,8 @@ CascadeLifecycleNode::remove_activation(const std::string & node_name) void CascadeLifecycleNode::clear_activation() { - for (const auto & activation : activations_) { - remove_activation(activation); + while (!activations_.empty()) { + remove_activation(*activations_.begin()); } }