Function compass_interfaces::parseUnit

Function Documentation

msg::Azimuth::_unit_type compass_interfaces::parseUnit(const std::string &unitStr)

Convert the given string to azimuth unit.

Parameters:

unitStr[in] A string describing the unit.

Throws:

std::runtime_error – If the unit is invalid.

Returns:

The unit.