12 template <
typename SCALAR>
14 : mpc_settings_(settings), initialTimeHorizon_(initialTimeHorizon)
18 template <
typename SCALAR>
23 template <
typename SCALAR>
25 const SCALAR& t_forward_prediction_stop,
32 timeLeft = std::max((
SCALAR)0.0, timeLeft);
72 throw std::runtime_error(
"ERROR in MPC Constructor -- unknown Time Horizon Strategy.");
76 template <
typename SCALAR>
82 template <
typename SCALAR>
void updateSettings(const mpc_settings &mpcsettings)
Definition: MpcTimeHorizon-impl.h:77
MPC_MODE mpc_mode
Definition: MpcSettings.h:99
SCALAR initialTimeHorizon_
Definition: MpcTimeHorizon.h:50
MpcTimeHorizon(const mpc_settings &settings, const SCALAR &initialTimeHorizon)
Definition: MpcTimeHorizon-impl.h:13
CppAD::AD< CppAD::cg::CG< double > > SCALAR
MPC Settings struct.
Definition: MpcSettings.h:45
void updateInitialTimeHorizon(const SCALAR &initTimeHorizon)
update the time horizon which is used during the first call to the solver
Definition: MpcTimeHorizon-impl.h:83
RECEDING_HORIZON_WITH_FIXED_FINAL_TIME.
Definition: MpcSettings.h:40
FIXED_FINAL_TIME.
Definition: MpcSettings.h:34
CONSTANT_RECEDING_HORIZON.
Definition: MpcSettings.h:36
core::Time minimumTimeHorizonMpc_
Definition: MpcSettings.h:104
virtual ~MpcTimeHorizon()
Definition: MpcTimeHorizon-impl.h:19
FIXED_FINAL_TIME_WITH_MIN_TIME_HORIZON.
Definition: MpcSettings.h:38
virtual bool computeNewTimeHorizon(const SCALAR &t_since_ended_first_solve, const SCALAR &t_forward_prediction_stop, SCALAR &new_T)
compute new MPC time horizon
Definition: MpcTimeHorizon-impl.h:24
mpc_settings mpc_settings_
Definition: MpcTimeHorizon.h:48