#include <iostream>
#include <limits>
#include <iomanip>
#define HUMOTO_GLOBAL_LOGGER_ENABLED
#include "humoto/config_yaml.h"
#include "humoto/humoto.h"
#include "humoto/qpoases.h"
#include "humoto/wpg04.h"
#include "utilities.h"
int main(int argc, char **argv)
{
std::string log_file_name = humoto_tests::getLogFileName(argc, argv);
try
{
std::string config_file_name = std::string(argv[0]) + ".yaml";
setupHierarchy_v0(opt_problem);
for (unsigned int i = 0;; ++i)
{
{
break;
}
opt_problem.
form(solution, solution_guess, active_set_guess, model, wpg, old_solution);
solver.solve(solution, active_set_actual, opt_problem, solution_guess, active_set_guess);
old_solution = solution;
opt_problem.
log(logger, prefix);
solver.log(logger, prefix);
solution.
log(logger, prefix);
stance_fsm.log(logger, prefix);
wpg.log(logger, prefix);
model.
log(logger, prefix);
active_set_guess.
log(logger, prefix,
"active_set_guess");
active_set_actual.
log(logger, prefix,
"active_set_actual");
solution_guess.
log(logger, prefix,
"solution_guess");
old_solution.
log(logger, prefix,
"old_solution");
stance_fsm.shiftTime(wpg_parameters.sampling_time_ms_);
model_state = wpg.getNextModelState(solution, stance_fsm, model);
}
}
catch (const std::exception &e)
{
exit(-1);
}
return (0);
}