Abstract
This paper deals with the classic problem of the synthesis of planar linkages for path generation. Based on the Fourier theory, the task curve and the synthesized four-bar coupler curve are regarded as the same curve if their Fourier descriptors match. Using Fourier analysis, a curve must be given as a function of time, termed a parametrization. In practical applications, different parametrizations can be associated with the same task and coupler curve, respectively; however, these parametrizations are Fourier analyzed to different Fourier descriptors, thus resulting in the mismatch of the task and coupler curve. In this paper, we present a parametrization-invariant method to eliminate the influence of parametrization on the values of Fourier descriptors by unifying given parametrizations to the arc length parametrization; meanwhile, a new design space decoupling scheme is introduced to separate the shape, size, orientation, and location matching of the task and four-bar curve, which leads naturally to an efficient synthesis approach.
1. Introduction
This paper studies the problem of dimensional synthesis of planar four-bar linkages for path generation. In the field of computational shape analysis [1], it is routine to process and simplify shapes before the comparison. This simplified representation of shapes is called shape descriptor or shape signature. Of our interest is the use of Fourier descriptor (FD) in characterizing the coupler path of four-bar mechanisms.
The application of FD to mechanism design was first explored by Freudenstein [2] in the context of function generation. The research was followed by Funabashi and Freudenstein [3], Farhang et al. [4, 5], Chu and Cao [6], McGarva and Mullineux [7], McGarva [8], Ullah and Kota [9], and Nie and Krovi [10]. Lately, Chu and Sun [11, 12] and Sun and Chu [13] have extended FD based method to the synthesis of spherical and spatial linkages. One of the key features of the FD based method is the ability to decouple the nine design variables involved in path generation. Ullah and Kota [9] were the first to present this conclusion and used it to reduce the dimension of the search space from nine to five. Recently, Wu et al. [14] further reduced the search dimension from five to four. Another important feature is that while the path of a coupler point depends on the choice of the coupler point, one may extract a subset of FDs of the path in such a way that they depend only on the linkage dimensions but not on the choice of the coupler point. This means that, for each four-bar linkage, one set of Fourier descriptors can be used to tag all its coupler curves. Chu et al. [15] made this key observation and achieved significant reduction in the size of the database for numerical atlas. Xie and Chen [16] were the first to extend Fourier descriptor method to the image space of kinematic mapping to solve the whole cycle motion generation problem in four-bar linkage synthesis.
While proven to be an effective tool for the path and motion generation problems, the FD based method in its current form, however, is not without limitations. The prerequisite for applying the Fourier transform is that the path should be mathematically defined as a function of time , also known as parametric representation or parametrization. Given the parametrization of the path, FDs for the path are then obtained through the Fourier transform and used to identify or tag the path. However, numerous kinds of parametrizations can be introduced to define the same path [17], and the Fourier descriptors for each parametrization are different, indicating that the same path can have different identities or tags. In terms of the path generation problem, the objective is to match the FDs of the task and four-bar paths. The parametrization of the task path is prescribed according to the user’s need or practical applications, while the parametrization of the synthesized four-bar path, in traditional Fourier approaches, is generated by rotating the input link of the four-bar mechanism at a constant angular speed. In the case that the desired path is actually the four-bar path but has the parametrization equivalent to the one generated by the input link rotating at a nonuniform angular speed, their FDs will differ from each other. Therefore, in order to better match the task path with the four-bar path, we need to compare their FDs under the same parametrization.
In this paper, we use arc length parametrization to be the parametrization for the task and four-bar coupler curve. Arc length parametrization is based on an intrinsic property of curve: arc length. Before matching two paths by their FDs, we need to reparameterize them using arc length as the parameter. However, direct comparison between the synthesized and desired path under the arc length parametrization requires the search for ten design variables of the four-bar mechanism simultaneously, which would cause tremendous computational cost. Considering that a curve is characterized by its location, orientation, size, and shape, we present a novel scheme for decoupling the design space of four-bar mechanisms by identifying the design variables that separately affect the location, orientation, size, and shape of a four-bar path. Instead of matching the entire task and four-bar path, we can first match their shapes to obtain a subset of design variables and then match their sizes, orientations, and locations, respectively, to determine the remaining variables.
In order to make the shape comparison, the curve normalization procedure proposed by Dikabar and Mruthyunjaya [18] is used to remove the location, orientation, and size information of a path. This procedure treats the path as a polygonal curve and uses its vertices’ coordinates to normalize the polygonal curve to a canonical curve within a bounding unit rectangle. Following the normalization step, we apply arc length parametrization to the normalized task and four-bar path so as to compare their FDs against the same parametrization. For efficiently searching the shape-related design variables that generate the shape of four-bar path with the best-match FDs, an artificial neural network (ANN) is trained to establish the relationship between those design variables and their corresponding FDs. As for the finding of remaining variables, we formulate a restoring method to determine their values, respectively, through size, orientation, and location matching.
One issue worth attention is that the path is actually defined by an ordered sequence of points uniformly sampled in the time domain; after reparametrizing the path using arc length, the parameter values (arc length values) associated with the sampling points could be unevenly distributed. In this case, the discrete Fourier transform (DFT) is not applicable; instead, the trapezium rule presented by Vasiliu and Yannou [19] or the least squares curve fitting approach by Wu et al. [20] can be used to compute the Fourier descriptors.
The organization of the paper is as follows. Section 2 reviews how FDs are used for representing a closed curve on the plane and discuss the issue of parametrization in detail. Section 3 presents the loop closure equation of a four-bar linkage in a form that is suitable for the development of this paper and its Fourier analysis. Section 4 introduces how to decouple the design variables in view of the issue of parametrization. Section 5 illustrates the numerical synthesis algorithm, involving curve normalization, arc length parametrization, backpropagation artificial neural network, and restoring method. Section 6 gives results and discussion of our approach to justify its effectiveness in path generation, with comparison against traditional Fourier based path generation algorithms.
2. Parametrization Dependence of Fourier Based Path Representation
This section reviews the use of FD in characterizing a path generated by a point on a rigid body and discusses the issue of parametrization.
A planar rigid body is shown in Figure 1. The position of the moving body relative to a fixed frame is represented by a frame attached to the moving body. Assume that the rigid body is moving in the plane; one point traces out the closed curve (task curve) marked with dashed line while the one with solid line is the matching curve to be synthesized by a four-bar mechanism.

