Function fuse_core::getParamRequired

Function Documentation

inline void fuse_core::getParamRequired(node_interfaces::NodeInterfaces<node_interfaces::Base, node_interfaces::Logging, node_interfaces::Parameters> interfaces, const std::string &key, std::string &value)

Utility method for handling required ROS params.

Parameters:
  • interfaces[in] - The node interfaces used to load the parameter

  • key[in] - The ROS parameter key for the required parameter

  • value[out] - The ROS parameter value for the key

Throws:

std::runtime_error – if the parameter does not exist