end effector trajectory into joint angles trajectory