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

Add CallbackReturn into controller_interface namespace for simpler usage in controllers. #701

Conversation

destogl
Copy link
Member

@destogl destogl commented Apr 15, 2022

Add CallbackReturn into controller_interface namespace to enable clearer usage of constants in controllers.

The idea comes from @fmauch from UR-Driver.
The concept is much more future-proof because if we ever change underlying management (state machine) users would not have to change their code.
It also avoids repetitive definition of using... in each controller.

@bmagyar if you agree with the concept, we have to open a follow-up issue to update all controllers.

Copy link
Member

@bmagyar bmagyar left a comment

Choose a reason for hiding this comment

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

100% yes, this was the original intention for using a locally defined (or aliased) CallbackReturn in the implementation

@destogl destogl merged commit 62a5637 into ros-controls:master Apr 19, 2022
@destogl destogl deleted the modernize-controller-interface-callback-returns branch April 19, 2022 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants