Abstract
Introduction
When designing the pitching mechanism for the separation of a wind tunnel body, 1 a linear variable arc mechanism is proposed to replace the rotating pair in order to avoid movement inaccuracies of the mechanism and capture the test trajectory so that the pitching motion of the separation body can be realized. The mechanism can be positioned within the wind tunnel flow field and can effectively avoid the cumulative error caused by rotation of the rotating pair. The length error of the mechanism arm is reduced, and the kinematic accuracy of the mechanism is extended. The mechanism has good kinematic characteristics and a fast response and it can significantly improve the ability of the wind tunnel to capture the trajectory.
Due to limitations in the structural space, errors caused by manufacturing and installation cannot be accurately identified. Depending on the measurement conditions that exist, the accuracy of the calibration algorithm will depend on the error model that is used, as well as the measurement and calculation accuracies. 2 Most of the current calibration models are based on the parallel mechanism with multiple degrees of freedom.3–5
Ruaf and Ryu 6 constructed an error model for the mechanical structure based on the mechanical constraints of the movement of the mechanical device. Liu et al. 7 proposed a type of method that uses the perturbation method to establish an error model for the parallel mechanism and simulated and analyzed the calibration method for the inverse solution of the mechanism. Chen et al. 8 synthesized a new type of error mathematical model for the parallel mechanism based on the inverse kinematics of the mechanisms.
Pei et al. 9 used tricept to detect redundant sensor data, which is an effective method to improve the accuracy of the self-calibration. Chanala et al. 10 used the external geometric calibration method to decrease the influence of the error on the motion precision processing and manufacturing. Sun 11 studied the virtual axis mechanism and obtained an equation based on the position vector of the driving rod length, the static platform, and the center of the six hinges of a moving platform with an unknown quantity. This equation was used to establish a simple model, but the selection of the initial value is too large which leads to low calculation precision. Kong et al. 12 built a visual space target positioning algorithm in an active binocular visual monitoring platform to improve the motion precision. Dany et al. 13 studied an interval arithmetic method for the mathematical parallel mechanism and proved its validity. Xiao14,15 proposes a hybrid optimization algorithm HACO (a Hybrid Ant continuous ant colony Colony, Optimization) combined with differential evolution and population growth of learning to generate dynamic Gauss probability density function based on slow fall into local optimum, improves the optimization performance of the algorithm. These improved algorithms can improve the searching ability of ACOR algorithm to a certain extent, but there is still room for improvement. Generally, regardless of the method used to calibrate the mechanism, the position and attitude error at the end of the mechanism must be obtained, and then a corresponding calibration model must be used to analyze the parameters of the mechanism.
For this pitching mechanism, the accuracy of the three error sources which affect the pitching movement process was studied and a relatively complete model calibration error is proposed using a closed vector method. The calibration model for the nonlinear transcendental equations of the multi-objective problem is transformed using an appropriate method into a weighted scalar problem. An improved ant colony algorithm is proposed to solve the multi-objective optimization problem.
Mathematical model of error of pitching mechanism
The main components of a pitching mechanism include a drive screw servo motor, a linear guide rail slider, a lead screw nut, an arc guide rail slider, a drive connecting rod, and a set of linear slide blocks. In order to verify the analytic results and find a solution, a simulation mechanism for this pitching mechanism with relevant coordinate systems is constructed by CAD variation geometry (see Figure 1).

Model of pitching movement mechanism.
During movement of the pitching mechanism, rotation of the servo motor drive screw moves the nut in a linear motion. The ball screw nut is connected to the drive connecting rod which moves the linear slider along a straight line on the guide rail, which is connected to the driving rod which is installed on arc sliding block machetes. This causes a roll mechanism along the arc guide which rolls the tail end of the strut toward the center of the circle turn, eventually making stores (machine tools) around a Z-axis rotation, where the system origin is the center of the coordinate system and angle
The greatest influencers of the movement accuracy are the main geometrical parameters, which are the arc radius of the guide rail
A kinematic sketch of the pitching mechanism is shown in Figure 2.
where

