robotoc
robotoc - efficient ROBOT Optimal Control solvers
Loading...
Searching...
No Matches
derivative_checker.hpp
Go to the documentation of this file.
1#ifndef ROBOTOC_DERIVATIVE_CHECKER_HPP_
2#define ROBOTOC_DERIVATIVE_CHECKER_HPP_
3
4#include <memory>
5
10
11
12namespace robotoc {
13
15public:
16 explicit DerivativeChecker(const Robot& robot,
17 const double finite_diff=1.0e-08,
18 const double test_tol=1.0e-03);
19
21
22 void setFiniteDifference(const double finite_diff=1.0e-08);
23
24 void setTestTolerance(const double test_tol=1.0e-03);
25
27 const std::shared_ptr<CostFunctionComponentBase>& cost);
28
30 const std::shared_ptr<CostFunctionComponentBase>& cost);
31
33 const std::shared_ptr<CostFunctionComponentBase>& cost,
34 const ContactStatus& contact_status);
35
37 const std::shared_ptr<CostFunctionComponentBase>& cost,
38 const ContactStatus& contact_status);
39
41 const std::shared_ptr<CostFunctionComponentBase>& cost);
42
44 const std::shared_ptr<CostFunctionComponentBase>& cost);
45
47 const std::shared_ptr<CostFunctionComponentBase>& cost);
48
50 const std::shared_ptr<CostFunctionComponentBase>& cost);
51
53 const std::shared_ptr<CostFunctionComponentBase>& cost,
54 const ImpactStatus& impact_status);
55
57 const std::shared_ptr<CostFunctionComponentBase>& cost,
58 const ImpactStatus& impact_status);
59
60private:
61 Robot robot_;
62 double finite_diff_, test_tol_;
63
64};
65
66} // namespace robotoc
67
68#endif // ROBOTOC_DERIVATIVE_CHECKER_HPP_
Contact status of robot model.
Definition: contact_status.hpp:32
Definition: derivative_checker.hpp:14
bool checkSecondOrderTerminalCostDerivatives(const std::shared_ptr< CostFunctionComponentBase > &cost)
bool checkSecondOrderImpactCostDerivatives(const std::shared_ptr< CostFunctionComponentBase > &cost, const ImpactStatus &impact_status)
bool checkFirstOrderStageCostDerivatives(const std::shared_ptr< CostFunctionComponentBase > &cost, const ContactStatus &contact_status)
void setFiniteDifference(const double finite_diff=1.0e-08)
bool checkSecondOrderStageCostDerivatives(const std::shared_ptr< CostFunctionComponentBase > &cost, const ContactStatus &contact_status)
DerivativeChecker(const Robot &robot, const double finite_diff=1.0e-08, const double test_tol=1.0e-03)
bool checkFirstOrderTerminalCostDerivatives(const std::shared_ptr< CostFunctionComponentBase > &cost)
bool checkFirstOrderImpactCostDerivatives(const std::shared_ptr< CostFunctionComponentBase > &cost)
bool checkFirstOrderStageCostDerivatives(const std::shared_ptr< CostFunctionComponentBase > &cost)
bool checkSecondOrderImpactCostDerivatives(const std::shared_ptr< CostFunctionComponentBase > &cost)
void setTestTolerance(const double test_tol=1.0e-03)
bool checkSecondOrderStageCostDerivatives(const std::shared_ptr< CostFunctionComponentBase > &cost)
bool checkFirstOrderImpactCostDerivatives(const std::shared_ptr< CostFunctionComponentBase > &cost, const ImpactStatus &impact_status)
Impact status of robot model. Wrapper of ContactStatus to treat impacts.
Definition: impact_status.hpp:21
Dynamics and kinematics model of robots. Wraps pinocchio::Model and pinocchio::Data....
Definition: robot.hpp:32
Definition: constraint_component_base.hpp:17