When a closed task curve is specified as a periodic complex function , it can be approximated by a finite series of sinusoidal functions in complex form aswhere is a small positive integer defining the maximum order of the harmonic terms used for the approximation and the coefficients are termed the FDs of the given path. Given the cycle time is 1, that is, , the FDs are calculated as
Equations (1) and (2) are established on the path function , also known as the parametric form of the path. However, various parametrizations can be used to define a path of the same geometry [17]. For example, the unit circle can be represented either as the standard parametric formor as an alternative formThe unit circle with the two parametrizations is shown in Figure 2. The effect of changing the parametrization is equivalent to altering the speed at which the path is traced out. The parametrization can be viewed as being traced by a point revolving around the origin at a constant angular speed of while the parametrization is viewed as being traced by a point revolving around the origin at a varying angular speed of . In other words, a point will reach a certain position on the unit circle using different time for these two parametrizations.

(a)

(b)

(c)
Now, we obtain the Fourier representation of these two parametrizations. The Fourier series approximation of is given by itself:On the other hand, the Fourier expansion of is given by
It is noted that the FDs of these two parametrizations disagree with each other, yet they both define the unit circle. Suppose that the unit circle is the task path where we require a crank-rocker mechanism as shown in Figure 3 to generate. The only candidate capable of exactly tracing the unit circle is the moving pivot , which can be regarded as extreme case of coupler point . Traditional Fourier approaches assume that the input link rotates at constant angular speed . If the parametrization of the unit circle takes the standard form , will be found as the solution; however, if the parametrization changes to , a different coupler curve other than will be found that can only approximate rather than exactly match the unit circle.

