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

check for state of the controller node before cleanup #1363

Merged

Conversation

saikishor
Copy link
Member

Fixes #1136

If a controller tries to do the cleanup from an unconfigured state, it prints the following error in the terminal

Unable to start transition 2 from current state unconfigured: Transition is not registered., at ./src/rcl_lifecycle.c:355

Copy link

codecov bot commented Feb 1, 2024

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (786d5b5) 47.49% compared to head (4de27d1) 47.45%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1363      +/-   ##
==========================================
- Coverage   47.49%   47.45%   -0.04%     
==========================================
  Files          41       41              
  Lines        3556     3561       +5     
  Branches     1938     1942       +4     
==========================================
+ Hits         1689     1690       +1     
- Misses        459      460       +1     
- Partials     1408     1411       +3     
Flag Coverage Δ
unittests 47.45% <16.66%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
controller_manager/src/controller_manager.cpp 38.68% <16.66%> (-0.08%) ⬇️

Copy link
Member

@destogl destogl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good. We should also follow up with the #1236

@destogl destogl added backport-humble This label should be used by maintaines only! Label triggers PR backport to ROS2 humble. backport-iron bug labels Feb 2, 2024
@saikishor
Copy link
Member Author

It looks good. We should also follow up with the #1236

@destogl I just left a review on the other PR as well. Mostly, it looks good to me

@firesurfer
Copy link
Contributor

@saikishor I tried to test the fix this morning but ran into the issue that the whole controller_manager crashes on my iron setup if I build it from source.

But I took a quick look at the changes you made and they look reasonable to me.

@bmagyar bmagyar merged commit 6f57faf into ros-controls:master Feb 9, 2024
15 of 16 checks passed
mergify bot pushed a commit that referenced this pull request Feb 9, 2024
(cherry picked from commit 6f57faf)

# Conflicts:
#	controller_manager/test/test_controller_manager_srvs.cpp
mergify bot pushed a commit that referenced this pull request Feb 9, 2024
(cherry picked from commit 6f57faf)

# Conflicts:
#	controller_manager/test/test_controller_manager_srvs.cpp
christophfroehlich pushed a commit that referenced this pull request Mar 27, 2024
(cherry picked from commit 6f57faf)

# Conflicts:
#	controller_manager/test/test_controller_manager_srvs.cpp
christophfroehlich pushed a commit that referenced this pull request Mar 27, 2024
(cherry picked from commit 6f57faf)

# Conflicts:
#	controller_manager/test/test_controller_manager_srvs.cpp
@saikishor saikishor deleted the fix/unconfigured_controller_unloading branch August 17, 2024 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-humble This label should be used by maintaines only! Label triggers PR backport to ROS2 humble. bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot unload unconfigured controller
4 participants