Skip to content

Conversation

@VitezGabriela
Copy link

Goal:

Update the Controller Manager to handle errors when the ResourceManager fails to initialize due to an invalid URDF or faulty hardware plugin.

Behavior:

  • Catch exceptions caused by parsing invalid URDFs during initialization
  • Log error messages
  • Reset the resource_manager_ pointer to a minimal, safe state.
  • Continue waiting for a valid robot_description to be published

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_manager

christophfroehlich and others added 30 commits May 14, 2025 11:15
…ontrols#2205)

---------

Signed-off-by: mini-1235 <[email protected]>
Co-authored-by: Sai Kishor Kothakota <[email protected]>
Co-authored-by: Bence Magyar <[email protected]>
Co-authored-by: Christoph Fröhlich <[email protected]>
…ure (ros-controls#2230)

---------

Co-authored-by: Sai Kishor Kothakota <[email protected]>
Co-authored-by: Christoph Froehlich <[email protected]>
@VitezGabriela VitezGabriela force-pushed the feature/invalid-urdf-cm-recovery branch from 194ed06 to f5d9c81 Compare November 3, 2025 18:04
@mergify
Copy link

mergify bot commented Nov 3, 2025

This pull request is in conflict. Could you fix it @VitezGabriela?

saikishor and others added 26 commits November 5, 2025 18:26
…ntrols#2817)

---------

Signed-off-by: Dhruv Patel <[email protected]>
Co-authored-by: Sai Kishor Kothakota <[email protected]>
Co-authored-by: Sai Kishor Kothakota <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.