-
Notifications
You must be signed in to change notification settings - Fork 625
Check rclcpp::ok before sleeping for clean shutdown #3484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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>
Calling rate.sleep() on shutdown will crash (cherry picked from commit f4cf780) # Conflicts: # moveit_ros/planning/planning_scene_monitor/src/planning_scene_monitor.cpp
Calling rate.sleep() on shutdown will crash (cherry picked from commit f4cf780)
PSM: finish thread on rclcpp::shutdown (moveit#3484) (moveit#3486)
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