|
robotoc
robotoc - efficient ROBOT Optimal Control solvers
|
Control pocily constructed for the MPC solution. More...
#include <control_policy.hpp>
Public Member Functions | |
| ControlPolicy (const OCPSolver &ocp_solver, const double t) | |
| Constructs the policy from the OCP solver. More... | |
| ControlPolicy () | |
| Default constructor. More... | |
| ~ControlPolicy ()=default | |
| Default destructor. More... | |
| ControlPolicy (const ControlPolicy &)=default | |
| Default copy constructor. More... | |
| ControlPolicy & | operator= (const ControlPolicy &)=default |
| Default copy assign operator. More... | |
| ControlPolicy (ControlPolicy &&) noexcept=default | |
| Default move constructor. More... | |
| ControlPolicy & | operator= (ControlPolicy &&) noexcept=default |
| Default move assign operator. More... | |
| void | set (const OCPSolver &ocp_solver, const double t) |
| Sets the control policy from the OCP solver. More... | |
| void | disp (std::ostream &os) const |
Static Public Member Functions | |
| static ControlPolicy | FromOCPSolver (const OCPSolver &ocp_solver) |
Public Attributes | |
| double | t |
| Inquired time of the control. More... | |
| Eigen::VectorXd | tauJ |
| Joint torques. Size must be Robot::dimu(). More... | |
| Eigen::VectorXd | qJ |
| Joint positions. Size must be Robot::dimu(). More... | |
| Eigen::VectorXd | dqJ |
| Joint velocities. Size must be Robot::dimu(). More... | |
| Eigen::MatrixXd | Kp |
| Joint position gain. Size must be Robot::dimu() x Robot::dimu(). More... | |
| Eigen::MatrixXd | Kd |
| Joint velocity gain. Size must be Robot::dimu() x Robot::dimu(). More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const ControlPolicy &control_policy) |
Control pocily constructed for the MPC solution.
| robotoc::ControlPolicy::ControlPolicy | ( | const OCPSolver & | ocp_solver, |
| const double | t | ||
| ) |
| robotoc::ControlPolicy::ControlPolicy | ( | ) |
Default constructor.
|
default |
Default destructor.
|
default |
Default copy constructor.
|
defaultnoexcept |
Default move constructor.
| void robotoc::ControlPolicy::disp | ( | std::ostream & | os | ) | const |
|
static |
|
default |
Default copy assign operator.
|
defaultnoexcept |
Default move assign operator.
| void robotoc::ControlPolicy::set | ( | const OCPSolver & | ocp_solver, |
| const double | t | ||
| ) |
|
friend |
| Eigen::VectorXd robotoc::ControlPolicy::dqJ |
Joint velocities. Size must be Robot::dimu().
| Eigen::MatrixXd robotoc::ControlPolicy::Kd |
Joint velocity gain. Size must be Robot::dimu() x Robot::dimu().
| Eigen::MatrixXd robotoc::ControlPolicy::Kp |
Joint position gain. Size must be Robot::dimu() x Robot::dimu().
| Eigen::VectorXd robotoc::ControlPolicy::qJ |
Joint positions. Size must be Robot::dimu().
| double robotoc::ControlPolicy::t |
Inquired time of the control.
| Eigen::VectorXd robotoc::ControlPolicy::tauJ |
Joint torques. Size must be Robot::dimu().