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

Automatic parameter declaration - enable existence of undeclared parameters from overrides #504

Merged
merged 2 commits into from
Aug 28, 2021

Conversation

livanov93
Copy link
Contributor

PR comes in combination with #ros2_controllers/PR224.

PR enables undeclared parameters to be automatically declared if uploaded via overrides (e.g. yaml files). Helper function is also added to make declaration + check if some parameter already exists easier for components that inherit from ContorllerInterface.

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.

many thanks for this!

@bmagyar bmagyar merged commit 5a75f94 into ros-controls:master Aug 28, 2021
controller_name, rclcpp::NodeOptions().allow_undeclared_parameters(true));
controller_name, rclcpp::NodeOptions()
.allow_undeclared_parameters(true)
.automatically_declare_parameters_from_overrides(true));
Copy link
Member

Choose a reason for hiding this comment

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

I have a follow-up issue with this parameter

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

4 participants