When the task curve is represented by a discrete sequence of points (), the discrete Fourier transform (DFT) is used to obtain the FDs. The inverse DFT of is represented asThe FDs are given by forward DFT:
The validity of (7) and (8) is based on the assumption that are associated with equally spaced values of the parameter , that is, . If a different parametrization is assigned to , will be denoted as in which is an unequally distributed sequence in . In this case, (8) is not applicable. In order to address the nonuniform spacing of , we apply the curve fitting approach to obtain the uniform FDs, which is formulated in the least squares sense by defining and minimizing the following error function:where denotes the magnitude of a complex number. Note that (9) is also suitable for the uniform spacing case.
For the same sequence of points with two different parametrizations and , the FDs will be different, as in (9). for all while is different from . Therefore, the Fourier representation of a task curve, given either as a continuous function or as a sequence of points, is dependent on the underlying parametrization. In what follows, we present the Fourier analysis of the four-bar mechanism with the parametrization issue considered.
3. Fourier Analysis of the Four-Bar Mechanism
Consider the planar four-bar linkage shown in Figure 3 with being the fixed coordinate frame. The fixed pivot is located at point with being the ground link and the input link. Let denote the length of the th link and the angle measured from -axis of the fixed frame. Let , , and be the angles of links , , and as measured from the ground link , respectively.
In consideration of the parametrization issue discussed in Section 2, the input link is specified to rotate at a varying angular speed of , and therefore the rotation angle function of the input link is given aswhere is the initial input angle and .
Using loop closure equations, the coupler angle is given bywhereand the sign ± corresponds to the two configurations of the four-bar linkage for each input angle.
In view of (11), it is clear that the complex exponential of coupler angle depends only on the input angle as well as three link ratios. Also, (11) leads to the following well-known feasibility condition:The input link is crank if this inequality holds for all ; otherwise, it is a rocker.
Now let us consider Fourier representation of the coupler curve of a four-bar mechanism. Let be the complex number specifying the fixed pivot and let represent the location of coupler point relative to the coupler link . The complex-form coordinates of the coupler point relative to global frame can be represented asNote that ten design variables are involved in (14).
In view of (10) and (11), the Fourier representations of and are given asSubstituting (15) and (16) into (14), we obtain the Fourier representation of the coupler path :where
By observing (18), it can be concluded that the FDs are determined by , of which depend on the variable part of the rotation function , while are determined by and . Furthermore, is related to the parametrization of , that is, the speed at which is traced out. is determined by all the aforementioned factors plus the location of the fixed pivot .
In order to match or approximate a task path as closely as possible, we seek to match its FDs denoted as with four-bar curve FDs , both of which are computed against the arc length parametrization. First, eight design variables are used to match and ; second, the rest of two variables and are used to match and . The main disadvantage of this direct comparison approach is that we have to search the eight design variables involved in the first step simultaneously at a high computation cost. From a geometric point of view, a path is characterized by its location, orientation, size, and shape. In Section 4, a novel decoupling scheme will be presented to classify the design parameters in terms of their roles in determining the location, orientation, size, and shape of the four-bar curve.
4. Decoupling of Design Variables
In this section, we seek to decouple the design space of a four-bar mechanism by identifying the relationship between the design variables and the geometry of a four-bar coupler curve.
Before the introduction of our method, we briefly review the decoupling scheme in traditional Fourier based path synthesis approaches. The assumption made in traditional approaches that the input link rotates with a constant speed can lead to a simpler decomposition scheme. First, (10) is reduced toSecond, (15) is simplified toHence, (18) becomesBy observing (21), depend on . In the method presented by Chu et al. [15], further decoupling is carried out by noting that is decided only by . In the method of Wu et al. [20], a least squares method is formulated to separate from .
Now with the additional complexity of parametrization issue, we need to adopt a different approach to design space decoupling. As stated above, ten design parameters are involved in the synthesis process. Through the following derivation, we will see their different roles in determining the location, orientation, size, and shape of the coupler curve.
The point coordinates of the coupler curve are captured by (14), which can be divided into two parts:where By examining the above equations, (22) and (23), it is first noted that only affects the location of the coupler curve because it translates the point coordinates of the entire curve by a vector of . Hence, the curve represented by has the same orientation, size, and shape as the original coupler curve P. Second, only influences the orientation of the four-bar curve as it rotates the entire curve by an angle of . Therefore, the curve described by has the same size and shape as P. Furthermore, we divide by to getThe curve described by has the same shape as the four-bar curve P, but with times the size of P.
Until now, we have isolated as location-related variables, as orientation-related variable, and as size-related variable. Since the curve is of the same shape as original coupler curve P, the variables contained in will influence the shape of the coupler curve. In view of (11) and (12) and , those variables are (note here that decides only the starting point to trace out the coupler curve and does not affect the geometry at all). In addition, to represent the coupler point coordinate relative to the coupler link instead of ground link , are changed to , and finally the five shape-related variables becomeThrough the above analysis, we have identified the design variables in (25) as shape-related variables, which reflect the link ratios and the relative coupler point coordinates to the coupler coordinate frame. Now, the procedure of matching task and four-bar path is greatly simplified due to the new decoupling scheme. Instead of matching the FDs of the entire task path and the entire four-bar curve, we only need to match the FDs of their shapes, by searching the values of the design variables in (25). Following the shape match, subsequent steps of size, orientation, and location match can determine the values of , , , and .
5. Numerical Synthesis
In this section, we first present the shape match algorithm to find the design parameters in (25). In order for the shape comparison to be independent of path location, orientation, and size, a curve normalization procedure must be carried out to transform the task and the curve , which is the shape equivalence of the original four-bar curve P, into their canonical configurations, respectively. Moreover, previous to matching the FDs of the normalized task and four-bar path, we need to convert their parametrizations into arc length parametrizations, respectively. To enhance the efficiency of shape match, we employ artificial neural networks to establish the relationship between the parameters in (25) and the FDs of the normalized four-bar path. After the shape match, we introduce the restoring method to implement the size, orientation, and location match for the sake of finding the remaining variables.
5.1. Curve Normalization
Curve normalization procedure (see Appendix), as shown in Figure 4, was first proposed by Dikabar and Mruthyunjaya [18] and later adopted by Marín and González [21]. Recently, Galán-Marín et al. [22] applied it with wavelet descriptors approach to efficiently synthesize crank-rocker mechanisms constrained by optimal transmission angle. The principle of this procedure is that we treat a closed curve as a closed polygon of vertices and sides, with the vertices corresponding to the points of the discretized curve. Through curve normalization, the major principal axis of moment of inertia is aligned with the -axis; then, the width and height of the bounding box of the curve are evaluated; finally, the curve with the bounding box is scaled by a factor of and translated to the origin. The normalized curve preserves only the shape of the original curve. Note that the direction of the curve, either clockwise or counterclockwise, should also be normalized, which can be implemented using the shoelace formula.

