Skip to content

Commit

Permalink
removing get node options default for nav2 utils (#3073)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveMacenski authored Jul 12, 2022
1 parent bb0d177 commit 5e91314
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions nav2_util/include/nav2_util/node_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ rclcpp::Node::SharedPtr generate_internal_node(const std::string & prefix = "");
*/
std::string time_to_string(size_t len);

rclcpp::NodeOptions
get_node_options_default(bool allow_undeclared = true, bool declare_initial_params = true);

/// Declares static ROS2 parameter and sets it to a given value if it was not already declared
/* Declares static ROS2 parameter and sets it to a given value
* if it was not already declared.
Expand Down
9 changes: 0 additions & 9 deletions nav2_util/src/node_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,4 @@ rclcpp::Node::SharedPtr generate_internal_node(const std::string & prefix)
return rclcpp::Node::make_shared("_", options);
}

rclcpp::NodeOptions
get_node_options_default(bool allow_undeclared, bool declare_initial_params)
{
rclcpp::NodeOptions options;
options.allow_undeclared_parameters(allow_undeclared);
options.automatically_declare_parameters_from_overrides(declare_initial_params);
return options;
}

} // namespace nav2_util

0 comments on commit 5e91314

Please sign in to comment.