1 #ifndef PARAM_PROVIDER_HPP
2 #define PARAM_PROVIDER_HPP
13 return getParamImpl(param_name, value_out);
15 catch (
const YAML::Exception& e)
17 ROS_ERROR_STREAM(
"[" << m_node_name <<
"]: YAML-CPP threw an unknown exception: " << e.what());
23 bool ParamProvider::getParamImpl(
const std::string& param_name, T& value_out)
const
26 const auto found_node = findYamlNode(param_name);
27 if (found_node.has_value())
32 value_out = found_node.value().as<T>();
35 catch (
const YAML::BadConversion& e)
42 return m_nh.getParam(param_name, value_out);
48 #endif // PARAM_PROVIDER_HPP