Fix severe warning from class loader in servo#3577
Conversation
| // Plugin loader | ||
| std::unique_ptr<pluginlib::ClassLoader<online_signal_smoothing::SmoothingBaseClass>> smoother_loader_; |
There was a problem hiding this comment.
Hi Bijou, long time no see. Thanks for fixing this, it's been annoying for too long.
I don't think it needs to be a unique_ptr? But I'll still approve the PR either way.
| // Plugin loader | |
| std::unique_ptr<pluginlib::ClassLoader<online_signal_smoothing::SmoothingBaseClass>> smoother_loader_; | |
| // Plugin loader | |
| pluginlib::ClassLoader<online_signal_smoothing::SmoothingBaseClass> smoother_loader_; |
There was a problem hiding this comment.
Hi Bijou, long time no see. Thanks for fixing this, it's been annoying for too long.
I don't think it needs to be a unique_ptr? But I'll still approve the PR either way.
Hi @AndyZe, Sorry didn't respond earlier. Good to see you too
|
I pushed a small commit to satisfy the linter |
|
Blocked pending #3567 I think |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3577 +/- ##
==========================================
+ Coverage 46.19% 46.19% +0.01%
==========================================
Files 720 720
Lines 62744 62742 -2
Branches 7595 7594 -1
==========================================
+ Hits 28978 28980 +2
+ Misses 33598 33596 -2
+ Partials 168 166 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Force merging this since Rolling CI was fixed and this is now passing. The tutorial failure is unrelated and should be resolved by moveit/moveit2_tutorials#1071 |
* Add class loader member variable instead of creating on stack * Fix formatting to satisfy clang --------- Co-authored-by: AndyZe <andyz@utexas.edu> Co-authored-by: Nathan Brooks <nathanbrooks@picknik.ai> (cherry picked from commit 92654dd) # Conflicts: # moveit_ros/moveit_servo/include/moveit_servo/servo.hpp # moveit_ros/moveit_servo/src/servo.cpp
* Add class loader member variable instead of creating on stack * Fix formatting to satisfy clang --------- Co-authored-by: AndyZe <andyz@utexas.edu> Co-authored-by: Nathan Brooks <nathanbrooks@picknik.ai> (cherry picked from commit 92654dd)
@nbbrooks Is it possible to get this commit into the next Kilted sync. Would appreciate that. |
* Add class loader member variable instead of creating on stack * Fix formatting to satisfy clang --------- (cherry picked from commit 92654dd) Co-authored-by: bijoua29 <73511637+bijoua29@users.noreply.github.com> Co-authored-by: AndyZe <andyz@utexas.edu> Co-authored-by: Nathan Brooks <nathanbrooks@picknik.ai>
* Add class loader member variable instead of creating on stack * Fix formatting to satisfy clang --------- Co-authored-by: AndyZe <andyz@utexas.edu> Co-authored-by: Nathan Brooks <nathanbrooks@picknik.ai> (cherry picked from commit 92654dd)
* Add class loader member variable instead of creating on stack * Fix formatting to satisfy clang --------- (cherry picked from commit 92654dd) Co-authored-by: bijoua29 <73511637+bijoua29@users.noreply.github.com> Co-authored-by: AndyZe <andyz@utexas.edu> Co-authored-by: Nathan Brooks <nathanbrooks@picknik.ai>
Description
To fix "SEVERE WARNING" from class loader in moveit_servo, created the class loader as a member variable instead of creating it on the stack.
This fixes the following error: