Next Article in Journal
Oral Health and Related Factors Associated with General Health and Quality of Life
Previous Article in Journal
Tunable Terahertz Metamaterial Using an Electric Split-Ring Resonator with Polarization-Sensitive Characteristic
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Design of a Predictive RBF Compensation Fuzzy PID Controller for 3D Laser Scanning System

1
College of Mechanical and Electrical Engineering, Hohai University, Changzhou 213022, China
2
Jiangsu Key Laboratory of Special Robot Technology, Hohai University, Changzhou 213022, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2020, 10(13), 4662; https://doi.org/10.3390/app10134662
Submission received: 8 June 2020 / Revised: 28 June 2020 / Accepted: 4 July 2020 / Published: 6 July 2020
(This article belongs to the Section Mechanical Engineering)

Abstract

:
A new proportional integral derivative (PID) control method is proposed for the 3D laser scanning system converted from 2D Lidar with a pitching motion device. It combines the advantages of a fuzzy algorithm, a radial basis function (RBF) neural network and a predictive algorithm to control the pitching motion of 2D Lidar quickly and accurately. The proposed method adopts the RBF neural network and feedback compensation to eliminate the unknown nonlinear part in the Lidar pitching motion, adaptively adjusting the PID parameter by a fuzzy algorithm. Then, the predictive control algorithm is adopted to optimize the overall controller output in real time. Finally, the simulation results show that the step response time of the Lidar pitching motion system using the control method is reduced from 15.298 s to 1.957 s with a steady-state error of 0.07°. Meanwhile, the system still has favorable response performance for the sinusoidal and step inputs under model mismatch and large disturbance. Therefore, the control method proposed above can improve the system performance and control the pitching motion of the 2D Lidar effectively.

1. Introduction

With the development of laser technology, 2D Lidar has been widely used in various fields such as map navigation [1,2], simultaneous localization and mapping (SLAM) [3,4] and robots [5,6]. However, the exploration of the environment requires more information dimensions and a more comprehensive perspective with the advancement of navigation and robot technology. Therefore, 3D Lidar technology emerges [7,8,9,10], but mature multi-line 3D Lidar is too expensive to be widely used. By contrast, a 3D laser scanning system formed by 2D Lidar with the pitching motion mechanism is more cost-effective, which can be reasonably applied to multiple fields [11,12,13,14,15].
For the 3D laser scanning system, many researchers focus only on the optimization of the calibration process [16,17,18,19,20], while neglecting the influence of 2D Lidar motion control on the scanning results. In fact, there is a deviation between the actual pitching motion of the 2D Lidar and the ideal motion. The size of the deviation directly affects the scanning results of the system. The speed of the 2D Lidar pitching motion should be adapted to different objects or environments, so the accuracy of the obtained data information can be improved, and the phenomenon of target point loss and overlap can be reduced. In short, it is important to design a control method that can effectively and accurately control the pitching motion of the 2D Lidar.
Proportional integral derivative (PID) control is one of the most commonly used control methods in various fields. Since 1942, researchers have put forward many PID control methods [21,22]. However, the controlled object generally has great uncertainty or complex nonlinearity in practical applications. For the pitching motion of the 2D Lidar in the article, the 2D Lidar rotates around the central axis of the system, so the torque generated by gravity will change nonlinearly with the pitching angle. Moreover, the pitching motion is accompanied by nonlinear and unknown friction torque. Therefore, the model of Lidar pitching motion is a complex system with unknown nonlinearity. For this kind of model, how to adjust PID parameters properly is not an easy task. Most tuning methods are mainly determined by the system model [23,24]. Bassi S. aimed at a linear motor system to put forward a PID tuning method, which used particle swarm optimization (PSO) to tune PID parameters [25]. Qing Wang used the internal model control (IMC) to adjust PID parameters for integrator/dead-time processes [26], but it cannot deal with an unknown disturbance. Julio E. proposed a unified approach to tune PID controllers for stable, integrative and unstable dead-time processes [27], which further optimizes the robustness of the system. However, its control performance for nonlinear systems is still poor. Although traditional PID control is widely applied in various industrial processes, its performance may not always be satisfactory due to unknown and nonlinear effects.
At present, many intelligent control algorithms have been proposed and widely used. Many of these algorithms can be used to reasonably improve the PID controller. Zadeh L. A. firstly put forward fuzzy set theory [28]. Its core is to establish a mathematical model of language analysis for complex systems or processes. Thus, the modeling problem of the system, which cannot be accurately described by a rigorous mathematical method, is solved. Since nonlinear systems often occur in practical applications, fuzzy control is required to solve these control problems [29,30]. Chiou used PSO to effectively search the optimal fuzzy PID controller parameters of an active automobile suspension system, which improved the nonlinear defects in the system [31]. Savran proposed a fuzzy adaptive adjustment method for PID parameters in a nonlinear process [32]. However, the fuzzy rules above are all based on long-term practical experience accumulated by the operators; such practical experience is not easy to obtain, which is a key issue in fuzzy adaptive PID control.
Neural networks are also an important branch of intelligent control algorithms. They can be used to solve the control problems of nonlinear and uncertain systems. Wei He studied the tracking control problem of an uncertain n-link robot with all-state constraints, and designed an adaptive neural network control to deal with the uncertainty and interference of the system [33]. Lei Liu used a radial basis function (RBF) to identify unknown dynamic errors in nonlinear switching systems, but there was always a certain steady-state error in the identified output value [34]. In addition to the intelligent control algorithms mentioned above, model predictive control, as a new type of computer control algorithm, has good prediction ability, which can optimize and compensate the controller output in real time. In [35], Jose R. used a feedforward neural network to fit the unknown nonlinear autoregressive moving average (NARMA) model; combined with predictive control theory, the control output signal is obtained by using the gradient descent method to minimize the error. Yuzhong Wang proposed a new PID control method that inherits the advantages of fuzzy PID control and predictive function control [36]. It used the current process input signal to predict the future process to improve the traditional fuzzy PID control. Therefore, it is reasonable to apply a neural network and the prediction ability of predictive control to improve PID control.
This paper proposes a predictive RBF compensation fuzzy PID controller (PRFPID) to control the pitching motion of 2D Lidar quickly and accurately. The structure of the article is as follows: In Section 2, a mathematical model of 2D Lidar pitching motion is established. Section 3 introduces the design of a feedback compensation fuzzy PID controller (FPID), which uses feedback compensation to eliminate the nonlinear part of the system and a fuzzy algorithm to adaptively adjust PID parameters. Section 4 introduces the design of the RBF compensation fuzzy PID controller (RFPID), which uses an RBF neural network to fit the unknown nonlinear part of the system. Then, the PRFPID is proposed by using predictive control to optimize the output of the controller based on the RFPID. In Section 5, the proposed PRFPID is simulated and compared with FPID and RFPID on a Lidar pitching motion system. In Section 6, the results reveal that the PRFPID can achieve favorable tracking performance and disturbance rejection capability.

