Added Function to the drivingTask for path interpolation and curve weight