Text this: Research on path curvature smoothing method based on energy function for intelligent vehicles