Reference Plotter

class gem_controllers.reference_plotter.ReferencePlotter[source]

This class adds the reference values of the subordinate stages to the stage plots of the GEM environment.

tune(env, referenced_states, plot_references, **_)[source]

Tune the reference plotter.

Parameters
  • env (ElectricMotorEnvironment) – The GEM-Environment that the controller shall be created for.

  • referenced_states (np.ndarray) – Array of all referenced states.

  • plot_references (bool) – Flag, if the references of the subordinate stages should be plotted.

update_plots(references)[source]

Update the state plots of the GEM environment.

Parameters

references (np.ndarray) – Array of all reference values of the subordinate stages.