Diagrams of the pitching mechanism.
As shown in Figure 2, the angle
the coordinates of
The relationship between the pitching angle and the linear sliding block displacement is solved
Expression (4) provides a model for the motion error of the pitching mechanism which is related to the three error sources of
The pitching angle error can be obtained as shown in Figure 3 based on the actual pitch motion. In this example, the arc guiding radius error is

Error of the movement of the pitching angle: (a)
The results from the simulation and analysis show that the three error sources all have a strong influence on the movement regulation of the pitching mechanism. Therefore, an effective method needs to be adopted to reduce their influence on the mechanism in order to improve the working accuracy requirements for practical engineering applications.
Error calibration and solution
The error calibration model for the pitching mechanism is a function of the measurement parameters and the error model based on the visible error sources, since each error source is identified using corresponding mathematical methods. The identified result is used to modify the control program of the kinematics model parameter, in order to reduce the influence of the original error on the accuracy of the final pitching mechanism.
There are three error sources existing for the pitch motion error model. Since the measurement of a set of data requires at least one kinematic equation, it is necessary to have at least three measurements to determine the value of each error source. However, there are usually many locations selected to measure the effect of noise on the calibration results in practical engineering applications. The mathematical model for the error calibration of the pitching mechanism is established as follows
Equation (5) is a nonlinear transcendental equation which includes the measurement information, driving information, geometric parameters, and the error sources in the position and attitude of the pitching. The error parameter identification for the pitching mechanism can be attributed to a set of nonlinear transcendental equations, which can be transformed into an optimization problem of the nonlinear model parameters. An improved ant colony algorithm is used to solve the nonlinear transcendental equation and equation (5) is simplified as
The nonlinear transcendental equations are transformed to a minimum value to solve the multi-objective optimization problem
The power and law method can be used here to transform the multi-objective optimization problem into a scalar problem of weighted targets
where
The mathematical optimization model for the error parameter identification of the pitching mechanism can be derived as
The weight coefficients of each sub-objective function are equal and so can be easily calculated. Set
Basic ant colony algorithm
Based on a study of the optimization process used by ant colonies to find food, the famous Italian scholars Colornia et al.
17
proposed a type of intelligent bionic algorithm in 1992 which was the basic ant colony algorithm mathematical model for solving discrete problems, such as the TSP traveling salesman problem, assignment problem, and job scheduling problem. The method is characterized by the use of positive feedback and distributed cooperation to find the optimal path. The basic ant colony algorithm is composed of a pheromone updating rule and a state transition rule. For instance, the movement probability for a single ant
where
Each time the ant completes a cycle of movement, the intensity of the pheromone at a given time is changed and the path information of each ant is updated as
where
Improved ant colony algorithm
The basic ant colony algorithm has some problems due to a local optimum and a slower speed of convergence. Since the optimization problem for the objective function is a continuous domain optimization problem, a new continuous domain for the ant colony algorithm is proposed to solve this problem, 18 which can be used for continuous space discretization before using the ant colony algorithm to solve the problem. Dero and Siam 19 proposed a continuous domain which can be used for solving the ant colony algorithm which was the first method to use the pheromones of transfers and direct communication in two ways to guide the ant colony optimization20–22 and also synthesized several ant colony algorithms for the continuous domain. Based on previous studies, this article proposes a relatively simple improved ant colony algorithm. The basic scheme for the improved ant colony algorithm can be expressed in the following.
First, using the machining and installation precision of the pitching mechanism, the constraint space for the three error sources can be set as
The steps of the algorithm are proposed as follows:
1. Determine the initial position of the ant colony by random distribution within the feasible region of the variable.
2. Determine the size of the pheromones based on the objective function
The minimum value of the objective function needs to be solved since the monotonicity of the minimum value is the opposite of the objective function, which is the maximum pheromone value. When
where
3. Determine the size of the pheromone value when the ant colony is in its initial positions, record the optimal value
4. Perform global searches and local searches to try to locate the ants. The search is mainly performed using the transition probability of the ant colony as shown in equation (15)
where
5. Determine the pheromone value of each ant after each search.
If
6. Update the pheromone value of each ant each time a movement is completed
7. Repeat the iterative calculation by returning to step 4, unless the number of iterations is greater than the maximum number of cycles and then end the cycle and output the final results.
Example simulation
In order to verify that the improved ant colony algorithm can meet the accuracy requirements for the calibration of the pitching mechanism, a simulation experiment for the pitching mechanism was performed in this article. According to wind tunnel test requirements, a 3D model of the actual pitching mechanism is shown in Figure 4.