(a)

(b)

(c)

(d)
5.2. Arc Length Parametrization
From a mathematical point of view, different parametrizations of the same curve correspond to different mathematical functions defined for the same curve. We have given two example functions in Section 2 that can define the unit circle: and . Besides and , there are a lot more functions to define the unit circle.
From a kinematic point of view, different parametrizations of the same curve correspond to different velocity patterns that a point uses to move along the same curve. For example, one parametrization tells the point to move quickly in the beginning and slowly in the end, while another parametrization may require the point to travel the same curve slowly in the beginning and quickly in the end. In these two situations, the point will spend different amount of time arriving at the same position on the path. Among numerous parametrizations, arc length parametrization corresponds to a point tracing the curve at a constant and unit speed; in this case, the time that the point uses to travel from the starting position to current position on the curve is numerically equal to the curve length or arc length between the starting and current position.
As explained in previous sections, FDs are different for different parametrizations. Suppose we have two geometrically identical paths with different parametrizations. By comparing their Fourier descriptors, these two paths would be deemed as different paths. To solve this problem, it is necessary to make the Fourier based comparison against the same parametrization. Hence, in order to match the normalized task and four-bar path generated from the curve normalization process, we need to obtain their Fourier descriptors under the arc length parametrization.
Consider a curve whose parametrization is given as a continuous function . Then, the arc length parametrization can be computed via the following steps: (a) by , we get the arc length function against ; (b) compute , the inverse function of , and we get time function against arc length; (c) substitute into and finally the arc length parametrization is obtained. However, it is impossible to derive an explicit formula for .
In practice, the task path is usually given as a sequence of points (). Suppose two arbitrary parametrizations are associated with for these points: and . We specify as the starting position and as the end position and require that . Since is the starting point, ; in terms of and (), they indicate the time a point takes to travel from to under two parametrizations, respectively, which are usually different.
Now we seek to convert these two parametrizations to arc length parametrization by treating as vertices of a polygonal curve of sides, as shown in Figure 5. For both parametrizations, the arc length of from to can be calculated asin which denotes the length of line segment between and . Using (26), both parametrizations are converted to the arc length parametrization . In order for the parameter to lie in the domain , we divide by the total length of the polygonal curve , where . Hence, the arc length parametrization is finalized as .

