1. Introduction
Contemporary markets tend to constantly increase the number of product variants, and product life cycles are also changing. Demand for product families in small batch sizes is increasing, therefore reconfigurable tooling is becoming a key technology for fulfilling production requirements [
1,
2,
3]. For that reason, Stewart platforms, which provide precise motion in six degrees of freedom, are being introduced in production scenarios where continuous positioning and orientating is required. In addition, parallel robot architectures provide high rigidity, high payload-to-weight-ratio, high positioning accuracy, and low inertia of moving parts subjected to high loads. Compared to anthropomorphic robotic arms, they do not have such a wide range of displacements, but they present higher stiffness and precision as well as a simpler solution to the inverse kinematics equations [
4,
5]. Previous benefits, in addition to the reduction in hexapod production costs, justify the use of Stewart platforms in industrial applications.
Stewart platforms can be found in different domains, such as machinery [
1,
6], test beds [
7], real-time simulators for vehicles [
2,
8], and antenna/solar orientation platforms [
9,
10]. Typically, every arm is controlled by an electro mechanical actuator (EMA), but hydraulic actuators are more suitable for large loads [
2,
11], and piezoelectric actuators are commonly used in micro- or nano-scale platforms (found in biomedical science, optics, and microscopical devices) [
12]. Stewart platforms are frequently used as camera levelling bases in a wide range of applications. These devices can be found in rescue operations, traffic control, identification, surveillance of frontiers, agriculture control and fire detection in forest areas, among others. The use of Stewart platforms for levelling cameras has been introduced in automated non-destructive inspections (NDI) in order to reduce labour costs [
13,
14]. Thermographic cameras, sensitive to radiation in the infrared spectral range, are frequently used in combination with external thermal stimulation systems. Thermographic inspection is normally conducted statically by setting the infrared camera at a fixed distance from the object [
15]. However, this approach is subject to the curvature changes in the object inspected so that the spatial resolution is reduced due to the difference in distance between the camera and the target. A different approach in thermographic NDIs consists of applying the inspection dynamically by moving the sensor over the surface of interest. This approach improves the inspection quality, because it permits the detection of smaller defects, but requires higher performance in positioning control systems.
Figure 1 illustrates the influence of using static positioning by means of two infrared radiation (IR) images, only one being properly focused.
The control of Stewart platforms must deal with a complex kinetics calculation. It is a well-known fact that, for serial robot manipulators, the solution of a forward kinematics problem is easier than an inverse kinematics problem. However, in parallel robots the situation is just the opposite [
4]. Several solutions for the forward and the inverse kinematics are proposed in the literature. The inverse kinematic problem, i.e., obtaining the joint space position or the six link lengths given the position/orientation of the platform or the Cartesian space position, is straightforward to calculate at Stewart Platforms. On the contrary, the forward kinematics problem, viz. the determination of the Cartesian space position for a given joint space position, is more demanding computationally [
16]. The most common approach is to calculate the closed-form solution to the inverse kinematic transformation, and then estimate the forward kinematic transformation using the Newton–Raphson method [
7]. A different approach for solving the algebraic system of equations utilises the reduced Gröbner basis form of the system of equations under total degree term ordering of its monomials and Sylvester’s Dialytic elimination method [
17]. Particle swamp optimisation is another powerful tool that can be used for analysing different robot configurations [
18].
In some cases, the kinematic nonlinearity of robotic actuators is a source of error which requires special consideration [
3,
6]. The use of appropriate algorithms considerably reduces the calculation time of the kinematics, and the use of simulation software is often extended to dynamics modelling (considering the mass and the stiffness of the moving platform and legs) [
19,
20]. By using a combination of design and finite elements, an integrated approach can be developed that simulates the machine dynamics and solves the kinematics, taking into account rigid body dynamics, vibration and strength [
21].
The control strategy must command the actuators to achieve precise positioning, minimise the error, and deal with system uncertainties. A proportional–integral–derivative controller (PID) is a simple closed-loop method to correct uncertainties, the proportional integral (PI) controller version being one of the most popular control approaches in the market. Several control strategies were proposed in the literature to improve the performance of actuators in parallel robot architectures, nevertheless, most of them were validated only through simulations. Among other schemes, the use of inverse models, which represent the behaviour of a system mathematically, may become a simple approach to improve the controller performance when compared to PI controllers. This strategy corrects known nonlinearities in open loop control, even though errors caused by uncertainties and external perturbations are not corrected. The combination of inverse models with feedback controllers [
8], such as H-infinity [
11] and genetic algorithms [
22], enables us to achieve higher accuracy. Another approach is the use of inverse models to condition the closed loop feedback signal [
9]. These schemes were validated by simulations.
Sliding mode control (SMC) is a nonlinear control approach that drives the state trajectory of the system onto a specified sliding surface and maintains the trajectory on that surface for the subsequent time under system uncertainties and perturbations. However, in conventional SMC design, a priori knowledge of the bounds on system uncertainties must be acquired [
23,
24,
25]. Several SMC-based strategies to control Stewart platforms are proposed and verified by simulations: SMC with perturbation estimation [
26], integral SMC [
5], continuous higher order SMC [
27], and SMC with fuzzy tuning design [
28]. The combination of SMC with estimation techniques, such as state observers [
29], allows the conditioning of high frequency input signals [
13], and estimating variables when not all states are measured directly, by using super-twisting algorithms [
2] and adaptive super-twisting algorithms [
10].
This paper presents the development of an SMC aimed at positioning an inspection camera precisely over a Stewart platform. This device is designed to perform inspections on aeronautical coupons, which must fulfil severe quality standards, so that any positioning enhancements leads to substantial improvements in the defect detection ratio. In the literature, the application of SMC in Stewart platforms is validated mainly by simulations. In this study, the proposed SMC strategy is validated experimentally as an alternative to the vendor-provided PI controller, which was producing improperly focused images for the inspection application because it was not accurate enough. The experimental results show that the overall platform performance can be improved by using this control scheme. To develop the SMC strategy, in the first place the inspection platform is analysed and modelled in
Section 2, where the inverse and forward kinetics are calculated. Additionally, the system dynamics are modelled in this section, which serve as basis to develop the SMC, in
Section 3. The performance of the proposed control scheme is evaluated and compared with the vendor-provided PI controller in
Section 4. As a final point, discussion conclusions are presented in
Section 5.
3. Sliding Mode Control Calculation
The control strategy must command each actuator in order to achieve the desired trajectory with a precise platform positioning and orientation, minimizing error and dealing with system uncertainties. The proposed control scheme is shown in
Figure 5. The platform setpoint is given in terms of position and orientation (a), so at first the trajectory must be transformed to the equivalent actuator length setpoint (b) by using the inverse kinematics explained in
Section 2.1. Then, an SMC closed loop control estimates the voltage outputs (c) that are needed to achieve each actuator length, based on the EMA setpoints (b) and the measured lengths (e). The Stewart platform EMAs are controlled by the SMC voltage input (c) and affected by possible disturbances (e.g., external forces, non-linearities) (d). Finally, the EMA lengths (e) are measured by the encoders and transformed to the equivalent platform position (f), which is done using the forward kinematics shown in
Section 2.2. The inverse and forward kinematics have been studied previously, therefore in this section the SMC strategy is developed.
The Stewart platform native closed loop control was a PI control strategy that provided a stable response. The major drawback of this control was that it did not provide an accurate platform control, therefore the NDI camera produced a low-quality IR image. To improve the positioning accuracy of the platform, an SMC strategy was chosen, because it showed accurate results in previous studies. SMC is a nonlinear control approach that drives the state trajectory of the system onto a specified sliding surface and maintains the trajectory on that surface for the subsequent time. However, in conventional SMC design, a priori knowledge of the bounds on system uncertainties must be acquired in order to calculate the sliding gain value that can surmount these uncertainties [
23]. Perturbation estimation strategies were studied in the literature [
23,
30]: one common approach to estimating perturbation
pest is as in Equation (15). Then, the system model becomes the following:
where
represents the error between the real and estimated perturbations at the system. To design the SMC controller, the position error is defined as follows:
where
ldi represents the desired length. In the rest of this section, the time indices have been omitted for the sake of brevity. Because the dynamic system of the EMA is a second-order system, a second-order PID sliding surface was selected:
where
is the proportional sliding gain and
is the integral sliding gain. Studies show that the use of output integral sliding mode control considerably improves the stabilisation of the desired position of platform
p as well as the velocity with which it stabilises [
13].
For the system represented with Equation (17), with sliding surface defined in Equation (19) and the position error given by Equation (18) which satisfies
, the control law results as follows, as proved in [
30]:
where
η is a positive switching gain and
sgn(s) represents the signum function, as defined in the following expression:
The following candidate Lyapunov function was selected for analysing the stability of the system. Its first derivative can be obtained as:
By taking the time derivative of both sides of Equation (19), the following sliding dynamics can be generated:
Then, substituting Equation (23) into Equation (22) with Equation (20) also taken into account yields:
If the gain is designed to meet the condition
where
> 0 is an arbitrary constant, then it follows that for
,
Hence, considering Equations (24) and (29), one can derive that
It can be concluded that the states can reach the switching surface
s = 0 in finite time. Equation (30) also ensures that the states will be confined to the surface
s = 0 for all future time, because leaving the surface requires
to be positive, which is impossible as the above inequality implies. Thus, the switching variable
as
. According to the definition of
s, we can conclude that the tracking error satisfies
and
and that
and
as
. Therefore, the SMC controller guarantees a zero steady-state tracking error [
30].
Due to the discontinuity of the sign function, the control input may produce chattering. To reduce this phenomenon, the boundary layer technique was used by replacing the signum function by hyperbolic tangent function. Hence, the proposed control law in Equation (20) using a hyperbolic function and the proposed dynamic correction gives the following:
The equivalent control scheme for Equation (31) is presented in
Figure 6.
4. Experimental Results
In this section, the performance of the proposed SMC strategy is analysed experimentally. In order to evaluate the SMC strategy, both accuracy and power consumption were compared with the native PI control. For each analysis, graphs and average data were used to analyse the system behaviour. NI MyRIO hardware system and NI LabVIEW 2017 software (National Instruments, Austin, TX, USA) were used to control the Acrome Stewart platform (Acrome, Istanbul, Turkey). Six linear DC actuators drove the platform and provided length feedbacks analogically. The MyRIO PWM output was applied as a voltage to the DC motor via dual H-bridge motor drivers, which actuated as current amplifiers.
The monitoring and control loops were executed in the Xilinx Z-7010 RT processor at 1 kHz. The PWM output, actuator lengths and setpoint data were registered at 50 Hz. The SMC gains were adjusted experimentally: several trials were carried out to tune the control gains adequately and obtain the optimal response of the controller. Low gain values produced high error and a slow system response. On the other hand, it was observed that using control gains that were too high led to chattering and an unstable system response. The PI original gains and the SMC-adjusted gains are displayed in
Table 1.
In order to perform the surface inspection, the platform must follow the fixed sweep path schematically marked in black in
Figure 2b, which corresponds to the trajectory shown in
Figure 7a. In this study, the first two sweeps were analysed to limit the amount of data. The trajectory firstly requires a displacement along the
x axis at constant speed, and then, a second displacement in the opposite
x direction at a different
z level. As mentioned in
Section 2, the positioning must be accurate, and particularly, so must the distance between the surface and the camera lens (
z axis). Variations lower than +/−1 mm were required to obtain valid inspection images. By using the inverse kinematics, the required leg length setpoint profile was calculated from the inspection trajectory, which is shown in
Figure 7b. Because the platform moved along the
y axis, each pair of legs moved with the same profile with the following combinations:
l1–
l6,
l2–
l5 and
l3–
l4.
To evaluate the positioning accuracy of each control strategy, both the trajectory error and length error were analysed. The absolute position and angles measurements were not available, therefore the forward kinetic transformation was used to calculate these data from the known actuator lengths.
Figure 8a,b shows the length errors in PI and SMC strategies. The PI control produced a smooth actuator response which caused length deviations up to +/− 2.0 mm, as can be observed in
Figure 8a. In this figure we can observe that the error in each pair of EMAs
l1–
l6,
l2–
l5 and
l3–
l4 is similar. The SMC provided a better performance and reduced the maximum actuator length error to less than +/− 0.5 mm, as depicted in
Figure 8b.
PI compared with the SMC shows a similar response during the first 0.5 s, when a continuous setpoint is required. Under those conditions, the integral gain in both control strategies reduced the error successfully. PI command was stable due to the low proportional gain, whereas SMC corrected the actuator positions continuously. Nevertheless, the accumulated error in both strategies was practically the same during this fixed period of time, as shown in
Figure 9. Afterwards, as the setpoint commands changed and EMA lengths variations were required, SMC effectively controlled the EMA lengths within an error of less than 0.5 mm, proving the great response of this control strategy. On the contrary, using the PI EMAs errors increased up to 2 mm: the PI control does not provide a proper PWM command to achieve the EMAs setpoints. The PI control showed a slight difference between the upper error (+2 mm) and lower error (−1.5 mm). This deviation was caused by the platform weight, which helps to shorten the EMAs downwards, but impedes their extension upwards.
The errors in the EMAs mentioned above caused deviations in the positioning of the Stewart platform.
Figure 8c,d shows that both control strategies followed the desired trajectory. However, only SMC achieved a positioning
y error of between +/− 1 mm. Additionally, the positioning error along the
x and
z axes was considerably higher when using the PI control. Hence, the PI control, which is not accurate enough, caused most of the recorded images to be defocused. In both strategies, the
x and
z axis deviation was remarkably smaller than in the
y axis, mainly because the movement was in the
y direction in the plane
x/
y: Because each pair of actuators was symmetrically placed along the plane
x/
y, the control in the
z axis was more precise and deviations were compensated between the pairs of actuators. Although SMC presented deviations higher than 1 mm in the
x axis, the NDI exhibited a sharp image quality.
Another approach to evaluate the system accuracy is to compare the accumulated absolute EMA error, which is the sum of the absolute error of each actuator.
Figure 8 represents the absolute error comparison between PI and SMC. Whereas the PI average error is 3.45 mm, the SMC average error is 0.78 mm. Only when no dynamic response of the EMAs was required, were the PI and SMC absolute errors practically the same. Hence, it may be concluded that the accuracy provided by the SMC strategy is remarkably higher.
To analyse the power consumption, its value was estimated from the duty cycle commands. Once the duty cycle and the actuator maximum consumption were known, the power of each actuator was calculated.
Figure 10 shows that the PI control required a smooth power variation. The SMC, as a nonlinear control, required a more demanding peak–valley consumption. In any case, the average power consumption for both control strategies were quite similar: PI = 9.41 watts and SMC = 9.62 watts.
5. Conclusions
The use of Stewart platforms as NDI orientation apparatus offers six degrees of freedom, high rigidity, a high payload-to-weight-ratio, and low moving inertia. The aeronautical inspection application presented in this paper requires highly precise positioning, otherwise, non-desirable blurred imaging is obtained affecting the quality of the inspection system. A new control strategy approach, based on the system model analysis, was proposed and validated experimentally as a solution to overcome positioning errors.
The Stewart platform is driven by six electro mechanic actuators that must be coordinated to achieve the desired trajectory and position. The calculation of the kinematics of the mechanism is necessary to obtain the relationship between the position/orientation of the platform and the EMA lengths. Whereas the inverse kinematics can be calculated directly analytically, the forward kinematics require the use of the Newton–Raphson method to find a solution. As an alternative to the native proportional integral (PI) control, which was unable to position the platform accurately enough, a sliding mode control (SMC) system was proposed. The SMC strategy was calculated based on the actuator second-order model with a single element. Interactions between actuators and external disturbances were modelled as perturbations.
The validation, which was performed in the physical technology demonstrator, shows that SMC can be a successful solution to control Stewart platform devices. In comparison with the vendor-provided PI control strategy, the SMC achieves higher performance while executing the actuators commands and desired platform positioning: the average absolute error is reduced from 3.45 mm in PI to 0.78 mm when using the SMC approach presented here. In this range of error, the NDI system succeeds in obtaining sharp images. Although the PI control demands a smoother actuator response, the experimental results prove that the power consumption is similar in both control approaches.
The proposed device was constructed to perform analyses of small plain coupons; however this control scheme can be implemented in bigger parallel platforms and anthropomorphic robotic arms aimed at structure diagnoses of bigger and more complex structures, e.g., aircraft components, car parts, etc. Future research on the topic should be focused on the comparison of SMC with other robust control schemes, such as fuzzy logic controllers, H-infinite and artificial neural networks, and on the development of a hybrid SMC, e.g., fuzzy logic SMC and artificial neural network SMC, to verify whether there is room for improvement.