examples package

Submodules

examples.use_emb_es module

class examples.use_emb_es.VarPowerLimits[source]

Bases: object

Class to store and interpolate variable power limits to be used during driving to feed into the variable P_max constraint.

Authors

Thomas Herrmann <thomas.herrmann@tum.de>

Created on

01.02.2020

f_pwr_intp
init_interface_recalc()[source]
input_path
rec_recalc
receive_esim_update()[source]

Function to receive ESIM update. Call this function manually instead of a while loop in order not to block the velocity planner function.

s_max_var_pwr
snd_recalc
trigger_recalc(s_meas: float = 1.0, meas_diff: numpy.ndarray = array([0, 0, 0, 0, 0, 0, 0, 0, 0]), phase: str = 'r', track: str = 'mnt', laps: int = 12, x0: numpy.ndarray = array([1.0, 0.0, 0.0, 0.5, 35.0, 35.0, 35.0, 35.0, 35.0]))[source]

Triggers energy strategy recalculation with measurement values.

Parameters
  • s_meas – global s-coordinate where vehicle currently is

  • meas_diff – measurement values expressed as difference to energy strtaegy values at current position

Only necessary for the initialization phase are the following parameters: :param phase: which ES phase to call: ‘r’, recalculation (default); ‘i’, init.; ‘v’, v-ref calculation :param track: which track: ‘mnt’, Monteblanco (default), … :param laps: how many laps: any integer, 12 (default) :param x0: starting values

Authors

Thomas Herrmann <thomas.herrmann@tum.de>

Created on

01.02.2020

Module contents