By observing (26), the conversion from any parametrization to arc length parametrization is independent of the original parametrization, that is, the time sequence or . Whatever parametrizations are given to the discrete path, the results of arc length parametrization are exactly the same. The geometry of the polygonal curve is the only factor that dictates the results of the arc length parametrization. Therefore, instead of coupling FDs with various parametrizations of the discrete path, we couple FDs directly with the underlying geometry of the discrete path by means of arc length parametrization.
5.3. Artificial Neural Network
The problem of matching the FDs of the normalized and arc length parametrized task and four-bar path is finding the optimal values of design parameters in (25). Instead of directly searching the five parameters, we use neural networks to establish the relationship between those parameters and the Fourier descriptors of the normalized and arc length parametrized four-bar path.
An artificial neural network is a computational structure consisting of a collection of interconnected elements, known as neurons, to estimate or approximate functions that are highly complex and nonlinear, and can have a large number of inputs and outputs (see Veelenturf [23] and Anastasio [24]). A typical neural network architecture is shown in Figure 6, which has one layer of input neurons, multiple layers of hidden neurons, and one layer of output neurons. In this paper, we use the widely adopted backpropagation (BP) algorithm to train a network to fit the relationship between and Fourier descriptors of the normalized and arc length parametrized four-bar path. BP is a supervised learning method which fits a function based on samples of input-output data pairs. For each input vector, the algorithm estimates the error between the actual and desired network outputs, and back propagates it from the output layer to hidden neurons to estimate the contribution of each hidden neuron to the output error. It calculates the gradient of each weight, which indicates the direction of error increase, and updates the weight in the opposite direction of the gradient.

The architecture of the proposed neural network has input neurons corresponding to FDs of the normalized and arc length parametrized four-bar path and output neurons corresponding to . Our previous work [25] has shown that, for the four-bar coupler path, magnitudes of its high-order FDs are very close to zero; in other words, low-order descriptors are enough to represent the coupler path. Therefore, we take the FDs of order from −3 to 3 to be the input neurons of our neural network; that is, the number of input neurons is 14, including the real and imaginary part of each descriptor; the number of output neurons is 5, consistent with the number of design variables .
In order to train the neural network, we use FDs of as many as four-bar coupler curves, which are generated by the equal number of different combinations of the values of design variables , and then processed by curve normalization and arc length parametrization; to see whether it can effectively approximate the relationship between the FDs and the design variables, we generate another testing cases to test the validity of our trained neural network.
In the training process, values of the five design variables are constrained to certain ranges. In practical applications, the ratio between any two links is not expected to be extremely large or small. So it is reasonable to predefine a max link ratio in the design process, say . Correspondingly, the minimum link ratio is . Therefore, we vary three link ratios , , and in the range of . In this paper, is taken to be . Likewise, it is required that the coordinate of coupler point on coupler link needs to be dimensionally compatible with the length of coupler link. So we have similar constraints for and and for them is .
5.4. Restoring Method
Up to this point, we know the values of five design variables . From the discussion of Section 4, can be computed. According to (22), our goal is to find the four-bar curve that best matches the task curve, say . Hence, we let and (22) becomesNext, there are three steps to implemented in order to match the size, orientation, and position of and , during which , , , could be found.
(1) Size Match between and . Rotate and to align their major principal axis with -axis of fixed frame, respectively, and denote transformed curves to be and . Compute the width or height of bounding box for and and denote the ratio as or , which is the size ratio between and . According to (22), size of is determined by and is equal to . Therefore, .
(2) Orientation Match between and . We obtain the value of at Step by . According to (22), the orientation difference between and lies in . Therefore, is measured as the angle from the major principal axis of to that of .
(3) Location Match between and . Until now, we know . Then, we compute the centers for and , respectively, and denote them as and . The distance vector from to is equal to .
Up to this point, the values of the nine design variables in (22) have been found except for . As said earlier, only determines the starting point of curve and is irrelevant to position, orientation, size, and shape of curve. In practical applications, the starting point is chosen according to the user’s need.
6. Examples
In this section, we present four examples to demonstrate the validity of the proposed parametrization-invariant FD based algorithm. In the first example, the task path is a coupler curve generated by a four-bar linkage of known dimensions, with three different parametrizations. For the second example, the task path is an arbitrarily given low harmonic curve, with two different parametrizations. For the third and final examples, the task path is a self-intersecting curve and an open curve, respectively, each with two parametrizations.
6.1. Generation of a Four-Bar Coupler Curve
In this example, we examine the effectiveness of our approach and make comparison with the traditional Fourier methods proposed by Chu et al. [15] and Wu et al. [20], respectively. The task path is generated by the coupler point P of the Watt II six-bar shown in Figure 7. Four-bar functioning as driving linkage is serially chained with four-bar , of which serves as the coupler point to trace out the coupler curve. must be a double-crank mechanism in order for and to rotate in full circle, respectively. When rotates with a constant angular speed, will rotate with a varying speed. Hence, three different parametrizations are produced by altering the lengths of , , and to change the rotating function of . Links , , , , and remain the same to keep the shape of the closed curve traced by under the three parametrizations. Nine design parameters are given as , , , , , , , , . Three sets of , , , and are given as follows:Rotation functions of link corresponding to each parametrization are plotted in Figure 8. By observing the figure, we can see that parametrization III is the perfect parametrization in which link rotates uniformly while parametrization I and parametrization II deviate from the perfect parametrization, which indicates that link rotates with a varying angular velocity.


