Skip to content
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

Cannot unload unconfigured controller #1136

Closed
firesurfer opened this issue Oct 13, 2023 · 6 comments · Fixed by #1363
Closed

Cannot unload unconfigured controller #1136

firesurfer opened this issue Oct 13, 2023 · 6 comments · Fixed by #1363
Labels

Comments

@firesurfer
Copy link
Contributor

firesurfer commented Oct 13, 2023

Describe the bug

When having an erronous controller which can not be configured it is left in the state unconfigured.
When trying to unload that controller there is no rcl life cycle transition found

[ros2_control_node-11] [WARN] [1697180791.709508944] [rcl_lifecycle]: No transition matching 2 found for current state unconfigured
[ros2_control_node-11] [ERROR] [1697180791.709542087] [cartesian_compliance_controller_top]: Unable to start transition 2 from current state unconfigured: Transition is not registered., at ./src/rcl_lifecycle.c:355

To Reproduce

  1. Have a controller which cannot be configured
  2. Run ros2 control unload_controller my_bad_controller

Expected behavior

Being able to unload the controller

Environment (please complete the following information):

  • OS: Ubuntu 22.04
  • Version: Iron binary install
@firesurfer firesurfer added the bug label Oct 13, 2023
@firesurfer
Copy link
Contributor Author

@saikishor or someone else. Sorry to push. But I think this issue should not be forgotten.

@saikishor
Copy link
Member

@firesurfer thanks for the reminder. If I have some time during this or next week, I'll try to fix it

@saikishor
Copy link
Member

@firesurfer I tried to reproduce your error. I see the same error message but at the end of the day, it does get removed from the controller list. It's just that the node cleanup is only needed if the controller is in an inactive state, if it is in unconfigured state, this won't be needed.

@saikishor
Copy link
Member

@firesurfer I've created a pull request with the fix

@firesurfer
Copy link
Contributor Author

@saikishor Okey good to know. I just tried to unload the controller and saw the error message.
Great that you already fixed it!

@saikishor
Copy link
Member

saikishor commented Feb 2, 2024

@firesurfer can you test the PR #1363 and if it works, please approve it. So, we can get it merged and backport it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants