main_emb_es module

class main_emb_es.AcPmModel(track_name: str, b_visualize: bool = False, ci: bool = False)[source]

Bases: object

Class to interface the algorithms which are necessary to calculate an energy strategy for a race vehicle.

Parameters
  • track_name – name of the track where the energy strategy shall be calculated on

  • b_visualize – switch to visualize the energy strategy results

  • ci – switch to be activated in the CI jobs

Authors

Thomas Herrmann <thomas.herrmann@tum.de>

Created on

01.12.2020

create_dd_ref()[source]

Calls the calculation of the reference velocity profile.

Authors

Thomas Herrmann <thomas.herrmann@tum.de>

Created on

01.12.2020

get_idx(vp_in: dict)[source]

Calls the reoptimization of the energy strategy.

Parameters

vp_in – velocity planner input

Authors

Thomas Herrmann <thomas.herrmann@tum.de>

Created on

01.03.2021

init_es(x0: numpy.array, num_laps: int)[source]

Calls the initialization of the energy strategy.

Parameters
  • x0 – initial values of the DAEs

  • num_laps – number of race laps

Authors

Thomas Herrmann <thomas.herrmann@tum.de>

Created on

01.12.2020

re_optimize(dp: int, dp_dist: int, x_meas: numpy.array)[source]

Calls the reoptimization of the energy strategy.

Parameters
  • dp – bounds on dp_th node

  • dp_dist – local position index of travelled vehicle in current solver instance

  • x_meas – measurement value

Authors

Thomas Herrmann <thomas.herrmann@tum.de>

Created on

01.12.2020

main_emb_es.translate_track_id(track_id: str) str[source]

Translates the track ID into its full name.

Parameters

track_id – short ID of race track

Return track_name

full name of race track

Authors

Thomas Herrmann <thomas.herrmann@tum.de>

Created on

01.12.2020