For these different parametrizations, their corresponding sets of FDs are listed in Table 1. It is clear from the table that different parametrizations yield different FDs, even though they define the same curve. After arc length parametrization, we obtain three new sets of Fourier in Table 2.
By observing the data in Table 2, three sets of FDs are almost the same just as we discussed in previous sections. In order to demonstrate the effectiveness of our approach, we compare the synthesis results with those generated by the traditional synthesis approaches (Chu et al. [15]; Wu et al. [20]), respectively.
First, the results of our method are presented. In Table 3, the resulting design parameters corresponding to three parametrizations are displayed. We can see that those parameters are close to those of the four-bar mechanism presented at the beginning that generates the task curve. In Table 4, FDs for three parametrizations are shown. Compared with each corresponding parametrization in Table 2, the synthesized curves match perfectly the task curve.
Second, we use the approach presented by Wu et al. [20] to obtain three four-bar mechanisms and show results in Tables 5 and 6. According to Table 5, the values of design parameters are quite different from the task four-bar mechanism. Also from Tables 6 and 2, difference in FDs is observable. The graphical comparisons are shown in Figures 9, 10, and 11, including the synthesized four-bar mechanism by our approach. For the three parametrizations, III is the perfect parametrization as indicated earlier and therefore Wu’s method can yield a good match with original curve. The other two parametrizations twist perfect parametrization to the extent that reduces the exactness of Wu’s method.



Then, we use the approach proposed by Chu et al. [15] to synthesize three four-bar mechanisms and show results in Tables 7 and 8. The graphical comparisons are revealed in Figures 9, 10, and 11. By comparing results generated by Chu’s method with those by Wu’s method, we find that both approaches can output good match when the parametrization is perfect, as in the case of parametrization III. However, the more the parametrization differs from the perfect one, the more their synthesized curves deviate from the task curve, which is justified by comparing synthesized curves of both methods under parametrization I with those of II in Figures 9 and 10. Clearly, the results for I are better than those of II because I is closer to perfect parametrization than II, as clearly shown in Figure 8.
6.2. Generation of an Arbitrary Closed Curve
Now consider the problem of synthesizing a four-bar mechanism for generating an arbitrarily specified path. The task path is given aswhere for the first parametrization and for the second parametrization.
In this example, we compare the results of approach against those by Wu’s method. The graphical comparisons of the synthesis results for the first and second parametrizations are shown in Figures 12 and 13, respectively, together with the synthesized four-bar mechanisms by our approach. In both cases, the synthesized four-bar curves of our approach are independent of parametrization and therefore approximate the task path in a consistent manner. In contrast, Wu’s method outputs different curves for the two parametrizations, and the generated curve for the second parametrization (when is quadratic) is less accurate compared to the one for the first parametrization.


