1#ifndef ROBOTOC_CONTROL_POLICY_HPP_
2#define ROBOTOC_CONTROL_POLICY_HPP_
94 void disp(std::ostream& os) const;
96 friend std::ostream& operator<<(std::ostream& os,
Optimal control problem solver by Riccati recursion.
Definition: ocp_solver.hpp:41
Definition: constraint_component_base.hpp:17
Control pocily constructed for the MPC solution.
Definition: control_policy.hpp:17
ControlPolicy(ControlPolicy &&) noexcept=default
Default move constructor.
void disp(std::ostream &os) const
ControlPolicy(const OCPSolver &ocp_solver, const double t)
Constructs the policy from the OCP solver.
ControlPolicy()
Default constructor.
ControlPolicy(const ControlPolicy &)=default
Default copy constructor.
Eigen::VectorXd dqJ
Joint velocities. Size must be Robot::dimu().
Definition: control_policy.hpp:80
Eigen::MatrixXd Kp
Joint position gain. Size must be Robot::dimu() x Robot::dimu().
Definition: control_policy.hpp:85
Eigen::VectorXd tauJ
Joint torques. Size must be Robot::dimu().
Definition: control_policy.hpp:70
double t
Inquired time of the control.
Definition: control_policy.hpp:65
void set(const OCPSolver &ocp_solver, const double t)
Sets the control policy from the OCP solver.
static ControlPolicy FromOCPSolver(const OCPSolver &ocp_solver)
Eigen::VectorXd qJ
Joint positions. Size must be Robot::dimu().
Definition: control_policy.hpp:75
ControlPolicy & operator=(const ControlPolicy &)=default
Default copy assign operator.
Eigen::MatrixXd Kd
Joint velocity gain. Size must be Robot::dimu() x Robot::dimu().
Definition: control_policy.hpp:90
~ControlPolicy()=default
Default destructor.