[Controller Interface] Make assign and release interfaces virtual #1743
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello!
I wanted to open this PR to see if making
assign_interfaces
andrelease_interfaces
is fine or not. This would be helpful if the user wants to deal with a different type instead of having them inside the vectors as it is by defaultros2_control/controller_interface/include/controller_interface/controller_interface_base.hpp
Lines 257 to 259 in ce58fae
ros2_control/controller_interface/src/controller_interface_base.cpp
Lines 95 to 107 in ce58fae
By making them virtual, we can let the user able to define the internal structure and then clean them when the release interface is called