Go to the documentation of this file.
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)
Definition: motion_solver.h:52
virtual void Solve(Eigen::MatrixXd &solution)=0
Definition: uncopyable.h:35
PlanningProblemPtr problem_
Definition: motion_solver.h:61
void InstantiateBase(const Initializer &init) override
double GetPlanningTime()
Definition: motion_solver.h:58
Definition: property.h:98
Definition: cartpole_dynamics_solver.h:38
int max_iterations_
Definition: motion_solver.h:63
int GetNumberOfMaxIterations()
Definition: motion_solver.h:57
Definition: property.h:70
std::string Print(const std::string &prepend) const override
Definition: motion_solver.h:42
std::shared_ptr< PlanningProblem > PlanningProblemPtr
Definition: planning_problem.h:116
virtual ~MotionSolver()=default
#define ThrowPretty(m)
Definition: exception.h:36
double planning_time_
Definition: motion_solver.h:62
virtual void SpecifyProblem(PlanningProblemPtr pointer)
PlanningProblemPtr GetProblem() const
Definition: motion_solver.h:50
std::shared_ptr< exotica::MotionSolver > MotionSolverPtr
Definition: motion_solver.h:66