Abstract
This paper investigates dynamic simulation and trajectory tracking control of hybrid-driven planar five-bar parallel mechanism (HPPM). To begin with, a simulation model of dynamics based on MATLAB/SimMechanics is established. Then, traditional PD control and closed loop PD-type iterative learning control of the HPPM are designed. At the end, the simulation based on SimMechanics is carried out, which acquires angular, angular velocity, angular acceleration of two driving links and constraint reaction of kinematic pairs at any time. In addition, the performance of the closed loop PD-type iterative learning control is compared with that of the traditional PD controller through simulations of the HPPM in the presence of the model external disturbances. The simulation results indicate that a perfect trajectory tracking of end-effector of the HPPM is achieved by the closed loop PD-type iterative learning controller.
Keywords
Introduction
Recently, as the rapid development of parallel robotics and controllable mechanism, hybrid-driven planar five-bar parallel mechanism (HPPM) which is a simple two degree of freedom (DOF) mechanism, has been widely used in mechanical design[1–2]. The HPPM is a kind of machine whose drive system is composed of two types of actuators: constant velocity (CV) motor and servomotor. The CV motor provides main power and motion required, while the servomotor acts as a motion regulation and control device. The two types of motion inputs are synthesized through a 2-DOF mechanism and output high performance movement [3]. The HPPM has the advantages of high efficiency, high payload and application flexibility, because the CV motor could undertake a high constant workload while the servomotor can be real-time regulated to meet the change of task or operation. Kinematic analysis and dynamic analysis of the HPPM are the basis for mechanism design, motion evaluation and control. SimMechanics does not need to create dynamic mathematical model and write program, and has the features of modeling with a simple method, powerful simulation function and so on [4]. So, it is an efficient tool for dynamic simulation of mechanism. When the CV motor carries the time-varying workload, it will produce the velocity fluctuation. Such fluctuation propagates to the end-effector of the HPPM. As a result, the end-effector of the HPPM can not accurately move along the desired trajectory. Clearly, closed loop control of the HPPM is key important. Many scholars have been studied it in depth. In [5], a reduced dynamic model of a five-bar linkage mechanism is proposed, and a PD plus full gravity compensation control strategies is designed. In [6], a computed-torque control method for trajectory tracking of the HPPM is investigated. In [7] and [8], a sliding model control strategy was employed to drive the HPPM to follow a predesigned trajectory Iterative learning control (ILC) method originated in the study of industrial robot manipulators, which repeats the same task from trial to trial. ILC is a technique for improve trajectory tracking performance of the system that executes a same operation repeatedly. Through decades of development, ILC has been widely applied in the control field, which robot and other difficult to establish accurately model[9]. The natural of repetitive motion and nonlinear feature of the HPPM makes it possible to apply ILC to improve the tracking performance from iteration to iteration.
In this investigation it will be focused on dynamic simulation of the HPPM based on MATLAB/SimMechanics and Traditional PD control and closed loop PD-type iterative learning control for trajectory tracking of end-effector of the HPPM.
System description and Modeling
The design of the 2-DOF HPPM follows a built-up modular system as illustrated in Fig. 1. The HPPM is composed of five-bar linkage mechanism.

Model of the HPPM
A simple schematic of the HPPM representing the coordinate systems is shown in Fig. 2. Link AB which is driven by CV motor and link DE which is driven by servomotor are two driving links. Link BC and link CD are driven by the two driving links, so that the end-effector can output the flexible trajectory. This paper assumes that the length of links are l1, l2, l3, l4, l5, the angel between links and X-axis are θ1, θ2, θ3, θ4, 0°, the mass of links are m1, m2, m3, m4, the rotational inertia of links are I1, I2, I3, I4.

Schematic diagram of the HPPM
MATLAB/SimMechanics extends Simulink with the tools for modeling and simulating mechanical systems. SimMechanics is one of the physical modeling methods, which modeling and design for systems according to basic physical principals. A SimMechanics model includes a set of blocks (body, joint, constraint, coordinate, sensor and so on), which indicate physical components. In the module environment, SimMechanics uses rigid body and kinematic pair to describe the movement relationship between every rigid body. Dynamic SimMechanics model of the HPPM is shown in Fig. 3.

