Keywords
2-DOF robot, SimMechanics model, PD-FL integrated controller, position control, tip trajectory tracking.
This article is included in the Research Synergy Foundation gateway.
2-DOF robot, SimMechanics model, PD-FL integrated controller, position control, tip trajectory tracking.
The major improvement in this version is the adding the velocity and the acceleration of the proposed PD-FL integrated controller for the point-to-point position control and also the tip trajectory tracking.
See the authors' detailed response to the review by Xuan Bien Duong
There is a wide use of planar robots in industries to achieve several required tasks, such as welding, handling, machining, polishing, pick and place, etc. Meanwhile, there is a high demand of fast and precise position control for such robots in industries1. A dynamic model is required for several types of controllers in order to obtain the optimal parameters of a controller for satisfactory performance. There are many mathematical modelling methods, such as the kinematics method2, Newtonian method3, Lagrange’s equation4,5, and Hamilton's principle6. However, mathematical modelling is difficult and requires long calculations especially for nonlinear systems; critical and deep discussion of mathematical modelling methods is given in reference7. A numerical modelling method was used to obtain SimMechanics models of robots using Simulink and Simscape toolboxes from CAD assemblies8–10. SimMechanics models are easily obtained and can be simulated and controlled, so they are preferable.
A proportional–derivative (PD) controller was tuned using root locus11,12 and manually tuned13,14 for position control of such robots. The manual tuning method helps to dispense about the mathematical model of a system which one of its advantages. However, the PD controller is not perfect for nonlinear and complex systems. A 2-DOF robot was controlled by a proportional–integral–derivative controller (PID) due to its simple structure, but it is not easy to obtain optimal PID parameters to give a satisfactory performance15. The linear quadratic regulator (LQR) is an optimal classical control technique and was utilized to control a planar robot with the necessity of a system mathematical model in order to calculate the controller gain16,17. The fuzzy logic controller (FLC) is a common control technique in robotics and has continuous increasing interest due to its robustness performance for nonlinear systems and does not require a mathematical model to tune its membership functions and rules18. FLC has the disadvantage of computational time due to the fuzzy rules explosion for controlling multi-input systems19,20.
Neural network (NN) is an intelligent control technique and can be developed with simple knowledge of the system behavior without a need for a dynamic model which assists to avert the complexity of the mathematical modelling21. NN was used to control a 2-DOF robot in terms of links’ position22. However, NN require many hidden layers in its network to provide an accurate position control which needs long time for training23. Sliding mode controller (SMC) is a robust controller and was employed for position control of a 2-DOF robot24,25. However, sliding mode controller has the chattering issue which is a serious disadvantage26,27. Integrated controllers which consist of more than on control technique were also used for position control of 2-DOF robots such as FLC-SMC28,29, FLC-PID30, and FLC-NN31. There are many other control techniques were critically discussed in the literature32.
Based on the discussed previous studies, the mathematical modelling of robots is a serious problem faces researchers and control engineers either the difficulty of mathematical operations or the challenge of obtaining accurate models. Therefore, the first objective is to obtain the SimMechanics model of the 2-DOF robot from the CAD assembly design via SimMechanics environment in MATLAB (RRID:SCR_001622); an open access alternative is GNU Octave (RRID:SCR_014398). The second objective is to design the PD-FL integrated controller to control the 2-DOF robot in terms of point-to-point position control of the links, triangular TTT and rhombic TTT. The remaining sections of this paper are as follows: section 2 describes the system and the SimMechanics model. Section 3 explains the proposed controller design. Section 4 presents the results and discussion. Section 5 is the conclusion.
A schematic diagram of the 2-DOF robot is shown in Figure 1 which consists of two links with 50-cm length of each link and a 4.5 cm2 cross-sectional area. The links’ material is aluminum with the density of 2.7 g/cm3. The movement of this robot is only on the horizontal plane. The tip position of the robot is computed based on Equation 1.
The CAD assembly of the 2-DOF is designed as shown in Figure 2. The CAD assembly is used to generate the SimMechanics model of the 2-DOF robot. The SimMechanics model is obtained starting by building the CAD assembly design of the robot and export the CAD assembly and save it in the format of ‘XML’ file. Then, the assembly ‘XML’ file is imported to the MATLAB SimMechanics toolbox using the ‘smimport’ function. The steps of generation the SimMechanics model is explained in detail in Figure 3. The SimMechanics model of the 2-DOF robot is presented in Figure 4. The SimMechanics model was generated and used in previous research such as in reference 9 and reference 10.
The 2-DOF robot is controlled by the PD-FL integrated controller. The PD controller is selected due to its simplicity of design and it is widely used. The PD parameters can be easily tuned based on trial and error13,14, Equation 2 shown the PD control transfer function. Two PD controllers are designed as the PD controller is single input single output. The parameters of the two PD controllers are manually tuned and the better performance is achieved by the parameters tabulated in Table 1.
FL controller is an intelligence control technique that depends on expressing the system behaviour. FL uses errors as its input variables and assigns the input into partial degrees of membership functions (MFs)33. The MF amplitude varies between 0 and 1. The fuzzy rules are expressed in the form of IF-THEN to describe the relation between inputs and outputs depended on the MFs. The MFs are designed and tuned in terms of range, numbers, and shape as shown in Figure 5 for the two inputs and outputs, they are described by “positive big” (PB), “positive medium” (PM), “positive small” (PS), “zero” (ZE), “negative big” (NB), “negative medium” (NM), and “negative small” (NS). Then, the fuzzy rules are tuned to describe the system errors depended on the MFs and to decide what fuzzy output should be, Table 2 describes the fuzzy rule-base. Table 2 shows the fuzzy rules reduction from 49 rules to 25 rules. The fuzzy rules reduction improves the computational time and simplifies the FL controller design.
e1 | PB | PM | PS | ZE | NS | NM | NB | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e2 | u1 | u2 | u1 | u2 | u1 | u2 | u1 | u2 | u1 | u2 | u1 | u2 | u1 | u2 |
PB | PB | PM | PB | PM | PB | PM | ZE | PM | NS | PM | Non-effective | |||
PM | PB | PS | PB | PS | ZE | PS | ZE | PS | NS | PS | ||||
PS | PB | PS | PB | PS | PB | PS | ZE | PS | NS | PS | ||||
ZE | PB | ZE | PB | ZE | PB | ZE | ZE | ZE | NS | ZE | ||||
NS | PB | NS | PB | NS | PB | NS | ZE | NS | NS | NS | ||||
NM | Non-effective | |||||||||||||
NB |
The 2-DOF robot model and proposed PD-FL controller is shown in Figure 6. The outputs of the two PD controllers are the fuzzy inputs, and the fuzzy outputs are the robot inputs. The first PD controller controls link 1 and the second PD controller control link 2. The two PD controllers initially control the robot and minimize the errors, which do not reach NM and NB regions. Thus, there is no effectiveness of the fuzzy rules for NM and NB of errors which helps to minimize the fuzzy rules number from 49 to 25. This fuzzy rules’ reduction solves the issue of the computational time and also simplifies the FL controller design. The proposed PD-FL integrated controller
This section presents and discusses the results of point-to-point position control and the TTT.
The performance of the PD-FL integrated controller and the conventional PD controller is shown in Figure 7 for the first link of the 2-DOF robot by the blue line and the red line, respectively. The PD-FL integrated controller demonstrated great improvement in terms of “rise time” (Tr), “settling time” (Ts), “overshoot” (OS), and “steady state error” (ess) compared with the PD controller alone as analyzed in Table 3.
Controller | Tr (ms) | Ts (s) | OS % | ess (rad) |
---|---|---|---|---|
PD-FL | 129.471 | 0.196 | 0.505 | 0.00 |
PD | 153.907 | 1.732 | 9.341 | 0.00 |
The PD controller has better performance for link 2 than link 1 as shown in Figure 8, this is because link 2 is a load to link 1 which makes the control of link 2 easier than control link 1 for the PD controller. However, the PD-FL integrated controller has better performance than the PD controller for link 2 as it has shorter rise time (Tr) and settling time (Ts), also it has less overshoot as described in Table 4. Based on the results of point-to-point position control of the 2-DOF robot, it is obvious that the PD-FL integrated controller is better than the conventional PD controller as it has shorter rise time (Tr), shorter settling time (Ts), and less overshoot for link 1 and link 2. Figure 9 (a) shows the velocity and Figure 9 (b) shows the acceleration of the links during the point-to-point position control by the PD-FL integrated controller.
a) Velocity of the point-to-point position control, b) Acceleration of the point-to-point position control.
The PD-FL integrated controller is tested for TTT of the 2-DOF robot for triangular TTT and rhombic TTT as follows.
The triangular TTT of the 2-DOF is shown in Figure 10 for the PD-FL controller and the PD controller, The triangular TTT starts and ends based on the following trajectory points (X,Y): (1.0,0.0), (0.9,−0.1), (0.9,0.1), (1.0,0.0). It can be seen that the TTT of the PD-FL controller trajectory is nearer to the reference than the TTT of the PD controller. Based on the X and Y errors of both controllers in Figure 11, the improvement of the PD-FL integrated controller for the triangular TTT is also noticeable. The maximum Y error of the PD-FL integrated controller is less than 6 millimeters, but it is more than 9 millimeters for the PD controller. The X error of the PD-FL integrated controller is also smaller than the X error of the PD controller as presented in Figure 11. The velocity and the acceleration of the links by the PD-FL integrated controller during the triangular TTT are shown in Figure 12 (a) and Figure 12 (b), respectively.
The rhombic TTT starts and ends based on the following trajectory points (X,Y): (1.0,0.0), (0.9,−0.1), (0.8,0.0), (0.9,0.1), (1.0,0.0). Figure 13 shows the rhombic TTT of the 2-DOF robot. It is clearly shown that the PD-FL integrated controller is better than the PD controller in tracking the tip of the 2-DOF robot as it is closer to the tip reference trajectory. Furthermore, the maximum Y error of the PD controller tracking is about 8 millimeters while the maximum Y error of the PD-FL controller is less than 4 millimeters as shown in Figure 14. The X error of the PD controller is also larger than the X error of the PD-FL integrated controller as presented in Figure 14. Thus, the PD-FL integrated controller performance for the rhombic TTT of the 2-DOF robot is better than the PD controller. Figure 15 (a) and Figure 15 (b) demonstrate the velocity and the acceleration of the links by the PD-FL integrated controller during the rhombic TTT, respectively.
a) Velocity of the rhombic tip trajectory, b) Acceleration of the rhombic tip trajectory.
The discussed results of the point-to-point position control and the TTT demonstrate the improvement of the proposed controller in terms of fast response and accuracy. Normally, the faster response is the more overshoot and larger tip position error. However, the proposed PD-FL integrated controller has a faster response and reduces the overshoot and the tip position error of the 2-DOF robot. Furthermore, the proposed controller has the advantage of design simplicity compared with other integrated controllers.
The aim of this research was to obtain the SimMechanics model of the 2-DOF robot using MATLAB SimMechanics Toolbox from the CAD assembly design. Then, the PD-FL integrated controller was designed to control the 2-DOF robot in terms of point-to-point position control and TTT. This proposed integration technique of the PD controller and the FL controller improves the position control performance and reduces the fuzzy rules which results in avoiding the computational time drawback. The PD-FL integrated controller was used to control the 2-DOF robot for point-to-point position control which demonstrates enhanced performance compared with the conventional PD controller. Moreover, the 2-DOF robot was controlled for triangular TTT and rhombic TTT by the PD-FL integrated controller which has better performance than the PD controller.
Figshare: Data are available under the term of the ‘2-DOF robot data of position control and tip trajectory tracking’ and has the following DOI: https://doi.org/10.6084/m9.figshare.16706458.
Figshare: The model of the 2-DOF robot and control is available under the term of the ‘2-DOF robot model’ and has the following DOI: https://doi.org/10.6084/m9.figshare.16714324.
Views | Downloads | |
---|---|---|
F1000Research | - | - |
PubMed Central
Data from PMC are received and updated monthly.
|
- | - |
Is the work clearly and accurately presented and does it cite the current literature?
Partly
Is the study design appropriate and is the work technically sound?
Partly
Are sufficient details of methods and analysis provided to allow replication by others?
Partly
If applicable, is the statistical analysis and its interpretation appropriate?
Yes
Are all the source data underlying the results available to ensure full reproducibility?
Yes
Are the conclusions drawn adequately supported by the results?
Partly
References
1. JENHANİ S, GRİTLİ H, CARBONE P: Comparison Between Some Nonlinear Controllers for the Position Control of Lagrangian-type Robotic Systems. Chaos Theory and Applications. 2022; 4 (4): 179-196 Publisher Full TextCompeting Interests: No competing interests were disclosed.
Reviewer Expertise: Robotics, Control theory, Machine learning, Chaos theory
Competing Interests: No competing interests were disclosed.
Reviewer Expertise: CAD/CAM/CNC Technology, Robotics
Is the work clearly and accurately presented and does it cite the current literature?
Yes
Is the study design appropriate and is the work technically sound?
Partly
Are sufficient details of methods and analysis provided to allow replication by others?
Partly
If applicable, is the statistical analysis and its interpretation appropriate?
Partly
Are all the source data underlying the results available to ensure full reproducibility?
Partly
Are the conclusions drawn adequately supported by the results?
Yes
Competing Interests: No competing interests were disclosed.
Reviewer Expertise: CAD/CAM/CNC Technology, Robotics
Alongside their report, reviewers assign a status to the article:
Invited Reviewers | ||
---|---|---|
1 | 2 | |
Version 2 (revision) 17 Nov 21 |
read | read |
Version 1 15 Oct 21 |
read |
Provide sufficient details of any financial or non-financial competing interests to enable users to assess whether your comments might lead a reasonable person to question your impartiality. Consider the following examples, but note that this is not an exhaustive list:
Sign up for content alerts and receive a weekly or monthly email with all newly published articles
Already registered? Sign in
The email address should be the one you originally registered with F1000.
You registered with F1000 via Google, so we cannot reset your password.
To sign in, please click here.
If you still need help with your Google account password, please click here.
You registered with F1000 via Facebook, so we cannot reset your password.
To sign in, please click here.
If you still need help with your Facebook account password, please click here.
If your email address is registered with us, we will email you instructions to reset your password.
If you think you should have received this email but it has not arrived, please check your spam filters and/or contact for further assistance.
Comments on this article Comments (0)