Template Function nav2_util::declare_parameter_if_not_declared(NodeT, const std::string&, const rclcpp::ParameterValue&, const rcl_interfaces::msg::ParameterDescriptor&)
Defined in File node_utils.hpp
Function Documentation
-
template<typename NodeT>
void nav2_util::declare_parameter_if_not_declared(NodeT node, const std::string ¶m_name, const rclcpp::ParameterValue &default_value, const rcl_interfaces::msg::ParameterDescriptor ¶meter_descriptor = rcl_interfaces::msg::ParameterDescriptor()) Declares static ROS2 parameter and sets it to a given value if it was not already declared.