Skip to content

Cannot unload unconfigured controller #1136

@firesurfer

Description

@firesurfer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions