30 #ifndef EXOTICA_CORE_MOTION_SOLVER_H_ 31 #define EXOTICA_CORE_MOTION_SOLVER_H_ 38 #define REGISTER_MOTIONSOLVER_TYPE(TYPE, DERIV) EXOTICA_CORE_REGISTER(exotica::MotionSolver, TYPE, DERIV) 49 virtual void Solve(Eigen::MatrixXd& solution) = 0;
51 std::string
Print(
const std::string& prepend)
const override;
54 if (max_iter < 1)
ThrowPretty(
"Number of maximum iterations needs to be greater than 0.");
69 #endif // EXOTICA_CORE_MOTION_SOLVER_H_
void SetNumberOfMaxIterations(int max_iter)
std::string Print(const std::string &prepend) const override
virtual ~MotionSolver()=default
std::shared_ptr< exotica::MotionSolver > MotionSolverPtr
virtual void Solve(Eigen::MatrixXd &solution)=0
PlanningProblemPtr problem_
int GetNumberOfMaxIterations()
virtual void SpecifyProblem(PlanningProblemPtr pointer)
void InstantiateBase(const Initializer &init) override
std::shared_ptr< PlanningProblem > PlanningProblemPtr
PlanningProblemPtr GetProblem() const