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

Build warnings on Galactic #27

Open
edhage opened this issue Dec 8, 2021 · 1 comment
Open

Build warnings on Galactic #27

edhage opened this issue Dec 8, 2021 · 1 comment

Comments

@edhage
Copy link

edhage commented Dec 8, 2021

In behavior_tree_nodes/Move.cpp you have declared on line 42 and 42:
node->declare_parameter("waypoints");
node->declare_parameter("waypoint_coords");

WARNING: ‘const rclcpp::ParameterValue& rclcpp::Node::declare_parameter(const string&)’ is deprecated: declare_parameter() with only a name is deprecated and will be deleted in the future.\nIf you want to declare a parameter that won't change type without a default value use:\nnode->declare_parameter<ParameterT>(name), where e.g. ParameterT=int64_t.\n\nIf you want to declare a parameter that can dynamically change type use:\n\nrcl_interfaces::msg::ParameterDescriptor descriptor;\ndescriptor.dynamic_typing = true;\nnode->declare_parameter(name, rclcpp::ParameterValue{}, descriptor);\n [-Wdeprecated-declarations]

@fmrico
Copy link
Contributor

fmrico commented Dec 8, 2021

Hi @edhage

Thanks for detecting this. If you want to address it, I will be happy to review it 😉

Best

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

No branches or pull requests

2 participants