CHAPTER 6 Control strategy for Safety Operation with Contact-loss for n-DOF serial Hydraulic
6.2 Modified position-based impedance control with virtual energy tank
6.2.1 Contact-loss consideration-based virtual energy tank and passivity control.
In this section, a virtual energy tank is employed with passivity control scheme to deal with sudden contact-loss situation. The schematic diagram for impedance control with virtual energy tank and passivity control algorithm is shown in Figure 6-3.
Inverse
kinematic EHA Forward
kinematic +–
+–
[Ke],(xe)
BSMC Manipulator
Environment Modify trajectory
ut
yt
ufi
x x x
c c c
q q q
d d d
x x x
x x x
x
Torque control Position control
(SMC)
Sensor Force tracking
impedance control
Fd
Virtual Energy tank κ
κ
β β
+ –
α α α,β,γ
ref ref ref
x x x
Fext
1 – β
q q q
Adaptive
law
τd u τ
Fuzzy logic control
Robust gains +–
Neural network Back propagation
Control gains Initialization
Figure 6-3 Schematic diagram of the impedance control with virtual energy tank and passivity control for contact lost consideration.
From the previous chapter, the position-based impedance control takes the form of:
m m m imp
D X B X K X u (6.1)
imp Pf ext d If
ext d fsign ext du K F F K F F η F F (6.2)
In this section, an accidental contact-loss due to the step-change of environment is considered as a fault. Hence, a fault-detection-based virtual energy tank is suggested to decouple force regulation as prior safety criterion. Define xt is a state associated with the tank that stores energy. The dynamics of the virtual energy tank variable is expressed by [91]:
1 T T
t t m f t
x x x B x x u u (6.3)
where ut is the control input of the tank, and uf is the additive control input signal of the force tracking impedance control scheme. ut and uf are calculated by:
0 0
fi
T t t
u κ x
κ x
u (6.4)
with κ is described as
1( ext, )t 1 t imp
κ F x u (6.5)
Three switching parameters α, β, γ are defined as the following:
1 if
0 otherwise
t l
T T
(6.6)
0 if
1 otherwise
u
Tt T
(6.7)
1 if 0
0 otherwise
T
imp
x u (6.8)
where Tt is energy stored in the virtual tank; α is a switched parameter when the energy tank reaches its lower bound Tl; β is a switched parameter in case the energy tank from the force/impedance controller exceeds an upper bound Tu; then this parameter is used to detect an occurrence of contact-loss; γ is presented to guarantee the stability of the overall system.
Remark 6-1: The value of the lower bound T is set to be greater than 0 to avoid the singularity. In l this work, the lower bound is set at 0.1, and the parameters α is consequently equal to 1.
The energy stored in the virtual tank Tt is calculated as 1
2
T
t t t
T x x (6.9)
Finally, extended dynamics of the impedance with contact-loss consideration is rewritten as the following:
m m m imp cl
D X B X K X u (6.10)
where uimp cl is a modified control input signal of impedance/contact-loss:
imp cl imp f
u u u (6.11)
As can be seen in Equation (6.11), the additive term uf and switching parameters β, and γ are supplemented to the force tracking control to decouple the signal from the force regulation when contact- loss happens. To demonstrate the stability of the closed-loop control system, the following candidate Lyapunov function is introduced [101]:
1 1 1
( ) ( )
2 2 2
T T T
imp m m t t
V x D x x x K t x x x (6.12)
Taking the derivative of the Lyapunov function, one obtains:
T T T
imp m m t t
V x D x x K x x x (6.13) Substituting Equation (6.1) into Equation (6.13) yields:
1
T T T T T
imp imp m t t m imp
V x u x B x x x x B x x u κ x (6.14)
T T T T T
imp imp m m imp t
V x u x B x x B x x u x κx (6.15) Substituting Equation (6.5) into Equation (6.15) results in:
1
T T T T T
imp imp m m f imp
V x u x B x x B x x u x u (6.16) As introduced in Equation (6.6), to avoid the singularity, the lower limitation Tl should be set to be greater than zero and then, the switching α should be kept being 1 at all times. Therefore, the Equation (6.16) equivalents to:
1 (1 )
T T T T T
imp imp m m imp imp
T T
m imp
V
x u x B x x B x x u x u
x B x x u
(6.17)
Combining with the condition in Equation (6.8), then Equation (6.17) becomes:
(1 ) 0, 0
(1 ) 0, 0
T T T
m imp imp
imp T T
m imp
V if
if
x B x x u x u
x B x x u
(6.18)
Thus, the closed-loop control system with energy tank is passive stable.
6.2.2 Modification of trajectory
The previous section presented the effectiveness and stability of using the energy tank for contact- loss detection. However, this action only helps to decouple the signal command from force control from the overall controller scheme. Thereby, the end-effector follows the setup desired trajectory. Moreover, due to reaching the upper bound of the energy tank, the end-effector may attempt to regulate force until draining all energy in the virtual tank in some cases. Consequently, unsafe motions may be executed.
To completely exhibit safety motion when contact-loss happens, a new trajectory should be designed to smooth the motion of the end-effector. For this purpose, a controlled shaping function φ(ζ), where ζ is a shift variable, is introduced as [93]
max
max
1 if 0
1 1 cos if 0 0
2
0 otherwise
T
di i
i T
i di i i i
i
F p
F p d
d
(6.19)
κ κ (6.20)
where i pi x sign Fsi ( di) (i = 1,2,3) is a shifted variable, ∆p is the error between the modified trajectory and actual position, xsi is an arbitrary constant that describes a robust region which denotes the distance between the end-effector to the set-point for shaping motion, and dimax is an arbitrary constant that denotes the width of the region for shaping. It follows that if the desired force Fdi and the position error ∆p encloses the robust region and passes the frontier, then the controller should be deactivated.
The role of designing the shaping function is to handle unexpected motion when contact-loss happens. A shaping function ρ is introduced to generate a smooth transition between the force and impedance control; thus, providing a smooth transition in position performance of the end-effector.
After generating a smooth transition between force and impedance control when contact loss occurs, the next important step is designing a suitable set-point such that the robot can follow without shock or unexpected motion. In order to avoid fast and unexpected motions in case of contact loss, which are caused by the impedance controller for large deflection from the set point, the set-point of the impedance control, called as commanded trajectory xc, is set close to the contact point xcontact as
c fade contact
x x x , where xcontact xenv is the measured position of the end-effector at t0 and is a small number (Indeed, when contacting with the environment, the measured position of the end-effector is same as the environment. In the simulation, for illustration of impedance control, xcontact is the actual position of the end-effector and this variable is different from the location of environment). A possible fading function is applied to obtain a continuous transition to the new set point. The flowchart for the fading trajectory is illustrated in Figure 6-4 in which the set-point is determined based on the switching parameter β and comparison between the current and last position based-time-delay than using pre- determined or knowledge of the location of environment as in [92,93].
βlast=1 β=1 Initial
Constrained motion Contact-loss
happen
xc = xref – ε xc = xref
Time update βlast=β
Yes No
Figure 6-4 Strategy of fading function for smoothing trajectory.