|
ROBOOP, A Robotics Object Oriented Package in C++
|
Computer torque method controller class. More...
#include <controller.h>
Public Member Functions | |
| Computed_torque_method (const short dof=1) | |
| Constructor. | |
| Computed_torque_method (const Robot_basic &robot, const DiagonalMatrix &Kp, const DiagonalMatrix &Kd) | |
| Constructor. | |
| ReturnMatrix | torque_cmd (Robot_basic &robot, const ColumnVector &qd, const ColumnVector &qpd, const ColumnVector &qppd) |
| Output torque. | |
| short | set_Kd (const DiagonalMatrix &Kd) |
Assign the velocity error gain matrix . More... | |
| short | set_Kp (const DiagonalMatrix &Kp) |
Assign the position error gain matrix . More... | |
Private Attributes | |
| int | dof |
| Degree of freedom. | |
| ColumnVector | q |
| Robot joints positions. | |
| ColumnVector | qp |
| Robot joints velocity. | |
| ColumnVector | qpp |
| Robot joints acceleration. | |
| ColumnVector | zero3 |
zero vector. | |
| DiagonalMatrix | Kp |
| Position error gain. | |
| DiagonalMatrix | Kd |
| Velocity error gain. | |
Computer torque method controller class.
The dynamic model of a robot manipulator can be expressed in joint space as
The driving torques can be expressed as
where
,
are diagonal positive definie matrix.
Definition at line 216 of file controller.h.
| short Computed_torque_method::set_Kd | ( | const DiagonalMatrix & | Kd_ | ) |
Assign the velocity error gain matrix
.
. Definition at line 567 of file controller.cpp.
References WRONG_SIZE.
| short Computed_torque_method::set_Kp | ( | const DiagonalMatrix & | Kp_ | ) |
Assign the position error gain matrix
.
. Definition at line 584 of file controller.cpp.
References WRONG_SIZE.