Controller Manager recovery from invalid URDF errors (backport #2775)#3394
Controller Manager recovery from invalid URDF errors (backport #2775)#3394mergify[bot] wants to merge 6 commits into
Conversation
Co-authored-by: nibanovic <nikola.banovic@b-robotized.com> Co-authored-by: Dr. Denis <denis@stoglrobotics.de> Co-authored-by: Dr. Denis <denis.stogl@b-robotized.com> (cherry picked from commit 189f705) # Conflicts: # controller_manager/src/controller_manager.cpp # hardware_interface/src/resource_manager.cpp
|
Cherry-pick of 189f705 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
|
I checked against current jazzy: merging this branch into jazzy is a clean merge with 0 conflicts. Label seems to be stale. |
|
There is a failing I've opened a fix in #3443.. Could a maintainer please merge it? |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## jazzy #3394 +/- ##
==========================================
- Coverage 89.44% 89.40% -0.05%
==========================================
Files 161 162 +1
Lines 20567 20637 +70
Branches 1630 1639 +9
==========================================
+ Hits 18397 18451 +54
- Misses 1500 1508 +8
- Partials 670 678 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Tick the box to add this pull request to the merge queue (same as
|
christophfroehlich
left a comment
There was a problem hiding this comment.
This broke gz_ros2_control, see #3401
Let us fix this first before we merge this PR into jazzy.
We should wait for atleast a release or do we want to backport this to Jazzy? |
|
Needs #3459 |
|
This pull request is in conflict. Could you fix it @bmagyar @destogl @christophfroehlich @saikishor? |
Goal:
Update the Controller Manager to handle errors when the ResourceManager fails to initialize due to an invalid URDF or faulty hardware plugin.
Behavior:
Observations:
The Controller Manager now no longer crashes on invalid URDFs. Instead, it safely recovers by initializing the resource_manager_ pointer to a minimal state, allowing the controller manager to continue operating and respond to future valid robot descriptions.
Testing:
Unit tests were created with multiple invalid URDF scenarios. All tests passed successfully. Testing can be done by executing:
./build/controller_manager/test_controller_manager_with_resource_managerThis is an automatic backport of pull request #2775 done by [Mergify](https://mergify.com).