124 std::cout <<
" ========================= MPC SETTINGS =============================" << std::endl;
125 std::cout <<
" stateForwardIntegration: \t " << stateForwardIntegration_ << std::endl;
126 std::cout <<
" stateForwardIntegrator: \t " << stateForwardIntegratorType_ << std::endl;
127 std::cout <<
" stateForwardIntegration_dt: \t " << stateForwardIntegration_dt_ << std::endl;
128 std::cout <<
" measureDelay: \t " << measureDelay_ << std::endl;
129 std::cout <<
" delayMeasurementMultiplier: \t " << delayMeasurementMultiplier_ << std::endl;
130 std::cout <<
" fixedDelayUs: \t " << fixedDelayUs_ << std::endl;
131 std::cout <<
" additionalDelayUs: \t " << additionalDelayUs_ << std::endl;
132 std::cout <<
" postTruncation_: \t " << postTruncation_ << std::endl;
133 std::cout <<
" mpc_mode: \t " << (int)mpc_mode << std::endl;
134 std::cout <<
" minimumTimeHorizonMpc: \t " << minimumTimeHorizonMpc_ << std::endl;
135 std::cout <<
" coldStart: \t " << coldStart_ << std::endl;
136 std::cout <<
" useExternalTiming: \t " << useExternalTiming_ << std::endl;
137 std::cout <<
" ============================== END =================================" << std::endl;
153 boost::property_tree::ptree pt;
154 boost::property_tree::read_info(filename, pt);
163 settings.
coldStart_ = pt.get<
bool>(
"mpc.coldStart");
bool measureDelay_
Definition: MpcSettings.h:71
void loadMpcSettings(const std::string &filename, mpc_settings &settings)
load the mpc settings from file
Definition: MpcSettings.h:151
MPC_MODE mpc_mode
Definition: MpcSettings.h:99
double stateForwardIntegration_dt_
Definition: MpcSettings.h:63
double delayMeasurementMultiplier_
Definition: MpcSettings.h:79
bool coldStart_
Definition: MpcSettings.h:111
bool postTruncation_
Definition: MpcSettings.h:94
MPC_MODE
select a mode in which MPC is supposed to run
Definition: MpcSettings.h:31
int additionalDelayUs_
Definition: MpcSettings.h:89
MPC Settings struct.
Definition: MpcSettings.h:45
RECEDING_HORIZON_WITH_FIXED_FINAL_TIME.
Definition: MpcSettings.h:40
void print()
Print MPC settings to console.
Definition: MpcSettings.h:122
bool useExternalTiming_
Definition: MpcSettings.h:118
FIXED_FINAL_TIME.
Definition: MpcSettings.h:34
bool stateForwardIntegration_
Definition: MpcSettings.h:53
CONSTANT_RECEDING_HORIZON.
Definition: MpcSettings.h:36
ct::core::IntegrationType stateForwardIntegratorType_
Definition: MpcSettings.h:58
int fixedDelayUs_
Definition: MpcSettings.h:84
core::Time minimumTimeHorizonMpc_
Definition: MpcSettings.h:104
FIXED_FINAL_TIME_WITH_MIN_TIME_HORIZON.
Definition: MpcSettings.h:38