Crocoddyl
Loading...
Searching...
No Matches
ddp-deprecated.hpp
1
2// BSD 3-Clause License
3//
4// Copyright (C) 2019-2025, LAAS-CNRS, University of Edinburgh,
5// University of Oxford, Heriot-Watt University
6// Copyright note valid unless otherwise stated in individual files.
7// All rights reserved.
9
10#ifndef CROCODDYL_CORE_SOLVERS_DDP_DEPRECATED_HPP_
11#define CROCODDYL_CORE_SOLVERS_DDP_DEPRECATED_HPP_
12
13#include "crocoddyl/core/solvers/fddp.hpp"
14
15namespace crocoddyl {
16
51class SolverDDP : public SolverFDDPTpl<double> {
52 public:
53 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
54
61 "Do not use SolverDDP. Instead, you should use SolverFDDP(problem, "
62 "DynamicsSolverType::SingleShoot)",
63 explicit SolverDDP(std::shared_ptr<ShootingProblemTpl<double>>
64 problem) : SolverFDDPTpl<double>(problem){};)
65 virtual ~SolverDDP() = default;
66
67 virtual void calcDiff() { return SolverFDDPTpl<double>::calcDir(); }
68};
69
70} // namespace crocoddyl
71
72#endif // CROCODDYL_CORE_SOLVERS_DDP_DEPRECATED_HPP_
This class encapsulates a shooting problem.
Definition shooting.hpp:32
virtual void calcDir()
Refresh the linearization of the optimal control problem around the current candidate.
Differential Dynamic Programming (DDP) solver.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW DEPRECATED("Do not use SolverDDP. Instead, you should use SolverFDDP(problem, " "DynamicsSolverType::SingleShoot)", explicit SolverDDP(std::shared_ptr< ShootingProblemTpl< double > > problem) :SolverFDDPTpl< double >(problem){};) virtual ~SolverDDP()=default
Initialize the DDP solver.
SolverFDDPTpl(std::shared_ptr< ShootingProblem > problem, const DynamicsSolverType dyn_solver=FeasShoot, const EqualitySolverType term_solver=LuNull)