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. | |
| short | set_Kd (const DiagonalMatrix &Kd) |
Assign the velocity error gain matrix . | |
| short | set_Kp (const DiagonalMatrix &Kp) |
Assign the position error gain matrix . | |
| ReturnMatrix | torque_cmd (Robot_basic &robot, const ColumnVector &qd, const ColumnVector &qpd, const ColumnVector &qppd) |
| Output torque. | |
Private Attributes | |
| int | dof |
| Degree of freedom. | |
| DiagonalMatrix | Kd |
| Velocity error gain. | |
| DiagonalMatrix | Kp |
| Position error gain. | |
| ColumnVector | q |
| Robot joints positions. | |
| ColumnVector | qp |
| Robot joints velocity. | |
| ColumnVector | qpp |
| Robot joints acceleration. | |
| ColumnVector | zero3 |
zero vector. | |
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 220 of file controller.h.
| Computed_torque_method::Computed_torque_method | ( | const short | dof = 1 | ) |
Constructor.
Definition at line 513 of file controller.cpp.
| Computed_torque_method::Computed_torque_method | ( | const Robot_basic & | robot, |
| const DiagonalMatrix & | Kp, | ||
| const DiagonalMatrix & | Kd | ||
| ) |
Constructor.
Definition at line 523 of file controller.cpp.
| short Computed_torque_method::set_Kd | ( | const DiagonalMatrix & | Kd_ | ) |
Assign the velocity error gain matrix
.
. Definition at line 571 of file controller.cpp.
| short Computed_torque_method::set_Kp | ( | const DiagonalMatrix & | Kp_ | ) |
Assign the position error gain matrix
.
. Definition at line 588 of file controller.cpp.
| ReturnMatrix Computed_torque_method::torque_cmd | ( | Robot_basic & | robot, |
| const ColumnVector & | qd, | ||
| const ColumnVector & | qpd, | ||
| const ColumnVector & | qppd | ||
| ) |
Output torque.
Definition at line 537 of file controller.cpp.
int Computed_torque_method::dof [private] |
Degree of freedom.
Definition at line 232 of file controller.h.
DiagonalMatrix Computed_torque_method::Kd [private] |
Velocity error gain.
Definition at line 237 of file controller.h.
DiagonalMatrix Computed_torque_method::Kp [private] |
Position error gain.
Definition at line 237 of file controller.h.
ColumnVector Computed_torque_method::q [private] |
Robot joints positions.
Definition at line 233 of file controller.h.
ColumnVector Computed_torque_method::qp [private] |
Robot joints velocity.
Definition at line 233 of file controller.h.
ColumnVector Computed_torque_method::qpp [private] |
Robot joints acceleration.
Definition at line 233 of file controller.h.
ColumnVector Computed_torque_method::zero3 [private] |
zero vector.
Definition at line 233 of file controller.h.