Compute Torque Control Theory
Compute Torque Control Theory
Compute Torque Control Theory
Lagrange-Euler Dynamics
i) Derive kinetic and potential energy
ii) Use Lagrange's equations of motion
linear velocity : v w r
coriolis force : Fcor 2mwo v
1
kinetic energy (k) : k mv 2
2
1
rotational kinetic energy : k rot I 2
2
1
Dynamics of a Two-Link Planar Elbow Arm
∴
1 1 1
K 2 m2 v2 m2 a1 1 m2 a2 (1 2 ) 2 m2 a1a2 (1 12 ) cos 2
2 2 2 2 2
2 2 2
P2 m2 g y2 m2 g[a1 sin 1 a2 sin(1 2 )]
d L L
2) Lagrange's equation ( ) q 1 , q 1 , 1
dt q q 2
2 2
2
L K P ( K1 K 2 ) ( P1 P2 )
1 1
(m1 m2 )a1 1 m2 a2 (1 2 ) 2 m2 a1a2 (1 12 ) cos 2
2 2 2 2
2 2
(m1 m2 ) ga1 sin 1 m2 ga2 sin(1 2 )
L
(m1 m2 )a1 1 m2 a2 (1 2 ) m2 a1a2 (21 2 ) cos 2
2 2
1
d L
(m1 m2 )a1 1 m2 a2 (1 2 ) m2 a1a2 (21 2 ) cos 2
2 2
dt 1
L
(m1 m2 ) ga1 cos1 m2 ga2 cos(1 2 )
1
L K P ( K1 K 2 ) ( P1 P2 )
1 1
(m1 m2 )a1 1 m2 a2 (1 2 ) 2 m2 a1a2 (1 12 ) cos 2
2 2 2 2
2 2
(m1 m2 ) ga1 sin 1 m2 ga2 sin(1 2 )
L
m2 a2 (1 2 ) m2 a1a21 cos 2
2
2
d L
m2 a2 (1 2 ) m2 a1a21 cos 2 m2 a1a212 sin 2
2
dt 2
L
m2 a1a2 (1 12 ) sin 2 m2 ga2 cos(1 2 )
2
2
d L L d L L
1 2
dt 1 1 dt 2 2
m2 ga2 cos(1 2 )
3
(m1 m2 ) a12 m2 a2 2 2m2 a1a2 c o s 2 m2 a2 m2 a1a2 c o s 2 1
2
m2 a2 m2 a1a2 c o s 2 2
2 2
m2 a 2
1
2
* M(q) is symmetric.
4
Computed-Torque Control
(⇒ feedback linearization of nonlinear system)
Consider robot arm dynamics :
then,
e qd q
e qd q M (qd e) ( N d )
qd e M 1 ( N d )
①⇒ e qd M 1 ( N d ) e qd M 1 ( N d )
5
②⇒ M (qd u ) N ---④
M (qd u ) N
u K p e K v e
Then, equation ④ becomes M (qd K v e K p e) N
Now, we want to find gains for u.
Closed-loop error dynamics
e K v e K p e w e u w K v e K p e w
(←③):
e K v e K p e w
e K p e K v e w
in state-space form :
d e 0 I e o
dt e K p K v e I
w
6
[Ex] Calculate the robot dynamic equation of the two elbow arm,
desired trajectory qd (t ) has the components:
1d g1 sin( 2t / T )
2 d g 2 cos( 2t / T )
7
(2) Selecting control input u(t) as PID :
u K v e K p e K i ( e)
Substituting u into computed-torque control ( M (qd u ) N ),
M (qd K v e K p e K i ) N
0 1 0 0
d
e 0 0 1 e 0 w
dt
e K i Kp K v e 1
∴ c Mˆ (qd u ) Nˆ ---②
(FACT) Even if Mˆ M and Nˆ N the performance can be quite
good if outer-loop gains (PID or PD) are selected large enough.
8
(4) PD-plus-Gravity controller
When Mˆ I , Nˆ G (q ) qd , u K v e K p e ②
Then, c Mˆ (qd K v e K p e) Nˆ
qd K v e K p e G (q) qd
⇒ c K v e K p e G (q)
(FACT) • When arm is at rest, the only nonzero terms in the
dynamics are gravity G(q), disturbance. The PD-gravity controller c
Theorem
Suppose that PD-gravity control is used in arm dynamics:
M (q )q N (q, q) d ,
9
zero.
(Proof) F.L.Lewis, “Control of Robot Manipulators,” Macmillan
publishing company.
Theorem
If classical PD joint control is applied to each joint and e(0)=0,
e (0)=0, the position and velocity tracking errors are bounded within a
1
ball whose radius decreases approximately (for large K v ) as .
Kv
Note
PD joint control is often suitable for tracking control. However,
steady-state error exists due to gravity. This can be removed using PID
joint control law.
ex)
Ki , where : intergrator output
10
11
ex)
∴ In case of PI controller
• If actuator saturated, input to the integral controller of PI
controller: ei 0
12
13
14
15