-
Notifications
You must be signed in to change notification settings - Fork 312
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
Fix: on_shutdown callback of controllers never get executed #1995
Fix: on_shutdown callback of controllers never get executed #1995
Conversation
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.
@Wiktor-99 Looks good. Better not to add a new method only for this, just change it within the unload_controller method itself.
Can you add some tests?
Thank you
@saikishor Why method shouldn't be added? Currently the About the test I see that some of them are failing, so fixing them will also cover new code. |
@Wiktor-99 Sounds fair. Let's leave it like that. |
Thank you |
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.
I think it is missing a parenthesis
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1995 +/- ##
==========================================
- Coverage 89.32% 89.27% -0.05%
==========================================
Files 130 130
Lines 14522 14533 +11
Branches 1258 1257 -1
==========================================
+ Hits 12972 12975 +3
- Misses 1083 1092 +9
+ Partials 467 466 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
controller_manager/include/controller_manager/controller_manager.hpp
Outdated
Show resolved
Hide resolved
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.
LGTM
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.
LGTM
@bmagyar should we backport this to humble? The current behavior is wrong, but it might crash (badly configured) systems. |
As discussed with @christophfroehlich, I added a shutdown call instead of calling cleanup.