extract_friction_coeffs
extract_friction_coeffs(reftrack, normvectors, tpamap_path, tpadata_path, pars, dn, print_debug, plot_debug)
Created by: Fabian Christ
Documentation: Extracting friction coefficients on a fine grid on the normal vectors along the racetrack from the provided friction map.
Inputs: reftrack: track [x_m, y_m, w_tr_right_m, w_tr_left_m] normvectors: array containing normalized normal vectors for every traj. point [x_component, y_component] tpamap_path: file path to tpa map (required for friction map loading) tpadata_path: file path to tpa data (required for friction map loading) pars: parameters dictionary dn: distance of equidistant points on normal vectors for extracting the friction coefficients print_debug: determines if debug prints are shown plot_debug: determines if debug plots are shown
Outputs: n: lateral distance of equidistant points on normal vectors along the racetrack mue_fl: grid of friction coefficients along the racetrack (left front wheel) mue_fr: grid of friction coefficients along the racetrack (right front wheel) mue_rl: grid of friction coefficients along the racetrack (left rear wheel) mue_rr: grid of friction coefficients along the racetrack (right rear wheel)