2. Lidar Pitching Motion Model

As shown in Figure 1, the pitching device drives the 2D Lidar to swing up and down and scan the target object or environment. The planar 2D data from the 2D Lidar and the pitching angle of the encoder can be collected. Through an improved simplex calibration algorithm, the 2D data and the pitching angle information are converted to construct 3D data of the point cloud image of the real environment.
The 3D laser scanning system can be simplified to a schematic diagram to better analyze the Lidar motion process, which is shown in Figure 2. The input signal u(t) of the driver controls the output torque of the DC servo motor. Through the reducer, the output shaft of the motor is connected to Pole 1, which drives the 2D Lidar to pitch. The 2D Lidar is connected to the encoder through Pole 2, and the output pitching angle information can be gained. In the pitching motion, the 2D Lidar will be subjected to the torque of gravity and friction torque. Thus, the relationship between the input signal u(t) and the output pitching angle θ is
θ ¨ = K u K m u ( t ) J R + G r c o s θ J F f ( t ) J
where θ is the pitching angle, Ku is the amplification coefficient of the pulse width modulation (PWM) power amplifier, Km is the torque coefficient of the motor, R is the armature resistance, G is the gravity of the 2D Lidar, r is the distance from the center of Lidar to the center of rotation, J is the moment of inertia of the Lidar around the system rotation center, and Ff(t) is a friction torque based on the Stribeck friction model.
As shown in Figure 3, the Stribeck curve indicates the relationship between friction torque and velocity at different friction stages. It can be expressed as
F f ( t ) = { F m F ( t ) > F m F ( t ) F m < F ( t ) < F m F m F ( t ) < F m ( | θ ˙ ( t ) | < α ) F f ( t ) = ( F c + ( F m F c ) e α 1 | θ ˙ ( t ) | ) s g n ( θ ˙ ( t ) ) + k v θ ˙ ( t ) ( | θ ˙ ( t ) | > α )
where F(t) is the driving torque, Fm is the maximum static friction torque, Fc is the Coulomb friction torque, kv is the proportional coefficient of the viscous friction torque, θ is the pitching angle, α is the critical angular velocity, and α1 is 0.1.

3. Design of FPID

According to Section 2, the system contains nonlinear gravity torque and unknown friction torque. Therefore, the traditional PID control can hardly achieve the expected effect. For the nonlinear part of gravity, this section presents a control strategy based on FPID. As shown in Figure 4, the nonlinear part is firstly eliminated by feedback compensation. Then the relationship among the error e, the rate of error change ec, and the three PID parameters can be obtained through general fuzzy theory. Accordingly, the fuzzy rules are designed to adaptively adjust the three PID parameters.

3.1. Feedback Control Law

The feedback compensation can be used to eliminate the known nonlinear gravity of the system. The PID control law based on feedback compensation is
u 1 = J R K u K m [ G r c o s θ J + θ ¨ d + k p e + k i e d t + k d e ˙ ]
where, u1* is the control law of feedback compensation, θd is the ideal angle value, e is the deviation between the actual output value and the ideal angle value, kp, ki, kd are the proportionality coefficient, integral coefficient and derivative coefficient respectively.

3.2. Fuzzy Adaptive Controller Description

Fuzzy control is a type of rule-based control, which directly adopts language control rules. Since it does not require establishing an accurate mathematical model of the controlled object, the fuzzy control accuracy is often unsatisfactory. In this paper, it is combined with a PID controller to adjust the three PID parameters to enhance the performance of the controller. The input variables are e and ec, and kp, ki and kd are output variables. Thus, the Mamdani two-input, three-output fuzzy controller is designed. The fuzzy operators are shown in Table 1.
Firstly, the basic domains of the input variables are determined, as [−xe, xe], [−xec, xec]. The quantization factors k1, k2 are introduced to transform the input variables from their basic domain to the domain of the corresponding fuzzy set, as [−ne, ne], [−nec, nec]. The transformation relationship is k1 = ne/xe, k2 = nec/xec. The output variables are in the domain of the fuzzy set, as [−np, np], [−ni, ni] and [−nd, nd]. They must be converted into an acceptable domain of the controlled object. Hence, proportional factors of k3, k4 and k5 are introduced. Similarly, the basic domains of output variables are [xp1, xp2], [xi1, xi2] and [xd1, xd2]. According to the basic domains of output variables, the controller directly uses the fuzzy algorithm to adjust the PID parameter values. The transformation relationships are k3 = 2np/(xp2 − xp1), k4 = 2ni/(xi2 − xi1) and k5 = 2nd/(xd2 − xd1). The input and output variables are selected as [−3, 3], [−3, 3], [−0.3, 0.3], [−3, 3], [−3, 3] and the fuzzy language set is expressed as [NB NM NS ZO PS PM PB].
Then the proper membership functions are set. Different shapes of the membership functions will cause different influences on the control performance. A low-resolution membership function should be selected for large errors, and a high-resolution membership function should be selected for errors that are close to zero. The triangular membership function and the sigmoid membership function are adopted respectively, which are shown in Figure 5.
Fuzzy rules are the core of the fuzzy controller, which describe the fuzzy relationships between PID parameters and e, ec. The effect of the PID parameters on the system performance is shown in Table 2.
According to Table 2, the PID parameters can be obtained to satisfy the different e and ec. Combined with the general rules in fuzzy adaptive PID control [37], the specific fuzzy rules are shown in Table 3, Table 4 and Table 5.
Thus, according to the above fuzzy controller description, kp, ki and kd can be obtained by fuzzy approximate reasoning, as shown in Figure 6.

4. Design of RFPID and PRFPID

4.1. RFPID Controller Description

There is unknown nonlinear friction torque in the Lidar pitching motion system, which is difficult to account for using the simple feedback compensation method. Neural networks are a significant branch of intelligent control, which have self-learning and adaptive capabilities. A neural network system can be used to approximate the friction torque to achieve adaptive neural network compensation. As shown in Figure 7, the RBF neural network is used to approximate the unknown and nonlinear friction torque based on the FPID in the previous section. In this way, it can be utilized to compensate for the friction torque in the control law. Thus, the nonlinear influence caused by friction torque can be eliminated.
For the system mathematical model in (1), Ff(t) is a friction torque based on the Stribeck friction model, whose coefficients are unknown. Ff(t) cannot be calculated by the model, but it can be obtained by the RBF neural network through error training. The RBF neural network is designed to fit the unknown nonlinear part. The algorithm of the RBF neural network is
c = [ c i j ] h j = e x p ( x c j 2 2 δ 2 ) f R = W T h
where x is network inputs which are the error, the rate of error change and the integral of the error, i is the number of network inputs, j is the number of hidden layer nodes in the network, c is the central value of the hidden node Gaussian function, δ is a normalized constant of the hidden node, h is the output of the Gaussian function and W is the weight of the neural network.
The relationship between the network output and actual friction torque is
F f J = f R + ε = W T h + ε
where ε is the network approximation error.
The PID control law based on RBF compensation is designed as
u 2 = J R K u K m [ f R G r c o s θ J + θ ¨ d + k p e + k i e d t + k d e ˙ ]
By substituting (6) into (1), the closed-loop dynamic equation of the system can be obtained as
{ E ˙ = A E + b [ f R F f J ] E = [ e d t e e ˙ ] , A = [ 0 1 0 0 0 1 k i k p k d ] , b = [ 0 0 1 ]
where e is the error of system output, kp, ki and kd are respectively the proportional coefficient, integral coefficient and derivative coefficient and A and b are the corresponding coefficient matrix.
The optimal weight parameter of the neural network is
W = a r g m i n W Î Ω [ s u p | f R F f J | ]
where Ω is the set of W.
Thus, the minimum approximation error ω is defined as
ω = f R ( x | W ) F f J
According to (7) and (8), the final closed-loop dynamic equation of the system is
E ˙ = A E + b [ ( W ^ W ) T h + ω ]
Based on (10), the adaptive law of W is determined to minimize the system error. The Lyapunov function of the closed-loop system is
V = 1 2 E T P E + 1 2 γ ( W ^ W ) T ( W ^ W )
where γ is a constant coefficient and P is the positive-determined matrix that satisfies the Lyapunov equation.
Q is defined as a matrix which satisfies the following equation:
A T P + P A = Q
where Q is an arbitrary 3 × 3 positive-determined matrix.
By substituting (10) into (11), the derivation of Lyapunov is
V ˙ = 1 2 E T Q E + E T P b ω + 1 γ ( W ^ W ) T [ W ^ ˙ + γ E T P b h ]
The adaptive law of W can be written as
W ^ ˙ = γ E T P b h
The derivation of Lyapunov can be simplified to
V ˙ = 1 2 E T Q E + E T P b ω
In (15), the derivative of the Lyapunov equation is less than or equal to zero by choosing the appropriate Q and the minimum approximation error ω. According to Lyapunov’s second theorem of stability, the system is stable in the sense of Lyapunov.
Based on (15), the inequality is
2 E T P b ω d ( E T P b ) ( E T P b ) T + ω 2 d
where d is a positive constant.
The inequality can be rewritten as
V ˙ = 1 2 E T Q E + E T P b ω 1 2 E T Q E + d 2 ( E T P b ) ( E T P b ) T + ω 2 2 d
The inequality can be simplified to
V ˙ 1 2 l m i n ( Q d ( P b b T P T ) ) E 2 + ω m a x 2 2 d
where l(•) is the eigenvalue of the matrix, and l(Q) > l(dPbbTPT).
According to (18), when the derivative of the Lyapunov equation is less than or equal to zero, the convergence result is
E | ω m a x | d l m i n ( Q d ( P b b T P T ) )
It can be seen from (19) that the convergence error is related to the eigenvalues of Q, P and the approximation error ω. The larger the eigenvalue of Q is, the smaller the eigenvalue of P is. Meanwhile, the smaller that |ωmax| is, the smaller the convergence error will be. The control system does not have asymptotic stability in its equilibrium state xe = 0. Hence, there will be a certain steady-state error between the output value and the target value. Finally, the fR pseudocode is shown in Algorithm 1.
Algorithm 1.fR pseudocode.
Input: c; δ; h; W; E; P; γ; b; ts.
Output:fR
1:forj = 1 to 5 do
2:hj = exp(-(E-cj)2/(2*δ2));
3: end for
4:S=-γ*ET*P*b*h;
5:fori = 1 to 5 do
6:Wi= Si*ts+Wi;
7: end for
8:fR = -WT*h;

4.2. PRFPID Controller Description

Predictive control with good predictive ability should consider the influence of uncertainty and perform real-time optimization during the process operation. From the analysis in the previous section, the RFPID controller does not guarantee acceptable convergence error and the anti-interference ability is weak. Based on the RFPID controller, this section combines the algorithmic idea of predictive control to compensate for the system steady-state error and enhance its robustness.
As shown in Figure 8, the predictive controller is added to modify the RFPID controller. The output of the prediction controller is calculated to compensate the output of the overall controller in real time. Ignoring the fitting error ε of the RBF neural network, the discrete state space expression of the closed-loop control system is
{ x ( k + 1 ) = A P x ( k ) + b P u 3 ( k ) y ( k ) = c P T x ( k ) x = [ e d t e e ˙ ] , A P = [ 1 t s 0 0 1 t s k i t s k p t s 1 k d t s ] , b P = [ 0 0 t s ] , c P = [ 0 1 0 ]
where u3(k) is the output of predictive controller at time k, x is the state variable of the closed-loop system, y is the output of the system, e is the output error, ts is the sampling time, Ap is the system matrix, bp is the control matrix and cp is the output matrix.
According to (20), the predicted step number is set to P and the control step number is set to M. Thus, the model of the predictive controller is
{ Y ( k ) = F y x ( k ) + G y U 3 ( k ) Y ( k ) = [ y ( k + 1 ) y ( k + P ) ] P × 1 , F y = [ c P T A P c P T A P P ] P × 3 G y = [ c P T b P 0 0 0 c P T A P M 1 b P c P T b P c P T A P P 1 b P i = 1 P M + 1 c P T A P i 1 b P ] P × M
where Y is the predicted P output vector expression, Fy is the coefficient matrix of the state variable and Gy is the input coefficient matrix.
According to the model of predictive control in (21), the M control quantity in the future moments can be obtained by minimizing the error of the controlled object in P times and suppressing the fluctuation of the control quantity. The optimized performance index equation is
m i n U 3 ( k ) J ( k ) = N ( k ) Y ( k ) L 2 + U 3 ( k ) O 2
where N(k) = [n(k + 1) … n(k + P)] is the output target value vector and L and O are the weighted matrices of the output and control quantity respectively.
In predictive control algorithms, N usually needs to specify a smooth curve that is close to the target value to improve the stability of the system. The curve is
n ( k + j ) = μ j y ( k ) + ( 1 μ j ) y r ( j = 1 , 2 , , P )
where µ is the flexibility coefficient, 0 < µ < 1, y(k) is the actual output value of the system and yr is the target value.
According to (22), the direction of the fastest gradient is selected, and the optimal output of predictive controller is
U 3 ( k ) = Z ( ( G y T L G y + O ) 1 G y T L ( N ( k ) F y x ( k ) ) )
where Z = [1 0 … 0]M.
Finally, the U*3 pseudocode is shown in the Algorithm 2.
Algorithm 2.U*3 pseudocode.
Input: E; P; M; Ap; bp; cp; L; O; Z.
Output:U3*.
1:fori = 1 to P do
2:  ifi<=Mthen
3:   m = i;
4:  else
5:   m = M;
6:  end if
7:  forj = 1 to m then
8:   ifj==Mthen
9:    fork = 1 to i - j + 1 do
10:     Gij = Gij + cpT*Apk-1*bp;
11:    end for
12:   else
13:    Gij=cpT*Api-j*bp;
14:   end if
15:  end for
16:end for
17:fori = 1 to P do
18:  forj = 1 to 3 do
19:   Fi= cpT*Api;
20:  end for
21:end for
22:U3*=Z*(GT*L*G+O)-1*GT*L*(N-F*E);

5. Simulation

Simulink in MATLAB is used to verify whether PRFPID can accurately control the pitching motion of the 2D Lidar. The first step is to discretize the controller and the controlled object. The discrete state space expression of (1) is
x 1 ( k + 1 ) = x 1 ( k ) + x 2 ( k ) t s x 2 ( k + 1 ) = x 2 ( k ) + t s G r c o s ( x 1 ( k ) ) J + t s K u K m u ( k ) J R t s F f ( k ) J y ( k ) = x 1 ( k )
where u(k) is the system input at time k, x1 is the pitching angle, x2 is the pitching angular velocity and ts is the sampling time.
According to (25) and the pseudocode of Section 4, the S function in Simulink is used to describe the pitching motion of the 2D Lidar, RBF and generalized predictive control (GPC). The fuzzy controller is built by using the fuzzy toolbox in MATLAB. The boundary parameters of the Lidar pitching motion system are set as shown in Table 6. Based on Figure 8, the simulation analysis of the PRFPID is carried out and compared with the RFPID and FPID [38].

5.1. Step Response

The sampling time is 0.01 s, and the controller parameters are set according to the range of the system error and error change rate, which are shown in Table 7.
In Table 7, careful selection of flexibility coefficient is needed. The larger the coefficient of flexibility µ is, the stronger the anti-interference ability is. However, too large a coefficient results in system overshoot or oscillation. The step signal with a target value of 50 degrees is set. Three kinds of controller response curves are shown below.
Figure 9a shows the control result of FPID when the unknown friction of the system is ignored. The result, which has favorable response performance, indicates the feedback compensation can eliminate the nonlinear factors to obtain great control performance. However, the above result was simulated in the case of zero friction. When the system has the unknown and nonlinear influence factors, FPID cannot achieve a satisfying control effect. In Figure 9b,c the comparison of the three controllers shows that the response speed of FPID is very slow while the response speed of RFPID and PRFPID is significantly accelerated after RBF compensation. The error of PRFPID is the smallest in Figure 9d, and it indicates that the predictive control effectively reduces the steady-state error in RFPID. Moreover, it can be seen from Table 8 that PRFPID has the fastest response speed and the smallest steady-state error. Hence, the overall system performance has been improved by the RBF neural network and the predictive control algorithm.

5.2. Robustness Simulation

In practice, mismatch could occur between the established system model and the actual process, and the system may be affected by some unknown disturbance. In order to verify whether PRFPID can improve the robustness of the system, simulation analysis is carried out on the three controllers in the case of model mismatch and large disturbance.
In order to simulate the model mismatch in the actual process, the Monte Carlo method is used to randomly generate four kinds of mismatch models for the parameters that may have deviations in the system mathematical model. The maximum uncertainty is 30%. As shown in Table 9, the three parameters are gravity of 2D Lidar G, the distance from the center of Lidar to the center of rotation r and the moment of inertia of Lidar around the system rotation center J.
Figure 10 shows the response curves of the four models under mismatch conditions. It can be seen that the PRFPID controller can still achieve favorable control results in the case of four random model mismatches. Compared with RFPID and FPID, it can track input settings more quickly. When the output curves of RFPID and FPID are not stable, the output curve of PRFPID is stable and does not have large oscillations or fluctuations.
In order to simulate the response curves of the three controllers under the effect of large disturbance, a step disturbance of −40 degrees is added to the system output at 25 s. The flexibility coefficient µ is changed to 0.8 to enhance the anti-interference ability of PRFPID. Figure 11 shows the comparison results of the three controllers under the step disturbance. PRFPID can quickly return to the target setting value while RFPID and FPID return slowly. Therefore, PRFPID has strong anti-interference ability and can deal with the case of model mismatch properly.

5.3. Sinusoidal Response

In view of the actual situation of Lidar pitching motion, the target curve is generally periodic. Lidar needs to swing back and forth periodically, so a sinusoidal input signal is adopted for simulation. The algorithm parameters need to be changed according to the range of error and error change rate. Because the input signal value changes frequently, the prediction period is reduced. The parameters required for the algorithm are set, as shown in Table 10. The target curve is set as a sinusoidal signal with y = 45sin(2πt) and three controller response results are achieved.
Figure 12a shows the sinusoidal response curve of FPID. The response curve deviates significantly from the target curve. Figure 12b is the sinusoidal response curve of RFPID. After the compensation effect of RBF, the system response curve is basically consistent with the input curve, but there is a huge fluctuation and the curve is unstable in the range of 4 to 7 s. As shown in Figure 12c, the PRFPID sinusoidal response curve is stable. It eliminates the deviation in FPID and the fluctuation phenomenon in RFPID, tracking the target curve quickly and accurately.

6. Conclusions

This paper studies the control of Lidar pitching motion in a 3D laser scanning system. A predictive RBF compensation fuzzy PID controller is proposed, which combines the advantages of a fuzzy algorithm, an RBF neural network and predictive control. Compared with traditional PID, PRFPID eliminates the unknown nonlinear part of the system and has good tracking performance and robustness. Through the simulation comparison with the FPID and RFPID controller, the general step response is obtained, and the response time is reduced from 15.298 s to 1.957 s with a steady-state error of 0.07°. Meanwhile, the PRFPID remains as the one with the most favorable response performance for the step input under model mismatch and large disturbance. Moreover, the PRFPID tracks the target curve quickly and accurately and eliminates the deviation in FPID and the fluctuation phenomenon in RFPID by the sinusoidal response comparison. In conclusion, the results show that the PRFPID controller improves the system performance and can effectively control the pitching motion of the 2D Lidar.

Author Contributions

Conceptualization, X.X.; validation, X.X.; writing—original draft preparation, X.X. and M.Z.; writing—review and editing, M.Z., H.Y. and Z.P. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by National Natural Science Foundation of China, grant number 51805146; the Fundamental Research Funds for the Central Universities, grant numbers B200202221; Changzhou Sci&Tech Program, grant numbers CJ20180047; Jiangsu Key R&D Program, grant numbers BE2018004 and BE2018004-1; Water Resources Department of Jiangsu Province, grant number 2018031.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Kohlbrecher, S.; Meyer, J.; Graber, T.; Petersen, K.; Klingauf, U.; von Stryk, O. Hector open source modules for autonomous mapping and navigation with rescue robots. In Proceedings of the Robot Soccer World Cup; Springer: Berlin/Heidelberg, Germany, 2013; pp. 624–631. [Google Scholar]
  2. Li, R.; Liu, J.; Zhang, L.; Hang, Y. LIDAR/MEMS IMU integrated navigation (SLAM) method for a small UAV in indoor environments. In Proceedings of the 2014 DGON Inertial Sensors and Systems (ISS), Karlsruhe, Germany, 16–17 September 2014; pp. 1–15. [Google Scholar]
  3. Hess, W.; Kohler, D.; Rapp, H.; Andor, D. Real-time loop closure in 2D LIDAR SLAM. In Proceedings of the 2016 IEEE International Conference on Robotics and Automation (ICRA), Stockholm, Sweden, 16–21 May 2016; pp. 1271–1278. [Google Scholar]
  4. Yagfarov, R.; Ivanou, M.; Afanasyev, I. Map comparison of lidar-based 2d slam algorithms using precise ground truth. In Proceedings of the 2018 15th International Conference on Control, Automation, Robotics and Vision (ICARCV), Singapore, 18–21 November 2018; pp. 1979–1983. [Google Scholar]
  5. Denysyuk, P.; Teslyuk, V.; Chorna, I. Development of mobile robot using LIDAR technology based on Arduino controller. In Proceedings of the 2018 XIV-th International Conference on Perspective Technologies and Methods in MEMS Design (MEMSTECH), Lviv, Ukraine, 18–22 April 2018; pp. 240–244. [Google Scholar]
  6. Adiwahono, A.H.; Saputra, V.B.; Ng, K.P.; Gao, W.; Ren, Q.; Tan, B.H.; Chang, T. Human tracking and following in dynamic environment for service robots. In Proceedings of the TENCON 2017-2017 IEEE Region 10 Conference, Penang, Malaysia, 5–8 November 2017; pp. 3068–3073. [Google Scholar]
  7. Trochta, J.; Krůček, M.; Vrška, T.; Král, K. 3D Forest: An application for descriptions of three-dimensional forest structures using terrestrial LiDAR. PLoS ONE 2017, 12, e0176871. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  8. Xu, N.; Zhang, W.; Zhu, L.; Li, C.; Wang, S. Object 3D surface reconstruction approach using portable laser scanner. In IOP Conference Series: Earth and Environmental Science; IOP Publishing: Bristol, UK, 2017; Volume 69, p. 12119. [Google Scholar]
  9. Chi, S.; Xie, Z.; Chen, W. A laser line auto-scanning system for underwater 3D reconstruction. Sensors 2016, 16, 1534. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  10. Wen, C.; Pan, S.; Wang, C.; Li, J. An indoor backpack system for 2-D and 3-D mapping of building interiors. IEEE Geosci. Remote Sens. Lett. 2016, 13, 992–996. [Google Scholar] [CrossRef]
  11. Zlot, R.; Bosse, M. Efficient large-scale three-dimensional mobile mapping for underground mines. J. Field Robot. 2014, 31, 758–779. [Google Scholar] [CrossRef]
  12. Jung, J.; Yoon, S.; Ju, S.; Heo, J. Development of kinematic 3D laser scanning system for indoor mapping and as-built BIM using constrained SLAM. Sensors 2015, 15, 26430–26456. [Google Scholar] [CrossRef] [PubMed]
  13. Du, Z.; Wu, Z.; Yang, J. Error ellipsoid analysis for the diameter measurement of cylindroid components using a laser radar measurement system. Sensors 2016, 16, 714. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  14. Jichen, C.; Xiu, W.; Jian, S.; Songlin, W.; Shuo, Y.; Chunjiang, Z. Development of real-time laser-scanning system to detect tree canopy characteristics for variable-rate pesticide application. Int. J. Agric. Biol. Eng. 2017, 10, 155–163. [Google Scholar] [CrossRef] [Green Version]
  15. Reiser, D.; Vázquez-Arellano, M.; Paraforos, D.S.; Garrido-Izard, M.; Griepentrog, H.W. Iterative individual plant clustering in maize with assembled 2D LiDAR data. Comput. Ind. 2018, 99, 42–52. [Google Scholar] [CrossRef]
  16. Zeng, Y.; Yu, H.; Dai, H.; Song, S.; Lin, M.; Sun, B.; Jiang, W.; Meng, M.Q.-H. An improved calibration method for a rotating 2D LiDAR system. Sensors 2018, 18, 497. [Google Scholar] [CrossRef] [Green Version]
  17. Guo, Y.; Du, Y.; Du, Z.; Yao, Z. Calibration of 3D laser measurement system based on projective transformation. In Proceedings of the Sixth International Symposium on Precision Engineering Measurements and Instrumentation; International Society for Optics and Photonics, Hangzhou, China, 31 December 2010; Volume 7544, p. 75445I. [Google Scholar]
  18. Kurnianggoro, L.; Hoang, V.-D.; Jo, K.-H. Calibration of a 2D laser scanner system and rotating platform using a point-plane constraint. Comput. Sci. Inf. Syst. 2015, 12, 307–322. [Google Scholar] [CrossRef]
  19. So, E.W.Y.; Basso, F.; Menegatti, E. Calibration of a rorating 2d laser range-finder using point-plane coistraints. J. Autom. Mob. Robot. Intell. Syst. 2013, 7, 30–38. [Google Scholar]
  20. Gao, Z.; Huang, J.; Yang, X.; An, P. Calibration of rotating 2D LIDAR based on simple plane measurement. Sens. Rev. 2019, 39, 190–198. [Google Scholar] [CrossRef]
  21. Ang, K.H.; Chong, G.; Li, Y. PID control system analysis, design, and technology. IEEE Trans. Control. Syst. Technol. 2005, 13, 559–576. [Google Scholar]
  22. Gundes, A.; Ozguler, A. PID stabilization of MIMO plants. IEEE Trans. Autom. Control. 2007, 52, 1502–1508. [Google Scholar] [CrossRef]
  23. Wang, Q.-G.; Hang, C.C.; Yang, X.-P. Single-loop controller design via IMC principles. Automatica 2001, 37, 2041–2048. [Google Scholar] [CrossRef]
  24. Zhang, R.; Wu, S.; Gao, F. Improved PI controller based on predictive functional control for liquid level regulation in a coke fractionation tower. J. Process Control 2014, 24, 125–132. [Google Scholar] [CrossRef]
  25. Bassi, S.; Mishra, M.; Omizegba, E. Automatic tuning of proportional-integral-derivative (PID) controller using particle swarm optimization (PSO) algorithm. Int. J. Artif. Intell. Appl. 2011, 2, 25. [Google Scholar] [CrossRef]
  26. Wang, Q.; Lu, C.; Pan, W. IMC PID controller tuning for stable and unstable processes with time delay. Chem. Eng. Res. Des. 2016, 105, 120–129. [Google Scholar] [CrossRef]
  27. Normey-Rico, J.E.; Guzmán, J.L. Unified PID tuning approach for stable, integrative, and unstable dead-time processes. Ind. Eng. Chem. Res. 2013, 52, 16811–16819. [Google Scholar] [CrossRef]
  28. Zadeh, L.A. Fuzzy sets. Inf. Control 1965, 8, 338–353. [Google Scholar] [CrossRef] [Green Version]
  29. Chen, B.; Liu, X.P.; Ge, S.S.; Lin, C. Adaptive fuzzy control of a class of nonlinear systems by fuzzy approximation approach. IEEE Trans. Fuzzy Syst. 2012, 20, 1012–1021. [Google Scholar] [CrossRef]
  30. Wang, F.; Liu, Z.; Zhang, Y.; Chen, C.P. Adaptive fuzzy control for a class of stochastic pure-feedback nonlinear systems with unknown hysteresis. IEEE Trans. Fuzzy Syst. 2015, 24, 140–152. [Google Scholar] [CrossRef]
  31. Chiou, J.-S.; Tsai, S.-H.; Liu, M.-T. A PSO-based adaptive fuzzy PID-controllers. Simul. Model. Pract. Theory 2012, 26, 49–59. [Google Scholar] [CrossRef]
  32. Savran, A.; Kahraman, G. A fuzzy model based adaptive PID controller design for nonlinear and uncertain processes. ISA Trans. 2014, 53, 280–288. [Google Scholar] [CrossRef] [PubMed]
  33. He, W.; Chen, Y.; Yin, Z. Adaptive neural network control of an uncertain robot with full-state constraints. IEEE Trans. Cybern. 2015, 46, 620–629. [Google Scholar] [CrossRef] [PubMed]
  34. Liu, L.; Liu, Y.-J.; Tong, S. Neural networks-based adaptive finite-time fault-tolerant control for a class of strict-feedback switched nonlinear systems. IEEE Trans. Cybern. 2018, 49, 2536–2545. [Google Scholar] [CrossRef]
  35. Noriega, J.R.; Wang, H. A direct adaptive neural-network control for unknown nonlinear systems and its application. IEEE Trans. Neural Netw. 1998, 9, 27–34. [Google Scholar] [CrossRef]
  36. Wang, Y.; Jin, Q.; Zhang, R. Improved fuzzy PID controller design using predictive functional control structure. ISA Trans. 2017, 71, 354–363. [Google Scholar] [CrossRef]
  37. Nuchkrua, T.; Leephakpreeda, T. Fuzzy self-tuning PID control of hydrogen-driven pneumatic artificial muscle actuator. J. Bionic Eng. 2013, 10, 329–340. [Google Scholar] [CrossRef]
  38. Su, H.; Hao, G.; Li, P.; Luo, X. Feed forward fuzzy PID controller for common-rail pressure control of diesel engine. In Proceedings of the 2010 International Conference on Measuring Technology and Mechatronics Automation, Changsha, China, 13–14 March 2010; Volume 2, pp. 264–267. [Google Scholar]
Figure 1. 3D Laser scanning system.
Figure 1. 3D Laser scanning system.
Applsci 10 04662 g001
Figure 2. (a) Schematic diagram of the 3D laser scanning system; (b) schematic diagram of the Lidar’s gravity center and rotation center.
Figure 2. (a) Schematic diagram of the 3D laser scanning system; (b) schematic diagram of the Lidar’s gravity center and rotation center.
Applsci 10 04662 g002
Figure 3. Stribeck curve.
Figure 3. Stribeck curve.
Applsci 10 04662 g003
Figure 4. Fuzzy PID (FPID) control system.
Note: PID = proportional integral derivative
Figure 4. Fuzzy PID (FPID) control system.
Note: PID = proportional integral derivative
Applsci 10 04662 g004
Figure 5. (a) Membership function e; (b) membership function ec; (c) membership function kp; (d) membership function ki; and (e) membership function kd.
Figure 5. (a) Membership function e; (b) membership function ec; (c) membership function kp; (d) membership function ki; and (e) membership function kd.
Applsci 10 04662 g005aApplsci 10 04662 g005b
Figure 6. Fuzzy controller.
Figure 6. Fuzzy controller.
Applsci 10 04662 g006
Figure 7. RBF compensation fuzzy PID controller (RFPID) control system.
Note: RBF = radial basis function
Figure 7. RBF compensation fuzzy PID controller (RFPID) control system.
Note: RBF = radial basis function
Applsci 10 04662 g007
Figure 8. RFPID control system.
Figure 8. RFPID control system.
Applsci 10 04662 g008
Figure 9. (a) FPID without friction; (b) step responses; (c) step response amplification; (d) steady-state error.
Figure 9. (a) FPID without friction; (b) step responses; (c) step response amplification; (d) steady-state error.
Applsci 10 04662 g009aApplsci 10 04662 g009b
Figure 10. (a) Step responses for case 1; (b) step responses for case 2; (c) step responses for case 3; (d) step responses for case 4.
Figure 10. (a) Step responses for case 1; (b) step responses for case 2; (c) step responses for case 3; (d) step responses for case 4.
Applsci 10 04662 g010
Figure 11. Step response under disturbance.
Figure 11. Step response under disturbance.
Applsci 10 04662 g011
Figure 12. (a) FPID sine response; (b) RFPID sine response; and (c) PRFPID sine response.
Figure 12. (a) FPID sine response; (b) RFPID sine response; and (c) PRFPID sine response.
Applsci 10 04662 g012
Table 1. Fuzzy operators.
Table 1. Fuzzy operators.
And MethodOr MethodImplicationAggregationDefuzzification
minmaxminmaxcentroid
Table 2. Effect of PID parameters.
Table 2. Effect of PID parameters.
PID ParametersEffect
kpSpeed up system response and improve system accuracy. Large kp is likely to produce overshoot and even lead to system instability. Small kp will reduce system accuracy and slow down system response.
kiEliminate the steady-state error of system. Large ki can produce integral saturation or cause large overshoots and small ki will make it difficult to eliminate static errors in the system.
kdImprove the dynamic performance of the system and suppress the change of error. A large kd will stop the response process prematurely and reduce the immunity of the system.
Table 3. Fuzzy rule kp.
Table 3. Fuzzy rule kp.
eec
kp
NBNMNSZOPSPMPB
NBPBPBPMPMPSZOZO
NMPBPBPMPSPSZONS
NSPMPMPMPSZONSNS
ZOPMPMPSZONSNMNM
PSPSPSZONSNSNMNM
PMPSZONSNMNMNMNB
PBZOZONMNMNMNBNB
Table 4. Fuzzy rule ki.
Table 4. Fuzzy rule ki.
eec
ki
NBNMNSZOPSPMPB
NBNBNBNMNMNSZOZO
NMNBNBNMNSNSZOZO
NSNBNMNSNSZOPSPS
ZONMNMNSZOPSPMPM
PSNMNSZOPSPSPMPB
PMZOZOPSPSPMPBPB
PBZOZOPSPMPMPBPB
Table 5. Fuzzy rule kd.
Table 5. Fuzzy rule kd.
eec
kd
NBNMNSZOPSPMPB
NBPSNSNBNBNBNMPS
NMPSNSNBNMNMNSZO
NSZONSNMNMNSNSZO
ZOZONSNSNSNSNSZO
PSZOZOZOZOZOZOZO
PMPBNSPSPSPSPSPB
PBPBPMPMPMPSPSPB
Table 6. System parameters.
Table 6. System parameters.
ParametersKu(V/V)Km(N•m/A)R(Ω)G(N)r(m)
Value110.67.77110.058
ParametersJ(kg•m2)Fm(N•m)Fc(N•m)kv(N•m•s/°)α(°/s)
Value0.006620.20.150.020.01
Table 7. Controller parameters of step response.
Table 7. Controller parameters of step response.
Parameters Type
FPIDRFPIDPRFPID
k1, k2, k3, k4, k50.1, 0.1, 0.5, 0.5, 10.1, 0.1, 0.5, 0.5, 10.1, 0.1, 0.5, 0.5, 1
RBF nodes 55
c [0, 10, 25, 35, 50; 0, 10, 25, 35, 50; −100, −50, 0, 50, 100]
Q [5000, 0, 0; 0, 5000, 0; 0, 0, 5000]
δ, γ 10, 1510,15
P, M, µ 10, 3, 0.6
Set-point505050
Table 8. Response index of control.
Table 8. Response index of control.
Response Time (s)Overshoot (%)Steady-State Error (°)Setting Time (s)
FPID15.2980.38%0.1917.658
GFPID2.0300.35.171
PGFPID1.9570.14%0.073.146
Table 9. Mismatch model parameters.
Table 9. Mismatch model parameters.
CaseG (N)r (m)J (kg•m2)
113.07720.0440.0085
213.67820.0530.0053
38.53810.05960.0066
411.87360.07390.0048
Table 10. Controller parameters of sine response.
Table 10. Controller parameters of sine response.
ParametersType
FPIDRFPIDPRFPID
k1, k2, k3, k4, k50.5, 0.5, 50, 25, 200.5, 0.5, 50, 25, 200.5, 0.5, 50, 25, 20
RBF nodes 55
c [−6, −3, 0, 3, 6; −6, −3, 0, 3, 6; −200, −100, 0, 100, 200]
Q [500, 0, 0; 0, 500, 0; 0, 0, 500]
δ, γ 10, 310, 3
P, M, µ 5, 3, 0.6
Set-point45sin(2πt)45sin(2πt)45sin(2πt)

Share and Cite

MDPI and ACS Style

Zhao, M.; Xu, X.; Yang, H.; Pan, Z. Design of a Predictive RBF Compensation Fuzzy PID Controller for 3D Laser Scanning System. Appl. Sci. 2020, 10, 4662. https://doi.org/10.3390/app10134662

AMA Style

Zhao M, Xu X, Yang H, Pan Z. Design of a Predictive RBF Compensation Fuzzy PID Controller for 3D Laser Scanning System. Applied Sciences. 2020; 10(13):4662. https://doi.org/10.3390/app10134662

Chicago/Turabian Style

Zhao, Minghui, Xiaobin Xu, Hao Yang, and Zhijie Pan. 2020. "Design of a Predictive RBF Compensation Fuzzy PID Controller for 3D Laser Scanning System" Applied Sciences 10, no. 13: 4662. https://doi.org/10.3390/app10134662

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop