-
Notifications
You must be signed in to change notification settings - Fork 269
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 NodeOptions parameter to init function of controller_interface #382
Add NodeOptions parameter to init function of controller_interface #382
Conversation
controller_interface/include/controller_interface/controller_interface.hpp
Show resolved
Hide resolved
Are you using this already in one of your controllers? Would be good to have a link here to support the argument |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AugusteBourgois can you please show us an example of this being used? Otherwise I'm happy to merge
My controller is hosted on a private repo of my company unfortunately. However I can certainly implement a minimal working example if you like. |
Yeah an example could really help nailing this functionality, especially if you can make it as a test. Note: the new function is currently not being called from anywhere. How'd that change in your opinion? |
I added an example in the test folder. I believe that a controller should be able to play with its own node options, in particular when it comes to declaring parameters from overrides from example. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor changes
|
||
namespace controller_with_options | ||
{ | ||
controller_interface::return_type ControllerWithOptions::init( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not move controllers implementations into header file so that cpp has only tests inside. @bmagyar what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good, just one small nit-pick.
This allows for finer tuning of the NodeOptions of the controller_interface object.
Rebased for good measure before merge |
This allows for finer tuning of the NodeOptions of the controller_interface object.
For example, this allows to declare parameters from YAML files directly with the options
allow_undeclared_parameters
andautomatically_declare_parameters_from_overrides