6.3. Generation of a Self-Intersecting Curve
Consider the task of generating a self-intersecting curve, whose function is given aswhere for the first parametrization and for the second parametrization.
We still compare the results of our approach against those by Wu’s method. The graphical comparisons of the synthesis results for the first and second parametrizations are shown in Figures 14 and 15, respectively, together with the synthesized four-bar mechanisms by our approach. In both cases, the synthesized four-bar curves of our approach are independent of parametrization and approximate the task path in a consistent and accurate manner. In contrast, Wu’s method outputs different curves for the two parametrizations, and the generated curve for the second parametrization (when is quadratic) is less accurate compared to the one for the first parametrization.


6.4. Generation of an Open Curve
Consider the task of generating an open curve, whose function is given aswhere for the first parametrization and for the second parametrization.
We again compare the results of our approach against those by Wu’s method. The graphical comparisons of the synthesis results for the first and second parametrizations are shown in Figures 16 and 17, respectively, together with the synthesized four-bar mechanisms by our approach. In both cases, the synthesized four-bar curves of our approach are independent of parametrization and approximate the task path in a consistent and accurate manner. In contrast, Wu’s method outputs different curves for the two parametrizations, and the generated curve for the second parametrization (when is quadratic) is less accurate compared to the one for the first parametrization.


7. Conclusions
In this paper, we apply the technique of arc length parametrization to avoid the influence of parametrization on FD based approach to four-bar path synthesis. We manage to decouple the design space of the four-bar mechanism through matching the shape, size, orientation, and location of the task path, respectively. Furthermore, with the aid of backpropagation artificial neural network, five design parameters can be efficiently determined once the network is trained; the rest of four design parameters are then separately found by the proposed restoring method that implements the step-by-step matching of size, orientation, and location with the task curve. Finally, the synthesis results for four-bar curve and arbitrary curve generation are compared with the traditional Fourier based methods to show that our method can trace the task curve in a consistent manner, invariant to the parametrization of the task curve.
Appendix
The curve is assumed to be a simple closed polygon of sides where represents the th vertex of the polygon and is considered identical to . All the calculations are done with respect to the length elements of the polygon.
Step 1. Evaluate the length of the curve. For that, let denote the th edge of the polygon. Then,
Step 2. Determine the location of the center of gravity (c.g.) of the curve given by :
Step 3. Evaluate the moments of inertia , , and of the polygon with respect to its c.g. :
Step 4. Determine the direction, , of the major principal axis with respect to the -axis: The direction of the major principal axis with respect to the -axis is given by if or if .
Step 5. Rotate the polygon by an angle- by the rotation to the vertices of the polygon in order to align the major principal axis with -axis:
Step 6. Evaluate the width of the bounding box of the resulting polygon. Let and represent the corners of the bounding box obtained by comparing the coordinates of the points of the polygon. Then the width and height of the bounding box are and , respectively. Since the major principal axis is aligned with the -axis after rotation, .
Step 7. Bring the polygon to its normalized configuration:
Step 8. Normalize the direction of the curve. To compute the signed area of the resulting polygon, the following shoelace formula (see Beyer [26]) is used: where is the area of the polygon. If , the vertices of the polygon are arranged in a counterclockwise order; if , the vertices of the polygon are arranged in a clockwise order. We require that the direction of the normalized polygon is counterclockwise. In the case of , the order of the vertices will be reversed.
Disclosure
All findings and results presented in this paper are those of the authors and do not represent those of the funding agencies.
Conflicts of Interest
The authors declare that there are no conflicts of interest regarding the publication of this paper.
Acknowledgments
The work has been financially supported by the Fundamental Research Funds for the Central Universities of China (no. 2682017CX037 and no. 2682017CX036) and the National Natural Science Foundation of China (no. 51305368).