Dynamic simulation model of HPPM in SimMechanics
Initial position of links can be obtained by kinematic analysis of the HPPM. According to geometric relations of mechanism, as depicted in Fig. 2, it can be derived the coordinates of point C:
From Eqs. (1) and (2), it can be found that θ1 and θ4 are independent in the system, and θ2 and θ3 can be determined by θ1 and θ4 as follows:
where
From Eqs. (2) and (3) above, we get
Dynamic simulation model parameters include control parameters of kinematic pair and physical parameters of rigid body, which could be set by variables input. The initial variable parameters of rigid body and that of kinematic pair can be written in MATLAB m-file and imported in the workspace of MATLAB before dynamic simulation of the HPPM. If the structure parameters of the HPPM need to be changed, only need to change in the M file, there is no need to set parameters for every module in the model.
Based on the results in the [7] and consider the various errors and disturbances, dynamic equation of the HPPM can be described as follows:
where
M(θ') is the symmetric positive definite inertia matrix;
The traditional PD control is widely used in control systems because of its simple algorithm and easy implementation. The PD control law for the HPPM is described by the following formulation:
In the equation, the angular tracking error and angular velocity tracking error are defined as:
Where θ
d
is the desired angular position vector
The block diagram of traditional PD control for the HPPM is shown in Fig. 4.

Control diagram of traditional PD for the HPPM
y
d
(t) is desired trajectory of the HPPM; y
k
(t) is output trajectory of the kth iterative operation;
Consider the (k+1)th iterative operation for the system (5), the closed loop PD-type iterative learning control law is given by
Where
The block diagram of iterative learning control of the HPPM is given in Fig. 5.

Block diagram of ILC for the HPPM
The end-effector of the HPPM is required to move from point M (0.3, 0.3), to point N (0.5, 0.5). The running time is 2 s. Physical parameters of the HPPM and control parameters are listed as follows:
l1=0.21m, l2=0.53m, l3=0.47m, l4=0.25m, l5=0.53m, m1=0.33kg,m2=0.832kg,m3=0.738kg,m4=0.393kg, I1=0.0048 Kgm2, I2=0.0195 Kgm2, I3=0.0136 Kgm2, I4=0.0082 Kgm2, K
p
=diag(200, 200), K
d
=diag(100, 100),
Simulation results of SimMechanics
Sport demo interface of the HPPM can be shown in Fig. 6 and Fig. 7. Fig. 6 shows the initial position sport demo interface of the HPPM. Fig. 7 depicts the end position sport demo interface. The angular curve, angular velocity curve and angular acceleration curve of two driving links can be obtained by simulation, shown as Fig. 8, Fig. 9 and Fig. 10. Fig. 11 illustrates the constraint reaction curves of the kinematic pair A and E.

Initial position sport demo interface of the HPPM

End position sport demo interface of the HPPM

The angular curve of link AB and link DE

The angular velocity curve of link AB and link DE

The angular acceleration curve of link AB and link DE

Constraint reaction curve of the kinematic pairs
Fig. 12 and Fig. 13 show the position tracking error curve of the two driving links in the iterative learning control. From it one can see that, the position tracking error is small (the maximum position error are about 0.00018 and 0.00012 rad) and position tracking performance improvement from iteration to iteration. Fig. 14-17 shows the comparison of the HPPM in the iterative learning control and traditional PD control, and the simulation results of the IPC are the control results after six iterations. Fig. 14 and Fig. 15 show the X-coordinate and Y-coordinate tracking error curve of the end-effector. From it one can see that, tracking error of the end-effector is about 0 under the ILC; the end-effector had larger tracking error under the traditional PD control. Fig. 16 and Fig. 17 show the curve of required torque that drive the two driving links in the two types of controllers. It can be seen from Fig. 16 and Fig. 17 that the required torque under the ILC is smaller than PD control. From Fig. 14 to Fig. 17, it is noted that performance of the ILC is better than that of the traditional PD control for the HPPM.

Position tracking error curve of the link AB

Position tracking error curve of the link DE

X-coordinate tracking error curve of the end-effector

Y-coordinate tracking error curve of the end-effector

The required torque curve of the link AB

The required torque curve of the link DE
The dynamic simulation model of the HPPM is developed by using Matlab/SimMechanics in this investigation. By running the simulation, angular curve, angular velocity curve, angular acceleration curve of two driving links and constraint reaction curve of kinematic pairs are obtained. Traditional PD control strategy and closed loop PD-type ILC strategy are designed for the HPPM. Numerical simulation of trajectory tracking for the HPPM to follow a predesigned trajectory is carried out on the basis of two types of control strategies. The simulation results indicate that the HPPM can accurately track desired path with the closed loop PD-type ILC method, and the tracking performance of the closed loop PD-type ILC system is better than that of the traditional PD control system.
It is noted that the research of the robust adaptive control algorithm is a topic for further research and is currently under investigation. Furthermore, more work is in progress to implement real-time experiments.
Footnotes
6.
This work was supported by the National Natural Science Foundation of China (50905179) and the Postdoctoral Science Foundation of China (201003605).
