Function joint_trajectory_controller::interpolation_methods::from_string

Function Documentation

inline InterpolationMethod joint_trajectory_controller::interpolation_methods::from_string(const std::string &interpolation_method)

Creates a InterpolationMethod enum class value from a string. This function directly looks up for corresponding InterpolationMethod based on interpolation_method string (case-agnostic).

Note

If interpolation_method does not have any corresponding InterpolationMethod (i.e., “Unknown”), it defaults to DEFAULT_INTERPOLATION.

Parameters:

interpolation_method[in] The given interpolation method string.

Returns:

The corresponding InterpolationMethod.