Skip to content

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 Triggers PR backport to ROS 2 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
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 Triggers PR backport to ROS 2 humble. bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot unload unconfigured controller
4 participants