Skip to content

Remove deprecated free spin_some() and spin_all() functions - #3448

Merged
fujitatomoya merged 1 commit into
rollingfrom
christophebedard/remove-free-spin-some-spin-all
Nov 28, 2026
Merged

fujitatomoya merged 1 commit into
rollingfrom
christophebedard/remove-free-spin-some-spin-all

Conversation

@christophebedard

Copy link
Copy Markdown
Member

Description

rclcpp::spin_some() and rclcpp::spin_all() have been deprecated since #2848 (Lyrical), since they create a new executor and add the node to it on every call.

Is this user-facing behavior change?

Yes: these free functions are removed. Call spin_some() or spin_all() on an executor instead, e.g., an rclcpp::executors::SingleThreadedExecutor that the node was added to.

Did you use Generative AI?

Claude Opus 5.5 to find this deprecated code and remove it.

Additional Information

`rclcpp::spin_some()` and `rclcpp::spin_all()` have been deprecated
since #2848 (Lyrical), since they
create a new executor and add the node to it on every call. Use the
methods with the same names on an executor instead.

Signed-off-by: Christophe Bedard <[email protected]>
@christophebedard christophebedard self-assigned this Nov 27, 2026
@github-actions

Copy link
Copy Markdown

ABI Compliance Check

❌ Verdict: incompatible

Library Verdict Summary
libcomponent_manager.so ✅ compatible No ABI changes detected.
librclcpp.so ❌ incompatible ABI-incompatible changes detected.
librclcpp_action.so ✅ compatible No ABI changes detected.
librclcpp_lifecycle.so ✅ compatible No ABI changes detected.
✅ libcomponent_manager.so — full abidiff report

Compared:

  • Base: lib-base/libcomponent_manager.so
  • Head: lib-pr/libcomponent_manager.so @ 765c464
(empty report — no differences printed by abidiff)
❌ librclcpp.so — full abidiff report

Compared:

  • Base: lib-base/librclcpp.so
  • Head: lib-pr/librclcpp.so @ 765c464
Functions changes summary: 4 Removed, 0 Changed, 0 Added functions
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable

4 Removed functions:

  [D] 'function void rclcpp::spin_all(const rclcpp::Node::SharedPtr&, std::chrono::nanoseconds)'    {_ZN6rclcpp8spin_allERKSt10shared_ptrINS_4NodeEENSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE}
  [D] 'function void rclcpp::spin_all(const rclcpp::node_interfaces::NodeBaseInterface::SharedPtr&, std::chrono::nanoseconds)'    {_ZN6rclcpp8spin_allERKSt10shared_ptrINS_15node_interfaces17NodeBaseInterfaceEENSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE}
  [D] 'function void rclcpp::spin_some(const rclcpp::Node::SharedPtr&)'    {_ZN6rclcpp9spin_someERKSt10shared_ptrINS_4NodeEE}
  [D] 'function void rclcpp::spin_some(const rclcpp::node_interfaces::NodeBaseInterface::SharedPtr&)'    {_ZN6rclcpp9spin_someERKSt10shared_ptrINS_15node_interfaces17NodeBaseInterfaceEE}


✅ librclcpp_action.so — full abidiff report

Compared:

  • Base: lib-base/librclcpp_action.so
  • Head: lib-pr/librclcpp_action.so @ 765c464
(empty report — no differences printed by abidiff)
✅ librclcpp_lifecycle.so — full abidiff report

Compared:

  • Base: lib-base/librclcpp_lifecycle.so
  • Head: lib-pr/librclcpp_lifecycle.so @ 765c464
(empty report — no differences printed by abidiff)

Updated for commit 765c464 · check run · suppressions: /home/runner/work/_temp/ros2-abi-suppressions.txt

@ahcorde

ahcorde commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Pulls: #3448
Gist: https://gist.githubusercontent.com/ahcorde/1d924836fd1018a0b4da3fa7b287723e/raw/1c028adf8a7e04c9ed21c4a6a231729b02ca3861/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp
TEST args: --packages-above rclcpp
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/21339

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@fujitatomoya
fujitatomoya merged commit e4e9ad1 into rolling Nov 28, 2026
10 of 11 checks passed
@christophebedard
christophebedard deleted the christophebedard/remove-free-spin-some-spin-all branch November 28, 2026 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants