1. Introduction
Cable-driven parallel mechanism is a special kind of parallel mechanism that has been developed based on rigid parallel mechanisms. They offer several advantages, including a simple mechanical structure, large working space, and strong load capacity [
1,
2]. As a result, they are used in various fields, such as large equipment handling [
3], large radio telescopes [
4,
5], clinical diagnosis [
6], and rehabilitation training [
7], among others.
Compared to rigid parallel mechanisms, cable-driven parallel mechanisms use cables instead of rigid linkages to connect the end-effector (also known as the moving platform) to the static platform. Multiple cables are used to control the position, attitude, and trajectory of the end-effector to achieve the desired motion function. Position and attitude control refers to controlling the end-effector at a specified position and attitude angle. The position is usually determined using the coordinate value of the center of mass of the end-effector in a fixed coordinate system. Motion trajectory involves controlling the position of the end-effector to move from the starting point to the endpoint along a specified trajectory. End-effector motion trajectory control is essential in many applications, such as cable-tracted cameras, cable-driven 3D printing robots, high-speed motion target simulation, and large motion platform simulators [
8,
9,
10,
11]. These applications have high requirements for motion trajectory accuracy.
The cable-driven parallel mechanism may experience structural dimensional errors during processing and assembly, as well as errors such as elastic deformation of the cable and structural stiffness deformation during operation. These factors can lead to a mismatch between the kinematic or kinetic model parameters established based on the design structure and the actual structure, resulting in model parameter errors. This, in turn, causes position control errors, also known as position errors, where the actual point and the desired position have a coincidence error during the end-effector’s motion control. This error causes the actual motion trajectory of the end-effector to deviate from the desired motion trajectory, forming the motion trajectory error. The sources of model parameter errors are mainly two folds: geometric parameter errors caused by the error of the position of the cable exit point and the error of the starting length of the cable, and non-geometric parameter errors caused by the cable’s elastic deformation, pulley friction, structural stiffness deformation, and other non-linear factors during the end-effector’s movement [
12]. These two different types of errors often have a strong non-linear coupling. Thus, to improve the motion trajectory accuracy of the end-effector, it is necessary to eliminate or reduce the influence of both geometric and non-geometric parameter errors on the motion trajectory error.
At present, there is relatively little research literature on end-effector motion trajectory error control. The main method proposed is to correct the model parameter values by kinematic or kinetic model parameter identification of the actual structure to achieve the purpose of eliminating or reducing the model parameter errors.
Zhang et al. [
13] proposed an optimal measurement position selection algorithm for kinematic calibration, which used a forbidden search algorithm to search for the measurement position with the optimal observation index. They combined this with a visual measurement system to achieve accurate identification of the geometric parameters of the kinematic model of the cable-driven parallel mechanism. This reduced the mean value of the end-effector trajectory error of the 8-cable 6-DOF cable-driven parallel mechanism from 52.2 mm to 7.1 mm. Wenkai He et al. [
14] considered that the cable length error in the cable-driven parallel mechanism is not easy to measure and has the characteristics of force nonlinearity. They proposed a BP neural network-based cable length prediction algorithm by analyzing the kinematic geometric parameter error model of the 6-cable, 6-DOF cable-driven parallel mechanism. This effectively improved the absolute positioning accuracy of the end-effector, but the improvement to the end-effector motion trajectory error was very limited. Li et al. [
15] equated two different types of parametric errors, geometric and non-geometric, as pseudo-errors and approximated the end position error profile caused by the pseudo-errors through a neural network. They established a mapping relationship between the end position error and the cable length and compensated for the position error in the joint space. This reduced the mean value of the end-effector trajectory error of the 6-DOF cable-driven parallel mechanism from 7.5 mm to 1.6 mm. Chellal et al. [
16] used a combination of identifying kinematic and dynamic parameters of the cable-driven parallel mechanism and adjusting the weighted filter controller to control the end-effector motion. They aimed to improve the motion trajectory tracking accuracy and motion trajectory anti-interference performance of the end-effector and achieve high accuracy trajectory motion of the end-effector of the 6-DOF INCA cable-driven parallel mechanism. Briot et al. [
17] identified the kinetic model parameters and joint drive gains of the parallel mechanism based on the least squares method. They experimentally verified the effectiveness of this method on the accuracy of the end-effector trajectory on a 3-DOF orthogonal parallel mechanism. Pengcheng Li et al. [
18] proposed a visual closed-loop output error identification method using an optical coordinate measuring machine as the sensor. They considered the highly coupled dynamics of the parallel mechanism and used non-linear optimization techniques to identify the model parameters. This resulted in a 70% reduction in the root mean square error of the motion trajectory error of the end-effector. In summary, for the motion trajectory error compensation of the end-effector, the existing research mainly analyzes the theoretical research on the trajectory error of the end-effector from the kinematic or kinetic model parameter identification unilaterally, and it is rare to conduct targeted, comprehensive compensation research for the motion trajectory error.
Therefore, this paper presents a comprehensive compensation method for the trajectory error of the end-effector based on the improved sparrow search algorithm and the cable length spatial error compensation algorithm applied simultaneously to improve the trajectory accuracy of the end-effector. This is aimed at the trajectory error problem caused by the geometric and non-geometric parameter errors during the motion of the end-effector of the self-developed 4-cable-driven 2-DOF parallel mechanism for motion target simulation.
3. Motion Track Accuracy Compensation
3.1. Geometric Parameter Error Identification and Analysis
Parameter identification is required first to eliminate the motion trajectory errors of the end-effector using the geometric parameter error compensation method. This is achieved by constructing a kinematic parameter identification matrix to identify the geometric parameter error. Once identified, the geometric parameter error compensation method can be used to eliminate the motion trajectory error of the end-effector.
In the workspace of the cable-driven parallel mechanism, the matrix
is non-singular, and the identification model can be obtained by rewriting Equation (10) as:
where
is the geometric parameter error,
is the error Jacobi matrix
The geometric parameter error
is usually obtained by solving the identification model using the least squares method. The least squares solution can be calculated as follows:
The coordinate values of the measurement points on the end-effector can be obtained through actual measurement in the field. These points can also be referred to as trajectory interpolation points.
Based on the analysis of Equation (10), the end-effector position error model can be derived. It shows that the cable exit point error
cannot be directly compensated while
can be converted into
, which is a more easily measurable and controllable cable length error, that is,
. Consequently, Equation (10) can be simplified as:
If we let
, then Equation (21) can be further simplified as:
Equation (22) shows that adjusting the cable length parameter can compensate for the position error of the end-effector . Therefore, optimizing the cable length parameter to compensate for the error at each position on the end-effector’s motion trajectory can achieve error compensation for the end-effector motion trajectory.
The motion trajectory error model of the end-effector is a multi-input and multi-output model. In this paper, we use the end-effector trajectory error as the objective function and aim to compensate for the end-effector trajectory error caused by the geometric parameter error by improving the sparrow search algorithm to find the optimal cable length parameter .
3.2. Compensation of Motion Trajectory Error Based on Improved Sparrow Search Algorithm
3.2.1. Improving Sparrow Search Algorithm
The Sparrow Search Algorithm (SSA) is an intelligent optimization algorithm that draws inspiration from the foraging and anti-predator behaviors of sparrow populations [
19]. SSA has several advantages, such as good stability, strong global search ability, and few parameters. However, it is susceptible to falling into local optima during the late stages of population evolution.
To improve the application effect of this algorithm, this paper introduces dynamic weights to balance global search and local search and prevent the algorithm from converging into local optima. As a result, the authors propose an Improved Sparrow Search Algorithm (ISSA) that utilizes dynamic adaptive weights.
The expression of the dynamic weight
is as follows:
where
and
are the preset maximum and minimum weight coefficients set beforehand,
is the maximum number of iterations,
t is the current number of iterations, and
follows a uniform distribution within the interval
.
The sparrow search algorithm’s optimized search mechanism finder position update formula, combined with the above dynamic weights
, defined above, is as follows:
where
is the number of iterations,
is a random number with standard normal distribution,
is a matrix with
elements of 1,
and
represent the warning value and safety threshold, respectively.
is the position of the
th sparrow in the
th dimension at the number of iterations
, and
is the optimal position of the sparrow in the
th dimension at the
th generation.
Based on the motion trajectory error model in
Section 2.3, we established the motion trajectory error compensation objective function, that is, the adaptation degree function in ISSA:
The process of compensating the motion trajectory error of the end-effector using the ISSA seeking solenoid length parameter is shown in
Figure 3.
3.2.2. Motion Trajectory Error Compensation Simulation Based on ISSA Algorithm
The ISSA and SSA are simultaneously applied to the end-effector motion trajectory error compensation to verify the effectiveness of the ISSA-based motion trajectory error compensation algorithm and to conduct comparison tests. The end-effector trajectory task is set in the workspace of the cable-driven parallel mechanism: with the parameters,
,
, time of 2.5 s, and step length of 0.05 s. The initial parameters of the ISSA and SSA are set with the sparrow population size
, a maximum number of evolution
, and an initial number of discoverers
, and the number of scouts at 20% of the population size. The weight coefficients used in the fitness function are
,
, and the search space of the sparrow is
(
). The simulation results show that the trajectory error of the end effector changes with the number of ISSA and SSA iterations, as shown in
Figure 4.
As shown in
Figure 4, The compensation effect of the ISSA is significantly better than that of the SSA, which falls into the local optimum during the iterative process of the SSA. Meanwhile, the ISSA cannot only quickly jump out of the local optimum and continue iteration, but also the end-effector trajectory error gradually decreases and converges to zero with the increase of iterations. Specifically, the end-effector trajectory error decreases rapidly in the first five iterations of ISSA, and after the 13th iteration, it stabilizes and gradually converges to the global optimum. These simulation results demonstrate that the ISSA proposed in this paper can converge to the global optimum and effectively improve the accuracy of the end-effector’s motion trajectory.
Figure 5 depicts the trajectory of the end-effector’s motion before and after ISSA compensation. Meanwhile,
Figure 6 and
Figure 7 illustrate the distribution of the end-effector’s trajectory error along the coordinate axis direction before and after ISSA compensation. In
Figure 6, the maximum value of the end-effector trajectory error is 1.365 mm in the
-direction and 1.376 mm in the
-direction. Moreover, the end-effector trajectory error exhibits a triangular function-like distribution along the
-direction and the
-direction.
On the other hand,
Figure 7 shows the error distribution of the motion trajectory of the end-effector along the coordinate axis after ISSA compensation. The maximum error value in the
-direction is
mm, and the maximum error value in the
-direction is
mm. The effect of ISSA compensation is evident, and the influence of the geometric parameter error on the motion trajectory of the end-effector is practically eliminated.
Before compensating for the motion trajectory error, the geometric parameter error was the factor affecting the motion trajectory. This error was a fixed value, which was included in the motion trajectory error model discussed in
Section 2.3. It can be observed that the motion trajectory error
varies with the error Jacobi matrix
. Moreover, the value of the Jacobi matrix is associated with the end-effector position. Therefore, if the motion trajectory task along the coordinate axis direction expression is a triangular function, the motion trajectory error along the coordinate axis direction will also have a trigonometric-like distribution.
With ISSA compensating for the motion trajectory error, the ISSA seeks the optimal fitness value, which varies with the global optimal value search. However, the error Jacobi matrix
is constant. Therefore, the end-effector motion trajectory error distribution fluctuates irregularly after ISSA compensation, as depicted in
Figure 7.
3.3. Interpolation Error Compensation in the Space of the Cable Length
During the operation of a cable-driven parallel mechanism, the elasticity of the cable causes elongation, leading to a cable length error. This error is the main influencing factor of the non-geometric parameter errors. In this paper, we propose the use of a spatial interpolation error compensation algorithm to counteract the motion trajectory error caused by the elastic elongation of the cable.
By combining the position error similarity theory [
20] with the kinematic model, position error model, and trajectory error model established in Equations (1), (10) and (17), we can analyze the system. In the kinematic model Equation (1), the position
of the end-effector is determined by a set of corresponding cable length parameters
; the cable and changes in cable length correspond to changes in the end-effector position. In the position error model m Equation (9), the changes in cable length parameters and end-effector positions of the cable-driven parallel mechanism are continuously differentiable after fully differentiating the kinematic model. This means that when there are micro-elementary changes in the errors of the cable length parameters, there are corresponding micro-elementarily changes in the end-effector positions. Therefore, the corresponding error curves for the two are smooth and continuous.
Based on the theory of position error similarity, we know that when the Euclidean distance between the two sets of cable length parameters of the cable-driven parallel mechanism is close to each other, their position error vectors have a certain degree of similarity. In other words, this means that when the Euclidean distance between two groups of cable lengths reaches a certain degree of similarity, one group of cable length errors can be used to replace the other group of cable length errors.
Based on the unique solutions of the forward and inverse kinematics of the 4-cable-driven 2-DOF parallel mechanism, as well as the continuity of the cable length error and the force state and deformation of the mechanism, we propose an interpolation error compensation in the space of the cable length algorithm for cable-driven parallel mechanism. This algorism compensates for the motion trajectory error of the end-effector by using the space division grid interpolation method [
21], and the steps are as follows:
A number of specified positions are obtained between the start and end points of the end-effector trajectory based on a given step size. These positions are also known as trajectory interpolation points, and their coordinate values are denoted by . The kinematic inverse solution is used to obtain the cable length value corresponding to the trajectory interpolation points;
The workspace of the cable-driven parallel mechanism is divided into a series of positive quadrilateral grids based on the space division grid interpolation method. Suppose the coordinates of the theoretical position of the grid vertex of the square quadrilateral in which the trajectory interpolation point is located are
. Then, the corresponding theoretical cable length of the grid vertex in the cable length space is
(
). The four vertices of the quadrilateral where the trajectory interpolation points are located are used as “sampling points.” The actual position coordinates
of the sampling points of the mechanism are measured by measuring instruments, and the kinematic inverse solution model is used to solve the error of the cable length corresponding to the movement of the end-effector to each point:
where,
,
,
.
The error compensation for the end-effector trajectory interpolation points is evaluated using the cable length spatial distance evaluation function. However, since the trajectory interpolation point is typically not located precisely on a grid vertex during the motion of the end-effector, an interpolation error compensation method based on the inverse distance weight function of the cable length space is proposed in this paper. This method takes into account the continuity of the error of the cable-driven parallel mechanism; it does not happen to be on the grid vertex. Therefore, combined with the above-mentioned characteristics of continuity of the error of the cable-driven parallel mechanism, this paper proposes an interpolation error compensation method based on the inverse distance weight function of the cable length space and enables the calculation of the cable length space error value of the trajectory interpolation point. This value is then used to adjust the driving cable length of the trajectory interpolation point, compensating for the motion trajectory error of the end-effector caused by non-geometric parameters.
The distance weights
of the
th vertex of the quadrilateral with respect to the interpolation point of the trajectory can be calculated using Equation (27):
Here,
, represents the cable length distance in space and
is the weighted power exponent, which is set to 1 in this case. The value of
is derived from Equation (27).
Using the weight
and the cable length space error of the trajectory interpolation point and the end-effector at each vertex, the cable length error value of the trajectory interpolation point can be calculated as shown in Equation (28):
The cable length error value of the trajectory interpolation point is used to compensate for the error in the cable length of the trajectory interpolation point to reach the desired cable length
. This compensation ensures that the actual drive cable length of the compensated trajectory interpolation point of the end-effector trajectory is obtained as follows:
where
.
4. Experimental Verification
4.1. Experimental Device
The self-developed 4-cable-driven 2-DOF parallel mechanism was experimentally verified for its end-effector motion trajectory accuracy compensation.
Figure 8 shows the physical diagram of the 4-cable-driven 2-DOF parallel mechanism used in the experiment. The static platform is made of aluminum alloy and has a rectangular frame measuring 1.5 m × 2.1 m, which is assembled by aluminum profiles to provide a benchmark for the installation and positioning of other components. The guide pulley group consists of a guide pulley, preload pulley, and pulley bracket to provide guidance and preload for the cable. The end-effector, which is the dynamic platform, is an aluminum hollow cylinder of uniform mass weighing mass is about 0.3 kg, which is the main driving target of the cable-driving parallel mechanism. Four linear motors consisting of linear motors, guideways, sensors, etc., provide the driving force for the cable-driven parallel mechanism. The drive modules are mounted on the top and bottom sides of the frame. Four cables drawn by the drive modules are crossed and fastened to the geometric center of the end-effector diagonally. A special red visual target is fixed on the end-effector, and a Balser high-speed camera-based vision measurement system is used to track and capture the circle center of the target, which is used as a point feature to obtain the position and motion trajectory information of the end-effector.
The vision measurement system consists of a camera, an image acquisition card, and an industrial control PC. The camera completes the image acquisition work, and the industrial control PC completes the image processing, feature extraction, and position calculation. The maximum sampling frequency of the adopted vision measurement system is 340 frams/s, the average value of position measurement error is 0.199 mm, and the standard deviation is 0.0263 mm, which can meet the position tracking measurement requirement of the end-effector.
4.2. Experimental Method
The end-effector motion trajectory accuracy compensation experiments were conducted following the guidelines outlined in the international standard ISO 9283:1998 [
22] for industrial robot trajectory accuracy testing. According to this standard, industrial robot trajectory accuracy is determined by the deviation between the position of the commanded trajectory and the position of each actual trajectory to the centerline of the trajectory position cluster. The trajectory accuracy is expressed as
:
Here , and are the average values of the interpolated points’ coordinates of the given motion trajectory in all directions. , are the number of interpolated points of the given motion trajectory.
The specific experimental procedures were as follows:
Based on the selection of the experimental space in the experiment and the characteristics that the working space of the studied 4-cable-driven 2-DOF parallel mechanism is planar, a square quadrilateral with a side length of 520 mm in the working space is selected to test the accuracy of the end-effector trajectory, and the world coordinates system of the cable-driven parallel mechanism is set at the center of the quadrilateral, and the coordinate of the vertex in the world coordinate system is .
The line segment
was selected as the experimental trajectory for the end-effector motion trajectory accuracy test. Fifty trajectory interpolation points were chosen on the trajectory, and the grid where the trajectory interpolation points are located was divided according to a certain grid size, as shown in
Figure 9. In the figure,
are the five trajectory interpolation points, and the pink quadrilateral is the grid corresponding to the trajectory interpolation points, and the position errors of the grid vertices need to be measured to compensate for the non-geometric parameter errors in the motion trajectory errors when the interpolation error compensation algorithm is applied in the cable length space;
A vision measurement system was used to measure the trajectory error and compensate for the end-effector at 50 trajectory interpolation points. The numerical changes of before and after the algorithm compensation were compared to evaluate the compensation effect of the algorithm.
4.3. Compensation of Motion Trajectory Error Based on Improved Sparrow Search Algorithm Experimental Results
Fifty static position points in the workspace of the cable-driven parallel mechanism were selected, and the position errors were measured using the visual measurement system. The experimental results of the position error for 50 static positions of the end-effector before and after ISSA compensation are shown in
Figure 10 and
Figure 11. The maximum value, mean value, and variance of the position error of the end-effector before the ISSA compensation are 10.064 mm, 4.228 mm, and 4.461 mm, respectively. The maximum value, mean value, and variance of the position error of the end-effector after ISSA compensation are 4.275 mm, 2.568 mm, and 0.758 mm, respectively. The position error of the end-effector is reduced by 42.4% after ISSA compensation, which effectively compensates for the position error of the end-effector.
The trajectory accuracy () was used to evaluate the motion trajectory error of the end-effector given motion trajectory before and after the ISSA compensation. The results showed that before compensation, the trajectory accuracy was 5.949 mm, while after compensation, it improved to 2.625 mm. The motion trajectory error of the end-effector was reduced by 55.9% compared to that before ISSA compensation. The following will further compensate for the motion trajectory error of using the method of interpolation error compensation in the space of cable length.
4.4. Experimental Results of Interpolation Error Compensation in the Space of Cable Length
The experimental plane was divided into 40 mm, 20 mm, and 10 mm grids. The visual measurement system was used to measure the error value of each grid vertex and calculate the compensation value of the cable length for 50 interpolated points of the given motion trajectory of the end-effector by combining with Equation (28), thus compensating the accuracy of the motion trajectory in the cable length space.
The numerical value of the trajectory accuracy () was used to evaluate the error compensation effect of different grid sizes on the motion trajectory . The results showed that when the grid sizes were 40 mm, 20 mm, and 10 mm, the corresponding reduced from 2.625 mm to 1.791 mm, 1.569 mm, and 1.548 mm, respectively. The analysis of the results indicated that as the mesh division size decreased, the motion trajectory error after the interpolation compensation of the cable length space decreased, and this also increased the measurement workload of the mesh vertex position information. Moreover, the marginal effect of the motion trajectory error compensation effect decreased and became less significant.
5. Conclusions
In this study, we aim to address the trajectory errors that arise from geometric and non-geometric parameter errors during the motion of the end-effector of a 4-cable-driven 2-DOF parallel mechanism. The mechanism was developed independently for motion target simulation. To mitigate the trajectory error of the end-effector motion, we proposed a comprehensive compensation method. Our approach is based on the simultaneous application of the improved sparrow search algorithm and the cable length space error compensation algorithm.
A model of kinematics of the end-effector parallel mechanism is established by the vector method, and a model of position error and a model of motion trajectory error of the end-effector is established by differential kinematics theory. Based on the position error model, the influence of geometric parameter error on the motion trajectory error is analyzed, and it is found that the optimized cable length parameter can reduce the influence of geometric parameter on the trajectory accuracy. An improved sparrow search algorithm is used to compensate for the position error of the motion trajectory interpolation point, and the motion trajectory error compensation is realized. The correctness of the algorithm was verified using experiments and simulations, respectively.
To address the end-effector trajectory errors caused by non-geometric parameter errors, the intrinsic correlation between the adjacent position errors of the end-effector and the variation of the cable length is analyzed by the error similarity theory. It is found that the end-effector position errors have the characteristics of continuity in the cable length space, the trajectory interpolation point position errors are compensated by a cable length space interpolation compensation method, and the actual trajectory drive value of each trajectory interpolation point is solved by using the cable length space distance weight function, which improves the motion trajectory accuracy of the end-effector.
Experimental validation results demonstrate that the improved sparrow search algorithm to compensate for geometric parameter error reduces motion trajectory error from 5.949 mm to 2.625 mm. Similarly, using the interpolation error compensation in the space of the cable length algorithm further reduces motion trajectory error from 2.625 mm to 1.548 mm. By integrating both algorithms simultaneously, motion trajectory error is reduced by 75%.