prep_track
prep_track(reftrack_imp, reg_smooth_opts, stepsize_opts, debug=True, min_width=None, plot=False)
Created by: Alexander Heilmeier
Documentation: This function prepares the inserted reference track for optimization.
Inputs: reftrack_imp: imported track [x_m, y_m, w_tr_right_m, w_tr_left_m] reg_smooth_opts: parameters for the spline approximation stepsize_opts: dict containing the stepsizes before spline approximation and after spline interpolation debug: boolean showing if debug messages should be printed min_width: [m] minimum enforced track width (None to deactivate)
Outputs: reftrack_interp: track after smoothing and interpolation [x_m, y_m, w_tr_right_m, w_tr_left_m] normvec_normalized_interp: normalized normal vectors on the reference line [x_m, y_m] a_interp: LES coefficients when calculating the splines coeffs_x_interp: spline coefficients of the x-component coeffs_y_interp: spline coefficients of the y-component