import math


def _fcn_mg_joint_pos(t, q_init, q_end, t_strike_end):
    """Helper function for `create_mg_joint_pos_policy()` to fit the `TimePolicy` scheme"""
    return ((q_end - q_init) * min(t / t_strike_end, 1) + q_init) / 180 * math.pi