An Efficient Generation Method based on Dynamic Curvature of the Reference Curve for Robust Trajectory Planning