Function ouster::sdk::mapping::loss_function_from_string
Defined in File pose_optimizer_constraint.h
Function Documentation
-
inline LossFunction ouster::sdk::mapping::loss_function_from_string(const std::string &name)
Converts a string to the corresponding LossFunction enum value.
This function takes a string representation of a loss function name and returns the matching LossFunction enum.
- Parameters:
name[in] – The string name of the loss function.
- Throws:
std::invalid_argument – If the provided name does not match any known LossFunction.
- Returns:
The corresponding LossFunction enum value.