@staticmethod
def get_state(t, path):
    if (int(t) <= 0):
        return np.array(path[0])
    elif (int(t) >= len(path)):
        return np.array(path[(- 1)])
    else:
        pos_last = np.array(path[(int(t) - 1)])
        pos_next = np.array(path[int(t)])
        pos = (((pos_next - pos_last) * (t - int(t))) + pos_last)
        return pos
@staticmethod
def get_state(t, path):
    if (int(t) <= 0):
        return np.array(path[0])
    elif (int(t) >= len(path)):
        return np.array(path[(- 1)])
    else:
        pos_last = np.array(path[(int(t) - 1)])
        pos_next = np.array(path[int(t)])
        pos = (((pos_next - pos_last) * (t - int(t))) + pos_last)
        return pos