Check rclcpp::ok before sleeping for clean shutdown#3484
Merged
rhaschke merged 2 commits intomoveit:mainfrom May 28, 2025
Merged
Check rclcpp::ok before sleeping for clean shutdown#3484rhaschke merged 2 commits intomoveit:mainfrom
rhaschke merged 2 commits intomoveit:mainfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3484 +/- ##
==========================================
+ Coverage 45.84% 46.24% +0.40%
==========================================
Files 718 718
Lines 62668 62690 +22
Branches 7587 7589 +2
==========================================
+ Hits 28727 28985 +258
+ Misses 33774 33538 -236
Partials 167 167 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
rhaschke
reviewed
May 28, 2025
Contributor
rhaschke
left a comment
There was a problem hiding this comment.
Is this a new issue, i.e. a regression in rclcpp? If so, that should be reported upstream.
moveit_ros/planning/planning_scene_monitor/src/planning_scene_monitor.cpp
Outdated
Show resolved
Hide resolved
…monitor.cpp Co-authored-by: Robert Haschke <rhaschke@users.noreply.github.com>
rhaschke
approved these changes
May 28, 2025
mergify bot
pushed a commit
that referenced
this pull request
May 28, 2025
Calling rate.sleep() on shutdown will crash (cherry picked from commit f4cf780) # Conflicts: # moveit_ros/planning/planning_scene_monitor/src/planning_scene_monitor.cpp
6 tasks
mergify bot
pushed a commit
that referenced
this pull request
May 28, 2025
Calling rate.sleep() on shutdown will crash (cherry picked from commit f4cf780)
6 tasks
MarqRazz
pushed a commit
that referenced
this pull request
May 28, 2025
valmikikothare
added a commit
to valmikikothare/moveit2
that referenced
this pull request
May 28, 2025
PSM: finish thread on rclcpp::shutdown (moveit#3484) (moveit#3486)
MarqRazz
pushed a commit
that referenced
this pull request
May 29, 2025
Markus-Simonsen
pushed a commit
to Markus-Simonsen/moveit2
that referenced
this pull request
Aug 12, 2025
Calling rate.sleep() on shutdown will crash
helen9975
pushed a commit
to personalrobotics/moveit2
that referenced
this pull request
Feb 17, 2026
Calling rate.sleep() on shutdown will crash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
In MTC PR#684 I found move_group fails to shut down cleanly when preempting motion. This is because we are asking the node to sleep when the stack has been requested to shut down. To fix this I added a simple guard to make sure
rclcpp::ok()before sleeping.Here is a snippet of the stack trace when shutting down.
Checklist