Function cras::parseQoSPreset

Function Documentation

::rclcpp::QoS cras::parseQoSPreset(const ::std::string &qosPreset)

Parse a QoS preset name into the QoS object.

Parameters:

qosPreset[in] The QoS profile string to parse (uppercase).

Throws:

std::invalid_argument – If the string does not represent any QoS preset.

Returns:

The parsed QoS preset.