Text this: Trajectory tracking using optimal tyre force distribution for obstacle avoidance