View of the pitching mechanism.
The accuracy of the mechanical machining and assembly are used to give the range of accuracy requirements for the three error sources as

Range of the objective function.

Initial position distributions of ants.
This displays the random distributions of the ant colonies. Using the improved ant colony algorithm, all the ants gather at the minimum value of the objective function, which is not affected by a local minimum, as shown in Figures 7 and 8.

Ants’ position distribution after moving 200 times based.

Ants’ position distribution after moving 400 times.
As shown in Figure 8 for the ants movement after 400 times, all of the ants are concentrated in a point location; the convergence effect is very good. The problem is to be solved by the basic ant colony algorithm in the same conditions, as shown in Figure 9, the ant movement after 400 times is still relatively scattered, they did not achieve the convergence effect, it means that the ants continue to move in order to meet the requirements of precision. When every ant movements 800 times, eventually all the ants gathered at one point, as shown in Figure 10.

Ants’ position distribution after moving 400 times based ACO.

Ants’ position distribution after moving 800 times based ACO.
Using relative analytic equations and MATLAB, the three error values of the pitching mechanism are obtained: the radius error of the arc guide

The maximum value of pheromone and the average value of pheromone.
Compared with the initial values, the precision of the errors produced after calibration is 0.0017, 0.0014, and 0.0003 mm. Thus, this method to calibrate the pitching mechanism will not be affected by the initial values, and the calculation accuracy can meet the requirements of the wind tunnel test.
Comparing Tables 1–3, calculation results easily affected by the initial impact of the traditional Newton–Raphson method. The initial value of the different calculation results will make a substantial deviation. The improved ant colony algorithm is proposed in this article can effectively avoid the initial value impact on the calculation results and obtain a more accurate computational solution.
Results of improved ant colony algorithm.
Results of Newton–Raphson method.
Results of basic ACO method.
Finally, the error source is identified by introducing the error source into the kinematic equation, and the pitching angle error calibrated is shown in Figure 12. Compared with Figure 13, the error of the error of the pitching angle is obviously reduced, and the aim of reducing the influence of the original error on the motion accuracy of the mechanism is achieved.

Error of the pitching angle after calibration.

Error of the pitching angle before calibration.
Conclusion
The three principal initial error sources which affect the motion precision of the pitching mechanism are analyzed. These initial error sources prevent the actual mechanism from behaving according to the theory of motion laws. A closed vector method was first used to establish the error mathematical model of the pitching mechanism in order to solve the effects of the three initial error source on the pitching motion. A control variable method is used to analyze the influence of the three initial error sources on the motion accuracy of the mechanism. An error parameter identification model based on an improved ant colony algorithm is then established. Finally, an improved ant colony algorithm is proposed to transform the nonlinear problem of the calibration model of the pitching mechanism into a multi-objective function to find the optimal solution. And compared with results which utilize traditional Newton–Raphson iterative method and ACO, the motion accuracy of improved ant colony algorithm was higher, and the accuracy can reach a level of 10−5 mm. The improved ant colony algorithm is used to identify the error parameters, and the recognition results are input into the kinematic formula to correct the influence of the initial error on the accuracy of the mechanism. The method can be implemented for error calibration of other complex parallel mechanisms, and thus has a universal characteristic.
