Skip to content

result_plots

result_plots(plot_opts, width_veh_opt, width_veh_real, refline, bound1_imp, bound2_imp, bound1_interp, bound2_interp, trajectory)

Created by: Alexander Heilmeier

Documentation: This function plots several figures containing relevant trajectory information after trajectory optimization.

Inputs: plot_opts: dict containing the information which figures to plot width_veh_opt: vehicle width used during optimization in m width_veh_real: real vehicle width in m refline: contains the reference line coordinates [x_m, y_m] bound1_imp: first track boundary (as imported) (mostly right) [x_m, y_m] bound2_imp: second track boundary (as imported) (mostly left) [x_m, y_m] bound1_interp: first track boundary (interpolated) (mostly right) [x_m, y_m] bound2_interp: second track boundary (interpolated) (mostly left) [x_m, y_m] trajectory: trajectory data [s_m, x_m, y_m, psi_rad, kappa_radpm, vx_mps, ax_mps2]