-
Notifications
You must be signed in to change notification settings - Fork 571
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
Add logic to Ros2ControlManager to match ros2_control #3332
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #3332 +/- ##
==========================================
- Coverage 45.97% 45.83% -0.13%
==========================================
Files 716 717 +1
Lines 62477 62574 +97
Branches 7564 7564
==========================================
- Hits 28715 28675 -40
- Misses 33594 33731 +137
Partials 168 168 ☔ View full report in Codecov by Sentry. |
42463c1
to
3dc2995
Compare
3dc2995
to
db1a7d8
Compare
d67c296
to
8e7dd31
Compare
618ec3a
to
0164264
Compare
Signed-off-by: Paul Gesel <[email protected]>
0164264
to
33a9708
Compare
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.
How can this be tested / can we add very basic unittesting to make this code more robust (not blocking this PR)?
The test failures are cause by flacky unittests.
moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp
Outdated
Show resolved
Hide resolved
1452fa3
to
9db62e5
Compare
Signed-off-by: Paul Gesel <[email protected]>
f060e31
to
704dd4e
Compare
moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp
Outdated
Show resolved
Hide resolved
moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp
Outdated
Show resolved
Hide resolved
moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp
Show resolved
Hide resolved
…ygen Signed-off-by: Paul Gesel <[email protected]>
…oveit2 into pr-more-controller-manager-logic
moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp
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.
Ok, done with comments about C++. I'm not qualified to review the functional aspects of this code.
Signed-off-by: Paul Gesel <[email protected]>
moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp
Outdated
Show resolved
Hide resolved
moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp
Outdated
Show resolved
Hide resolved
moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp
Outdated
Show resolved
Hide resolved
moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp
Outdated
Show resolved
Hide resolved
moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp
Outdated
Show resolved
Hide resolved
moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp
Outdated
Show resolved
Hide resolved
…ager_plugin.cpp Co-authored-by: Sebastian Castro <[email protected]>
…ager_plugin.cpp Co-authored-by: Sebastian Castro <[email protected]>
…ager_plugin.cpp Co-authored-by: Sebastian Castro <[email protected]>
Signed-off-by: Paul Gesel <[email protected]>
…oveit2 into pr-more-controller-manager-logic
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 -- I'll wait until this one is merged before releasing Jazzy/Rolling (sadly I already released Humble like a day or 2 ago)
Huh, somehow there are clang-tidy fixes being suggested |
Signed-off-by: Paul Gesel <[email protected]>
11dded3
to
2d91d45
Compare
@griswaldbrooks you may resolve your own comments now 🤣 |
* Add logic to Ros2ControlManager to match ros2_control Signed-off-by: Paul Gesel <[email protected]> * Add Ros2ControlManager test Signed-off-by: Paul Gesel <[email protected]> * move simplifyControllerActivationDeactivation to function and add doxygen Signed-off-by: Paul Gesel <[email protected]> * move queue.pop_back up Signed-off-by: Paul Gesel <[email protected]> * Update moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp Co-authored-by: Sebastian Castro <[email protected]> * Update moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp Co-authored-by: Sebastian Castro <[email protected]> * Update moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp Co-authored-by: Sebastian Castro <[email protected]> * pr feedback Signed-off-by: Paul Gesel <[email protected]> * clang fixes Signed-off-by: Paul Gesel <[email protected]> --------- Signed-off-by: Paul Gesel <[email protected]> Co-authored-by: Sebastian Castro <[email protected]> Co-authored-by: Sebastian Jahr <[email protected]> (cherry picked from commit dbf07b1) # Conflicts: # moveit_plugins/moveit_ros_control_interface/CMakeLists.txt # moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp
* Add logic to Ros2ControlManager to match ros2_control Signed-off-by: Paul Gesel <[email protected]> * Add Ros2ControlManager test Signed-off-by: Paul Gesel <[email protected]> * move simplifyControllerActivationDeactivation to function and add doxygen Signed-off-by: Paul Gesel <[email protected]> * move queue.pop_back up Signed-off-by: Paul Gesel <[email protected]> * Update moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp Co-authored-by: Sebastian Castro <[email protected]> * Update moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp Co-authored-by: Sebastian Castro <[email protected]> * Update moveit_plugins/moveit_ros_control_interface/src/controller_manager_plugin.cpp Co-authored-by: Sebastian Castro <[email protected]> * pr feedback Signed-off-by: Paul Gesel <[email protected]> * clang fixes Signed-off-by: Paul Gesel <[email protected]> --------- Signed-off-by: Paul Gesel <[email protected]> Co-authored-by: Sebastian Castro <[email protected]> Co-authored-by: Sebastian Jahr <[email protected]> (cherry picked from commit dbf07b1)
How so? |
Damn, you got double sniped. I'm sorry :( |
(cherry picked from commit dbf07b1) Co-authored-by: Paul Gesel <[email protected]>
Description
The logic for the chained controllers still does not match the expectation of ROS2 control. This PR makes a few changes:
simplifyControllerActivationDeactivation
function adds the logic needed to avoid this from happening.