Regression-based motion planning