Skip to content

Allow action servers without execute callback (backport #1219)#1557

Merged
ahcorde merged 2 commits intokiltedfrom
mergify/bp/kilted/pr-1219
Dec 8, 2025
Merged

Allow action servers without execute callback (backport #1219)#1557
ahcorde merged 2 commits intokiltedfrom
mergify/bp/kilted/pr-1219

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Dec 5, 2025

Just like rclcpp and ros1, allow action servers without execute callback.

Example like:

  • Display a message until a button is pressed
  • Actuate a motor until an endstop is reached

are typical cases where an action is succeeded based on information outside of the execute_cb.

It makes more sense to succeed these from outside the execute_cb in this case. And this would be in line with ros1 and rclcpp where this is possible.

I kept the execute_callback in args for backwards compatibility.


This is an automatic backport of pull request #1219 done by Mergify.

Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl>
(cherry picked from commit c170282)
@ahcorde
Copy link
Copy Markdown
Contributor

ahcorde commented Dec 5, 2025

Pulls: #1557
Gist: https://gist.githubusercontent.com/ahcorde/3f05d00100430a7a38d84ef2a8485641/raw/4e9c387d87131959d9dfcceed9e37a1d9973602d/ros2.repos
BUILD args: --packages-above-and-dependencies rclpy
TEST args: --packages-above rclpy
ROS Distro: kilted
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/17687

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

@fujitatomoya
Copy link
Copy Markdown
Collaborator

@Timple can you check the CI failures? it seems related to PR.

Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl>
@ahcorde
Copy link
Copy Markdown
Contributor

ahcorde commented Dec 8, 2025

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

@ahcorde ahcorde merged commit 5b0052d into kilted Dec 8, 2025
3 checks passed
@ahcorde ahcorde deleted the mergify/bp/kilted/pr-1219 branch December 8, 2025 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants