Spatial-based predictive control and geometric corridor planning for adaptive cruise control coupled with obstacle avoidance