ros-controls / ros2_control

Generic and simple controls framework for ROS 2
https://control.ros.org
Apache License 2.0
505 stars 300 forks source link

Add `cleanup_controller` service and method to controller manager and also add its CLI script #759

Open destogl opened 2 years ago

destogl commented 2 years ago

Background

Better support for controller's lifecycle, that is the same as for the Lifecycle node. To transition between inactive and unconfigured state, we should provide service that enables that. The event name is cleanup.

Do the following:

  1. Add new method cleanup controller in the controller manager.
  2. Copy cleanup content form the unload_controller method.
  3. Add new service called cleanup_controller in the CM.
  4. Add new CLI for this function, i.e., enable setting in unconfigured state controller from CLI.

Instructions

Hi, this is a good-first-issue issue. This means we've worked to make it more legible to people who either haven't contributed to our codebase before, or even folks who haven't contributed to open source before.

We're interested in helping you take the first step, and can answer questions and help you out along the way. Note that we're especially interested in contributions from underrepresented groups!

We know that creating a pull request is the biggest barrier for new contributors. This issue is for you πŸ’

If you have contributed before, consider leaving this PR for someone new, and looking through our general bug issues. Thanks!

πŸ€” What you will need to know.

Nothing. This issue is meant to welcome you to Open Source :) We are happy to walk you through the process.

πŸ“‹ Step by Step

Is someone else already working on this?

πŸ”—- We encourage contributors to link to the original issue in their pull request so all users can easily see if someone's already started on it.

πŸ‘₯- If someone seems stuck, offer them some help!

πŸ€”β“ Questions?

Don’t hesitate to ask questions or to get help if you feel like you are getting stuck. For example leave a comment below! Furthermore, you find helpful resources here:

Good luck with your first issue!

MOLOCH-dev commented 1 year ago

Hi, I'd like to take up this issue. Could you please assign it to me @destogl

bailaC commented 11 months ago

@destogl , I can pick this.

bailaC commented 10 months ago

https://github.com/ros-controls/ros2_control/pull/1236