Articles | Volume 15, issue 1
https://doi.org/10.5194/ms-15-169-2024
https://doi.org/10.5194/ms-15-169-2024
Research article
 | 
12 Mar 2024
Research article |  | 12 Mar 2024

A Lie group variational integrator in a closed-loop vector space without a multiplier

Long Bai, Lili Xia, and Xinsheng Ge
Abstract

As a non-tree multi-body system, the dynamics model of four-bar mechanism is a differential algebraic equation. The constraints breach problem leads to many problems for computation accuracy and efficiency. With the traditional method, constructing an ODE-type dynamics equation for it is difficult or impossible. In this exploration, the dynamics model is built with geometry mechanic theory. The kinematic constraint variation relation of a closed-loop system is built in matrix and vector space with Lie group and Lie algebra theory respectively. The results indicate that the attitude variation between the driven body and the follower body has a linear recursion relation, which is the basis for dynamics modelling. With the Lie group variational integrator method, the closed-loop system Lagrangian dynamics model is built in vector space, with Legendre transformation. The dynamics model is reduced to be the Hamilton type. The kinematic model and dynamics model are solved using Newton iteration and the Runge–Kutta method respectively. As a special case of a crank and rocker mechanism, the dynamics character of a parallelogram mechanism is presented to verify the good structure conservation character of the closed-loop geometry dynamics model.

1 Introduction

As a non-tree multi-body system, the dynamics modelling and calculation of parallel mechanisms are widely employed, which is important for their design and analysis. As the most typical case of a parallel mechanism, the exploration of dynamics modelling and calculation of four-rod mechanisms has a great significance for representation. Traditionally, the Lagrange multiplier is used in the dynamics modelling of parallel mechanisms, which can add a constraint to the dynamics equation. To avoid the divergence of calculations, the algorithm needs to be carefully designed.

In recent years, the development of computation geometry gives a new solution to the dynamics problem of a parallel mechanism. The geometry method uses the Lie group and Lie algebra as a basis for dynamics modelling; the variation method is used for derivation, which can lead to a reduction during calculation. The geometry method can effectively reduce the complexity of the dynamics equation, which offers a new road to the enhancement of accuracy and efficiency.

In recent years, different kinds of methods have been used for dynamics modelling and analysis, such as the spinor method, the virtual principle, and the Newton–Euler method. Problems include singularity, inverse dynamics and forward kinematics. For example, with the spinor method, the singularity of a parallel mechanism is discussed, and the inverse dynamics model was built using the Lagrange equation (Zou and Zhang, 2021). The forward-inverse kinematics relation and dynamic relation are derived using geometry constraints, and the dynamics model is built using the virtual work principle (Lin, 2016). With the virtual principle, the dynamics model of a parallel mechanism can also be built (Rong, 2019; Wang, 2017; Chen and Liang, 2015). The inverse dynamics problem of a parallel mechanism can also be solved with the recursion-explicit algorithm (Staicu, 2015). The Newton–Euler method was used in dynamics modelling of a four-degrees-of-freedom parallel mechanism, and the driving force, momentum and constraint momentum were obtained (Wang et al., 2010).

In addition to the classic methods, the multi-body dynamics method was also used in compliant mechanism dynamics modelling, which is convenient for the design and operation of coupling problems (Van der Deijl and De Klerk, 2019). The dynamics model of the Stewart parallel mechanism is built using the linear transfer matrix of a multi-body system, and the mechanism seems to be a soft multi-body system, which is solved using the linear algebra method and modal superposition (Chen and Rui, 2018). With the Lagrange multiplier method, i.e. the dynamics model of a parallel mechanism in space with a multi-ball joint, the kinematic model is used to be the constraint in this method (Chen and Sun, 2019). A hierarchy method for the dynamics modelling of a parallel mechanism was designed using the modular modelling method (Hess-Coelho and Orsino, 2021). Using the centroid and momentum conservation method to build the displacement, velocity and acceleration of a parallel mechanism, the parameters of other parts are obtained using the superposition principle (Qi and Song, 2018). The dynamics model of a rigid–flexible coupling parallel mechanism can also be built using the natural coordinate and absolute nodal coordinate methods. The inverse multi-body dynamics model is built using the Lagrange method and solved using the generalized α method (Shi et al., 2019). The floating coordinate and Lagrange method is used to build a rigid–flexible coupling dynamics model of a satellite antenna's parallel mechanism (Zhang and Song, 2021). The inverse Lagrange dynamics model of a bionic underwater robot's parallel mechanism is built (Algarin-Pinto and Garza-Castanon, 2021). There are two types of dynamics model of a parallel mechanism, which has a reduced number of parameters. So the model is simplified, and the amount of calculation is also reduced (Abeywardena and Chen, 2017).

In the aspect of geometry kinematics and dynamics modelling of a parallel mechanism, the Lie group and Lie algebra methods are widely used, which can make the kinematics and dynamics model compact. With Lie group theory and the Cayley map between the Lie group and Lie algebra, the high-order relative kinematics model, the exact closed-form solutions of the motion in a non-inertial reference frame, and the minimal parameterization of rigid-body displacement and motion are explored, which offers a convenient tool for the kinematic analysis of a complex parallel mechanism in space (Condurache and Sfartz, 2021; Condurache, 2022; Condurache and Popa, 2023). The motion of each branch of a parallel mechanism was expressed with Lie group theory (Ye and Fang, 2016), and the transformation and spinor differential calculation of a mechanism in space was also solved with the Lie group and Lie algebra theory. With Lie group theory, the kinematics analysis for a parallel mechanism, which includes the Jacobian and Hessian matrix of a closed-loop mechanism, are built (Sun et al., 2021). With spinor theory and Lie group theory, the higher derivative of closed-loop equation was researched (Muller and Herder, 2019). The structure problem of a parallel mechanism was solved with Lie group theory (Rybak et al., 2017). The systematic analysis method for the multi-freedom driving system was built with Lie group theory (Li et al., 2020). A forward exact analysis method was used for the position error of a parallel mechanism under redundant drive with Lie group and spinor theory (Ding et al., 2019). Different types of series-parallel mixture connection mechanisms were built with the Lie group and an incidence matrix (Zeng and Fang, 2009). The kinematics model was built with Lie group theory, which is used to analyse and synthesize the mechanism (Wu et al., 2013). The screw system is closed under two continuous Lie bracket calculations. The definition of the whole Lie group trebling screw system is built with the Lie group and Lie algebra (Wu and Carricato, 2017). Sanchez-Garcia presented a method to define the motion of a parallel mechanism based on the concept of screw theory, the Lie group and a special Euclid group (Sanchez-Garcia et al., 2021). With the geometry analysis method, the inertia parameters are clustered and the number of parameters is reduced, which is convenient for the enhancement of efficiency and accuracy of the calculation (Danaei et al., 2017). With the absolute nodal coordinate method, the dynamics model of a parallel mechanism was built, and the relation of rigid and flexible bodies was built using the tangent coordinate (Wang and Liu, 2018).

According to the above analysis, in the domain of parallel-mechanism dynamics modelling, the virtual work principle is the main tool, and the dynamics model mainly uses the dynamic static solution. Based on the Lie group and Lie algebra theory and the rotation in a plane, a new type of expression, which is similar to the position vector, is presented in this paper. The variation relation of a closed loop is derived from the variation method, the dynamics model is built using the Lie group and the Lagrange method, and the model is changed to the Hamilton type with Legendre transformation. The dynamics model is finally changed to be a nonlinear equation and solved using Newton iteration.

2 Geometry dynamics modelling method

The four-bar mechanism is a type of non-tree structure. The topology of it is as shown in Fig. 1. Bi represents a rigid body, and Oi is the connection between rigid bodies which are assumed to be a revolute pair. In order to build the dynamics model, it is necessary to build the pose and attitude constraint of a closed loop. Usually, any Oi is cut open, which can transform the closed loop into two open loops. The positions of these two loops' end points satisfy the equality relation. Then the velocity and acceleration constraints can be derived based on pose and attitude constraints. Traditionally, the rotation relation between two rigid bodies can be expressed using a triangle function which has a complex expression. The Lie group method is used instead of it. See Fig. 1 for an example. Cutting the joint O3 open, the system is changed to trees of B0-B1-B2 and B0B3 respectively. They cross at point O3.

https://ms.copernicus.org/articles/15/169/2024/ms-15-169-2024-f01

Figure 1Multi-body topology of a parallel mechanism.

Download

The expression of the Lie group is as follows. Firstly, the rotation angle is used to express the rotation condition of two bodies. Suppose the rotation angle of the single freedom joint is θ. The rotation matrix R of the body can be obtained by exponential mapping, as in Eq. (1).

(1) R = e S θ

In Eq. (1), Sθ=0-θθ0. R is the Lie group expression of rotation, and θ is Lie algebra corresponding to R. Make the differential of Eq. (1), and the result is as in Eq. (2).

(2) R ˙ = e S θ S θ ˙ = ω R S 1

Equation (2) shows angular velocity. Besides derivation, variation is the key tool of Lie group calculation. Applying variation to R, the result is as in Eq. (3).

(3) δ R = e S θ S δ θ

Supposing that η=δθ, Eq. (3) can transform to be Eq. (4).

(4) δ R = η R S 1

The structure in Fig. 1 is used as an example to indicate the function of variation in dynamics modelling of a closed-loop mechanism. This structure satisfies the pose and attitude constraint as in Eq. (5).

(5) R 1 l 1 + R 2 l 2 = R 4 l 4

Apply variation to Eq. (5), as in Eq. (6).

(6) δ R 1 l 1 + δ R 2 l 2 = δ R 4 l 4

Substitute Eq. (4) into Eq. (6), and the result is as in Eq. (7).

(7) η 1 R 1 S 1 l 1 + η 2 R 2 S 1 l 2 = η 4 R 4 S 1 l 4

Change Eq. (7) to be the matrix type as in Eq. (8).

(8) η 2 η 4 = - η 1 R 2 S 1 l 2 - R 4 S 1 l 4 - 1 R 1 S 1 l 1

The constraint relation of a closed-loop system is obtained by variation, which is important in dynamics derivation. In the following, the dynamics modelling process is discussed as follows. The Lagrange function is built first, which is the function of angular velocity and the rotation matrix: L=LR,ω. Apply variation to it with respect to angular velocity, as in Eq. (9).

(9) δ ω L = D ω L R , ω δ ω

According to Hamilton theory, the variation in the Lagrange function with respect to angular velocity is equal to momentum, as in Eq. (10).

(10) Π = D ω L R , ω

Applying derivation to Eq. (10), the inertia moment with respect to the momentum in Eq. (10) can be obtained. Except for the inertia moment, the moment of motion also includes coupling of angular velocity and momentum, as in Eq. (11).

(11) ad ω D ω L R , ω = S ω D ω L R , ω

For the single freedom joint, the coupling part is 0, as in Eq. (12).

(12) ad ω D ω L R , ω = 0

The inertia moment, which is deduced by potential, is as follows. Applying variation to Lagrange function with respect to attitude matrix R, the result is as in Eq. (13).

(13) δ R L = D R L R , ω η

In Eq. (13), DRL(R,ω) is a row vector; apply transposition to it, and the tangent of Eq. (13) is as in Eq. (14).

(14) T e L R D R L R , ω = D R L R , ω T

The dynamics equation is as in Eq. (15).

(15) d d t D ω L R , ω - ad ω D ω L R , ω - T e L R D R L R , ω = 0

If the system is in a plane, the simplified dynamics equation is as in Eq. (16).

(16) d d t D ω L R , ω - T e L R D R L R , ω = 0

According to Eq. (10), Eq. (16) can be transformed to the Hamilton dynamics equation using Legendre transformation as in Eq. (17).

(17) Π ˙ - ad ω Π - T e L g D R L R , ω = 0

In addition to the rotation matrix, the attitude vector can express the rotation between rigid bodies too. The relation between the attitude matrix and vector is as in Eq. (18).

(18) q = R e 1

Apply derivation to Eq. 18), as in Eq. (19).

(19) q ˙ = R ˙ e 1 = ω RS 1 e 1 = ω R e 2 = ω S 1 q

The variation calculation also satisfies a similar process to the one in Eq. (20).

(20) δ q = η S 1 q
3 Kinematic analysis of four-bar mechanism

Figure 2 is the sketch map of a four-bar mechanism. Suppose that the lengths of bar AB, BC, CD and AD are l1, l2, l3 and l4 respectively. The rotation angles of bar AB, BC and CD are θA, θB and θD respectively. Define the initial position of each rod coinciding with the horizontal axis, and the direction of rotation is anti-clockwise. The closed-loop mechanism has three constraints on pose and attitude, velocity, and acceleration respectively. They are built using differential calculations, which means that the velocity constraint is obtained by applying derivation to the pose–attitude constraint, and the acceleration constraint is obtained by derivation from velocity. Suppose the rotation matrixes of AB, BC and CD are RA, RB and RD respectively. The pose–attitude constraint is as in Eq. (21).

(21) l 2 R B e 1 - l 3 R D e 1 = - l 1 R A e 1 + l 4 e 1
https://ms.copernicus.org/articles/15/169/2024/ms-15-169-2024-f02

Figure 2The four-bar mechanism.

Download

In Eq. (21), e1 is unit vector: e1=1;0. Applying derivation to Eq. (21), the velocity constraint is as in Eq. (22).

(22) ω B l 2 R B e 2 - ω D l 3 R D e 2 = - ω A l 1 R A e 2

In Eq. (22), ωA, ωB and ωD are angular velocities of AB, BC and CD respectively. Apply derivation to Eq. (22), and the acceleration constraint is as in Eq. (23).

(23) α B l 2 R B e 2 - α D l 3 R D e 2 = - α A l 1 R A e 2 - ω A 2 l 1 R A e 1 + ω B 2 l 2 R B e 1 - ω D 2 l 3 R D e 1

In Eq. (23), αA, αB and αD are angular velocities of AB, BC and CD respectively. In Eq. (21) to Eq. (23), the attitudes are expressed by rotation matrixes, and the rotation matrixes can be simplified to be the vectors accord to Eq. (18). Define the relation of the rotation matrix and vector as in Eq. (24).

(24) q A = R A e 1 q B = R B e 1 q D = R D e 1

Substitute Eq. (24) into Eq. (21). The pose–attitude constraint based on the direction vector is obtained as in Eq. (25).

(25) l 2 q B - l 3 q D + l 1 q A - l 4 e 1 = 0 2 × 1

Applying derivation to Eq. (25), the velocity constraint is as in Eq. (26).

(26) ω B l 2 S 1 q B - ω D l 3 S 1 q D = - ω A l 1 S 1 q A

Transform the velocity constraint to the matrix type as in Eq. (27).

(27) ω 2 ω D = - ω A l 2 S 1 q B , - l 3 S 1 q D - 1 l 1 S 1 q A

As in Eq. (26), the left and right parts are multiplied by the skew matrix, S1. Reduce S1, and the velocity constraint changes to be as in Eq. (28).

(28) ω B l 2 q B - ω D l 3 q D = - ω A l 1 q A

The constraint of acceleration is as in Eq. (29) by applying derivation to Eq. (28).

(29) α B l 2 S 1 q B - α D l 3 S 1 q D + α A l 1 S 1 q A = ω B 2 l 2 q B - ω A 2 l 1 q A - ω D 2 l 3 q D
4 The variation and dynamics modelling

Based on kinematics model, the dynamics equation of a system can be obtained by variation of the Lagrange function. According to the pose–attitude constraint in Eq. (21), the variation of it is as in Eq. (30).

(30) l 2 S 1 q B η B - l 3 S 1 q D η D = - l 1 S 1 q A η A

Transform Eq. (30) to be a matrix type as in Eq. (31).

(31) l 2 S 1 q B - l 3 S 1 q D η B η D = - l 1 S 1 q A η A

Apply inversion to the matrix in Eq. (31). The relation between ηB, ηD and ηA is as in Eq. (32).

(32) η B η D = - l 1 l 2 S 1 q B - l 3 S 1 q D - 1 S 1 q A η A

If the inverse matrix in Eq. (32) is a 2×2 matrix, it can be solved directly. The inverse calculation is expressed by a triangle functions, as in Eq. (33).

(33) l 2 S 1 q B , - l 3 S 1 q D - 1 = - l 2 sin θ B l 3 sin θ D l 2 cos θ B - l 3 cos θ D = 1 l 2 l 3 sin θ D - θ B l 3 cos θ D l 3 sin θ D l 2 cos θ B l 2 sin θ B = 1 l 2 l 3 q D T S 1 q B l 3 q D T ; l 2 q B T

Substitute Eq. (33) into Eq. (32), the result is as in Eq. (34).

(34) η B η D = - l 1 l 2 l 3 q D T S 1 q B l 3 q D T S 1 q A l 2 q B T S 1 q A η A

According to the above analysis, the variation relation of the attitude matrix of the rocker and the link can be expressed by the variation in crank under the constraint of pose and attitude. Comparing Eqs. (27) and (32), they have the uniform expressions. We define the same part of Eqs. (27) and (32) as Eq. (35).

(35) K = - l 1 l 2 l 3 q D T S 1 q B l 3 q D T S 1 q A l 2 q B T S 1 q A

The velocity constraint satisfies the relation as in Eq. (36).

(36) ω 2 ω D = K ω A

The dynamics model of a system is derived as follows. Supposing the masses of rod AB, BC and CD are m1, m2 and m3 respectively. Their position vectors are ρ1, ρ2, ρ3 respectively. Their rotational inertia is J1, J2 and J3 respectively.

The kinetics of each part in the mechanism consist of the rotation kinetics along the mass centre and the translational kinetics of centre of mass. The displacement of the mass centre of AB is as in Eq. (37).

(37) l 1 = q A ρ 1 x + S 1 q A ρ 1 y = ρ 1 x I + S 1 ρ 1 y q A = Γ 1 q A

The velocity of it is as in Eq. (38) according to the derivation to Eq. (37).

(38) v 1 = ω 1 Γ 1 S 1 q A

In order to conserve the form of qA, the position of the mass centre can change to be the matrix type, as in Eq. (39).

(39) Γ 1 = ρ 1 x I + S 1 ρ 1 y = ρ 1 x - ρ 1 y ρ 1 y ρ 1 x

Similarly, ρ2, ρ3 can also be expressed as in Eq. (40).

(40) Γ 2 = ρ 2 x - ρ 2 y ρ 2 y ρ 2 x , Γ 3 = ρ 3 x - ρ 3 y ρ 3 y ρ 3 x

The displacement of the mass centre of BC is as in Eq. (41).

(41) l 2 = l 1 q A + Γ 2 q B

The velocity of the mass centre is as in Eq. (42).

(42) v 2 = ω 1 l 1 S 1 q A + ω 2 Γ 2 S 1 q B

The angular velocity of CD is ω3, so the position vector of the mass centre is as in Eq. (43).

(43) l 3 = l 4 e 1 + Γ 3 q D

The velocity of the mass centre is as in Eq. (44).

(44) v 3 = ω 3 Γ 3 S 1 q D

In order to make the expressions simple, the above equations are synthesized to be the matrix types. Suppose the angular velocity of a system is ω=ω1;ω2;ω3, the expression of it is as in Eq. (45).

(45) ω = 1 K T ω 1

Supposing l=l1;l2;l3, q=qA;qB;qD, the displacements of the mass centre of the system can be written as the matrix type, as in Eq. (46).

(46) l = Z 1 q + z 1

The parameters in Eq. (46) are as follows:

Z1=Γ1I2I2l1I2Γ2I2I2I2Γ3,z1=02×102×1l4e1.

Suppose v=v1;v2;v3. The velocity of the mass centre of the system is as in Eq. (47).

(47) v = l ˙ = Z 1 q ˙

The expression of q˙ is as equation Eq. (48).

(48) q ˙ = q ˙ A q ˙ B q ˙ D = ω A S 1 q A ω B S 1 q B ω D S 1 q D = Z A S q

The parameters in Eq. (48) are as follows:

ZA=ωAI2×202×202×202×2ωBI2×202×202×202×2ωDI2×2,S=S102×202×202×2S102×202×202×2S1.

According to Eq. (36), ZAcan be written as the following type, as in Eq. (49).

(49) Z A = ω A Z 2

The parameter in Eq. (49) is as follows:

Z2=I2×202×202×202×2e1TKI2×202×202×202×2e2TKI2×2.

Substitute Eq. (49) into Eq. (48), and the equation is changed to be the following type, as in Eq. (50).

(50) q ˙ = ω A Z 2 S q

So the velocity of the mass centre is as in Eq. (51).

(51) v = l ˙ = ω A Z 1 Z 2 S q

Then the kinetic and potential energy of the system are as in Eqs. (52) and (53) respectively.

(52) T = 1 2 ω T J ω + 1 2 v T M v = 1 2 ω 1 ω 2 ω 3 T J 1 0 0 0 J 2 0 0 0 J 3 ω 1 ω 2 ω 3 + 1 2 v 1 v 2 v 3 T m 1 I 0 2 × 2 0 2 × 2 0 2 × 2 m 2 I 0 2 × 2 0 2 × 2 0 2 × 2 m 3 I v 1 v 2 v 3

(53) V = - g e 2 T m 1 l 1 + m 2 l 2 + m 3 l 3 = - g e 2 e 2 e 2 T m 1 I 0 2 × 2 0 2 × 2 0 2 × 2 m 2 I 0 2 × 2 0 2 × 2 0 2 × 2 m 3 I l 1 l 2 l 3 = - g E 6 × 1 M l

According to Eqs. (52) and (53), the Lagrange function of four-bar system is as in Eq. (54).

(54) L = 1 2 ω T J ω + 1 2 v T M v + g E 6 × 1 M l

Applying variation to Eq. (72) aboutω1, the result is as in Eq. (55).

(55) δ ω 1 L = ω T J δ ω 1 ω + v T M δ ω 1 v

Applying derivation to Eq. (55), the result is as in Eq. (56).

(56) d d t δ ω 1 L = ω ˙ T J δ ω 1 ω + ω T J d d t δ ω 1 ω + v ˙ T M δ ω 1 v + v T M d d t δ ω 1 v

Applying variation to Eq. (54) to the attitude vector, the result is as in Eq. (57).

(57) δ η 1 L = ω T J δ η 1 ω + v T M δ η 1 v + g E 6 × 1 M δ η 1 l

Substitute it into the geometry dynamics equation, and the Lagrange dynamics equation is as in Eq. (58).

(58) ω ˙ T J δ ω 1 ω + ω T J d d t δ ω 1 ω - δ η 1 ω + v ˙ T M δ ω 1 v + v T M d d t δ ω 1 v - δ η 1 v - g E 6 × 1 M δ η 1 l = 0

Let Π1=δω1L=ωTJδω1ω+vTMδω1v; then the geometry dynamics equation of Hamilton types is as in Eq. (59).

(59) Π ˙ 1 - ω T J δ η 1 ω - v T M δ η 1 v - g E 6 × 1 M δ η 1 l = 0

The variation of ω,v about ω1 is as in Eqs. (60) and (61).

(60) δ ω 1 ω = 1 K δ ω 1

(61) δ ω 1 v = Z 1 Z 2 S q δ ω 1

The variation in attitude vectors is as follows. Expressions of kinetic and potential energies, angular velocity, velocity and mass centre positions all include the attitude vector. Applying variation to ω for attitude, the result is as in Eq. (62).

(62) δ η 1 ω = 0 δ η K ω 1

Then applying variation to velocity, the result is as in Eq. (63).

(63) δ η 1 v = ω 1 Z 1 δ η 1 Z 2 S q + Z 1 Z 2 S δ η 1 q

Applying variation to l, the result is as in Eq. (64).

(64) δ η 1 l = Z 1 δ η 1 q

The concrete calculations of δη1q and δη1Z2 are as follows. Applying variation to q, the expression changes to a new type, for which the variation parameters are in the same vector, as in Eq. (65).

(65) δ q = δ q A δ q B δ q D = η A S 1 q A η B S 1 q B η D S 1 q D = S 1 q A 0 2 × 1 0 2 × 1 0 2 × 1 S 1 q B 0 2 × 1 0 2 × 1 0 2 × 1 S 1 q D η A η B η D

According to Eq. (35), the variation vector is as in Eq. (66).

(66) η A η B η D = 1 K η A

Substitute Eq. (66) into Eq. (65), and the result is as in Eq. (67).

(67) δ q = δ q A δ q B δ q D = η A S 1 q A η B S 1 q B η D S 1 q D = S 1 q A 0 2 × 1 0 2 × 1 0 2 × 1 S 1 q B 0 2 × 1 0 2 × 1 0 2 × 1 S 1 q D 1 K η A = S q K N η A

The expression of δη1Z2is as in Eq. (68).

(68) δ η 1 Z 2 = 0 2 × 2 0 2 × 2 0 2 × 2 0 2 × 2 e 1 T δ η 1 K I 2 × 2 0 2 × 2 0 2 × 2 0 2 × 2 e 2 T δ η 1 K I 2 × 2

According to the above analysis, the core of geometry dynamics modelling of four-rod mechanisms is a solution for the constraint K. The constraint analysis is given in the following section.

5 Solution and reduction for constraint

The constraint condition Kcan be written as two parts: K=KAKB. They are expressed as in Eq. (69).

(69) K A = - l 1 l 2 l 3 q D T S 1 q B K B = l 3 q D T S 1 q A l 2 q B T S 1 q A

Apply variation to K, as in Eq. (70).

(70) δ η K = δ η K A K B + K A δ η K B

The parameters in Eq. (70) are as follows:

(71) δ η K A = - l 2 l 3 l 1 q D T q B K A 2 1 - 1 K η A , δ η K B = l 3 q D T q A l 2 q B T q A - 0 l 3 q D T q A l 2 q B T q A 0 K η A .

The deductions of the above two parameters are as in Eqs. (72) and (73).

(72) δ η K A = δ - l 1 l 2 l 3 q D T S 1 q B = l 1 l 2 l 3 δ q D T S 1 q B + q D T S 1 δ q B l 2 l 3 q D T S 1 q B 2 = l 1 l 2 l 3 q D T S 1 S 1 q B η B - q D T S 1 S 1 q B η D l 2 l 3 q D T S 1 q B 2 = - l 1 l 2 l 3 q D T q B η B - η D l 2 l 3 q D T S 1 q B 2 = - l 1 l 2 l 3 q D T q B l 2 l 3 q D T S 1 q B 2 1 - 1 η B η D = - l 2 l 3 l 1 q D T q B K A 2 1 - 1 K η A
(73) δ η K B = δ l 3 q D T S 1 q A δ l 2 q B T S 1 q A = l 3 δ q D T S 1 q A + δ l 3 q D T S 1 δ q A l 2 δ q B T S 1 q A + δ l 2 q B T S 1 δ q A = - l 3 q D T S 1 S 1 q A η D + l 3 q D T S 1 S 1 q A η A - l 2 q B T S 1 S 1 q A η B + l 2 q B T S 1 S 1 q A η A = - 0 l 3 q D T q A l 2 q B T q A 0 η B η D + l 3 q D T q A l 2 q B T q A η A = l 3 q D T q A l 2 q B T q A - 0 l 3 q D T q A l 2 q B T q A 0 K η A

According to the above two equations, the composition parts, which include direction vectors, are qDTqA, qBTqA, qDTqB qDT S1 qB ,qDTS1 qA and qBT S1qA. In order to make the calculation simpler, the reduction is as follows: multiplying qAT, qBT and qDT with the constraint relation respectively, the result is as in Eq. (74).

(74) - l 3 q B T q D + l 1 q B T q A = l 4 q B T e 1 - l 2 l 1 q D T q A + l 2 q D T q B = l 4 q D T e 1 - l 3 l 2 q A T q B - l 3 q A T q D = l 4 q A T e 1 - l 1

Change Eq. (74) to a linear equation type, as in Eq. (75).

(75) l 1 0 - l 3 0 l 1 l 2 l 2 - l 3 0 q B T q A q D T q A q D T q B = l 4 q B T e 1 - l 2 l 4 q D T e 1 - l 3 l 4 q A T e 1 - l 1
https://ms.copernicus.org/articles/15/169/2024/ms-15-169-2024-f03

Figure 3Attitude variation in the link.

Download

Change Eq. (75) to a simpler type, as in Eq. (76).

(76) Q 1 = B 1 a - 1 l 4 B 1 b q - b 1 a

The parameters are as follows:

l10-l30l1l2l2-l30=B1a,01×2e1T01×201×201×2e1Te1T01×201×2=B1b,qBTqA;qDTqA;qDTqB=Q1,b1a=l2;l3;l1.

According to the above equation, the composition parts are decoupled to be expressions with single attitude vectors. Similarly, multiply S1 qAT, S1 qBT and S1 qDT with the constraint condition, and the result is as in Eq. (77).

(77) l 1 q A T S 1 q A + l 2 q A T S 1 q B = l 4 q A T S 1 e 1 + l 3 q A T S 1 q D l 1 q B T S 1 q A + l 2 q B T S 1 q B = l 4 q B T S 1 e 1 + l 3 q B T S 1 q D l 1 q D T S 1 q A + l 2 q D T S 1 q B = l 4 q D T S 1 e 1 + l 3 q D T S 1 q D

According to qiT S1 qi=0 and qiT S1 qi=0, Eq. (77) can be simplified to be a linear type, as in Eq. (78).

(78) l 2 - l 3 0 - l 1 0 - l 3 0 - l 1 - l 2 q A T S 1 q B q A T S 1 q D q B T S 1 q D = l 4 q A T e 2 q B T e 2 q D T e 2

Write Eq. (78) to be a symbol type as in Eq. (79).

(79) Q 2 = l 4 B 2 a - 1 B 2 b q

The parameters are as follows:

B2a=l2-l30-l10-l30-l1-l2,Q2=qATS1qBqATS1qDqBTS1qD,b2a=B2bq=e2T01×201×201×2e2T01×201×201×2e2TqAqBqD.

The expression of constraint and its variations are changed to be a simplified type as in Eqs. (80) and (81).

(80) K A = l 1 l 2 l 3 e 3 T Q 2 K B = - l 3 e 2 T l 2 e 1 T Q 2

(81) δ η K A = - l 2 l 3 l 1 e 3 T Q 1 K A 2 1 - 1 K η A δ η K B = l 3 e 2 T l 2 e 1 T Q 1 - 0 l 3 e 2 T Q 1 l 2 e 1 T Q 1 0 K η A

According to above reduction process, nonlinear parts in constraints are changed to linear types, which reduces the difficulty in the numerical solution.

https://ms.copernicus.org/articles/15/169/2024/ms-15-169-2024-f04

Figure 4Attitude variation in the rocker.

Download

6 Numerical solution

The dynamics solution of the system needs a combination of dynamics and kinematics equations. The Hamilton equation as in Eq. (59) is much simpler than the Lagrange type and is easier to solve. In Eq. (59), the unknown quantities include Π1 and q. Π1 is the momentum about the crank, which is a scalar. qis the attitudes of three rods. In order to diminish the middle parameter ω1, the dynamics equation Eq. (59) needs a new transformation.

Define KN=1;K, with Eqs. (45), (51), (60) and (61); ω=KNω1,v=ωAZ1Z2Sq,δω1ω=KN and δω1v=Z1Z2Sq. Substitute these into Eq. (55). The relation between the angular velocityω1and the angular momentum Π1 is as in Eq. (82).

(82) Π 1 = Σ ω 1

In Eq. (82), Σ is a parameter about the attitude vector q as in Eq. (83).

(83) Σ = K N T JK N - q T SZ 2 T Z 1 T MZ 1 Z 2 S q

According to Eqs. (62), (63) and (64), δη1ω=δηKnω1, δη1v=ω1Z1δη1Z2Sq+Z1Z2SSqKN and δη1l=Z1SqKN. Substitute these into dynamics Eq. (59), and the dynamics equation is as follows:

(84) Σ 2 Π ˙ 1 - g Σ 2 E 6 × 1 MZ 1 S q K N - Π 1 2 K N T J δ η K N + Π 1 2 q T SZ 2 T Z 1 T MZ 1 δ η 1 Z 2 S q + Z 2 SS q K N = 0 .

With Eq. (50), the kinematic equation is the following type, as in Eq. (85), which uses momentum as a parameter.

(85) q ˙ = Π 1 Σ Z 2 S q

Aiming at solving the problem of the Hamilton dynamics equation, the generalized velocity is changed to be momentum. The number of generalized displacements is equal to the Lagrange dynamics equation, so the Hamilton and Lagrange equations have the same unknown parameters. The constraint is included in the geometry kinematics equation, which conserve the geometry structure of the closed-loop system.

Equations (84) and (85) form nonlinear ordinary differential equations with the dimension of seven. These equations can be directly solved using the Runge–Kutta method.

The four-rod mechanism has a series motion characters which are decided by the length of four bars. They are the crank–rocker mechanism, the double-crank mechanism and the double-rocker mechanism. If two couples of the four bars have the same length, the mechanism changes to a parallelogram, which is convenient, as it testifies to the geometry conservation character of the model.

Before simulation, the initial values of the angular velocity and attitudes of bars should be given. The attitudes of the other two rods except for the active rod are calculated by the pose–attitude constraint. Basing on Eq. (25) and the geometry character of qB,qD, the pose–attitude constraint equation is as in Eq. (86).

(86) l 2 q B - l 3 q D - l 4 e 1 + l 1 q A = 0 2 × 1 q B T q B - 1 = 0 q D T q D - 1 = 0

It is a nonlinear equation which can be solved using the Newton iterative method.

https://ms.copernicus.org/articles/15/169/2024/ms-15-169-2024-f05

Figure 5The momentum and attitude variation in the whole system.

Download

https://ms.copernicus.org/articles/15/169/2024/ms-15-169-2024-f06

Figure 6The track of the crank–rocker mechanism.

Download

7 Simulation

In this part, the kinematics and dynamics simulations are made for the four-bar mechanism to testify to the correctness of the derived model. As a special type of four-bar mechanism, the parallelogram mechanism is also simulated to verify the computational stability of the geometric model.

Suppose that the length of the bars is l1= 0.12 m, l2= 0.25 m, l3= 0.26 m and l4= 0.3 m, which satisfies the condition of a crank and rocker mechanism. The inertial parameters are J1= 0.001 kg m2, J2= 0.016 kg m2 and J3= 0.006 kg m2 respectively. The masses of each rod are as m1= 0.1 kg, m2= 0.25 kg and m3= 0.18 kg respectively.

7.1 Kinematic solution

In the kinematics relation, the closed-loop pose–attitude relation is a nonlinear equation. Supposing that the initial rotation angle of the crank is 0 rad, give the initial attitudes of linkage and rocker arbitrarily, and the nonlinear equation is solved using Newton iteration. Supposing that the time steps are h=0.01 s, h=0.03 s and h=0.05 s, the simulation results are expressed by blue, red and green points in Fig. 3 respectively. The rotation speed of the crank is 2π rad s−1. For qB and qD, which are direction vectors, their modulus is 1, so the error can be defined as error =q-1, and the simulation results of the link and rocker's attitudes and the computation errors are as in Fig. 3; the track of the whole system is as in Fig. 4.

https://ms.copernicus.org/articles/15/169/2024/ms-15-169-2024-f07

Figure 7Variation in angular momentum and attitudes of the parallelogram mechanism.

Download

https://ms.copernicus.org/articles/15/169/2024/ms-15-169-2024-f08

Figure 8The track of the parallelogram mechanism.

Download

From Fig. 3, the simulation results indicate that the attitudes vary in the link and rocker continuously and periodically, and the range of variation is from −1 to 1, which verifies the correctness of the model. Under three different time steps, the simulation results of q coincide, although the errors of qD and qB under different time steps have obvious distinctions. From the error variation in Fig. 3, the errors obviously jump under the time step of 0.05s. It means that the bigger time step will lead to a bigger error, although it has a small influence on the attitude results. The biggest errors are generated at 0 rad of the crank, which means that the kinematic equation is difficult to converge at this attitude. As in Fig. 4, the track of the whole system accords with the regular one for a crank and rocker mechanism; the crank makes the whole circle rotation and the rocker swings with a fixed angle.

7.2 Dynamics solution

Supposing that the initial angular momentum of the crank is 0 and the initial attitudes of the crank, link and rocker are q0= [1;0;0.3044;0.9534;-0.3996;0.9167], the simulation time is 5 s, and the dynamics model is solved using ode45 in MATLAB, which is a commonly used Runge–Kutta method. The variation in parameters is as in Fig. 5. According to Fig. 5, the parameters appear to have periodic variation under the action of gravity; the attitudes of the crank, link and rocker also appear to have a periodic character. The maximum value of the attitudes is 1, which verifies the correctness of the results. Figure 6 is the track of the crank–rocker mechanism under free conditions. The simulation results indicate that the closed-loop constraints of the system are conserved in the dynamics simulation.

7.3 Dynamics simulation of parallelogram mechanism

The parallelogram mechanism is a special four-bar mechanism for which the length of the rods on opposite sides is equal. The motion character of the mechanism is that the rods, which are connected to the rack have the same motion, and the link always stays parallel to the rack. For the two sides links can make the whole cycle motion; it also can be seen as a special double-crank mechanism. In the actual computation, the calculation error may lead to tiny variation in the structure of the system, like the length of the rod. The parallelogram mechanism may change to be the crank and rocker mechanism. So the simulation result of the parallelogram mechanism will incur some errors that will create an obvious distinction between the motion of the two side links, and the motion of the link will not be parallel to the rack.

In order to testify the geometry conservation character of the dynamics model, the simulation for the parallelogram mechanism is performed as follows. Supposing that the length of rods is l1=l3=0.1 m and l2=l4=0.25 m, the mass and moment inertia are the same with the former simulation. The initial attitude of the system is q0= [0.6;0.8;1;0;0.6;0.8], the initial momentum is 0, and simulation results are as in Fig. 7.

According to Fig. 7, the momentum varies the cyclical movement, which is similar to the single pendulum. It means that the parallelogram mechanism has a similar dynamics character to the single pendulum. The attitudes of the two side links have the same regular motion, which satisfies the motion character of a parallelogram mechanism. The attitude of the link stays parallel to the rack in the whole motion process, which also satisfies the character of a parallelogram mechanism. According to Fig. 8, the track of the system follows the regular parallelogram mechanism; the opposite pair of bars stays parallel during the whole simulation process.

From the above analysis, the derived dynamics model of the four-bar mechanism in this paper can conserve the geometry structure of the system during computation. The lengths of the rods are maintained, which avoids erroneous results.

8 Conclusions

In this research, the dynamics model of the four-bar mechanism is built using the symbol derivation of the differential geometry method. The Lagrange and Hamilton geometry dynamics models are all built, and the numerical computation method is explored. The conclusions are as follows.

  1. In the many geometry expression methods, the attitude vector expression for the rod can decrease the difficulty of derivation and expression of the dynamics model.

  2. Under the attitude vector expression, the dynamics model can be derived by variation theory, which can package the closed-loop pose–attitude constraint in the dynamics model, so the constraint does not need to be considered.

  3. Using the geometry modelling method to build the dynamics model of a four-bar mechanism can avoid the repetitive operation of the closed-loop constraint. All the calculations, which include the variation and derivation, are all aimed at the closed-loop constraint. Also, the results of variation and derivation have a similar structures.

  4. With the Legendre transformation, the dynamics model is changed to be the Hamilton type, which uses momentum as a parameter. The model is simplified. The model is reduced by the closed-loop constraint before computation, which makes the programming process simpler.

In this research, a geometry dynamics model for a four-bar mechanism in the plane is built. Based on Lie group theory, the variation in the closed-loop vector space is continuous, which means that this method has a good adaption to the mechanism in space. This work offers a concrete reference for the geometry dynamics modelling of a parallel mechanism in space. The high modularization of the dynamics model without a special numerical algorithm is convenient for software programming, which has a spread prospect in online dynamics simulations and multi-body dynamics for a digital twin in the future.

Code and data availability

The code and data included in this article can be made available by the corresponding author upon reasonable request. Please note that the codes and data are confidential and cannot be made publicly available with respect to future applications.

Author contributions

XG was in charge of the whole study. LB wrote the paper. LX assisted with the analysis and validation. LX assisted with the analysis and validation. All the authors read and approved the final paper.

Competing interests

The contact author has declared that none of the authors has any competing interests.

Disclaimer

Publisher’s note: Copernicus Publications remains neutral with regard to jurisdictional claims made in the text, published maps, institutional affiliations, or any other geographical representation in this paper. While Copernicus Publications makes every effort to include appropriate place names, the final responsibility lies with the authors.

Acknowledgements

This work was funded by the National Natural Science Foundation of China under grant nos. 11802035 and 12072041, the General project of Science and Technology Plan of Beijing Municipal Education Commission under grant no. KM201911232022, and the Talent support project of BISTU under grant no. 5112111110.

Financial support

This research has been supported by the National Natural Science Foundation of China (grant nos. 11802035, 1207241), the General project of Science and Technology Plan of Beijing Municipal Education Commission (grant no. KM201911232022), and the Talent support project of BISTU (grant no. 5112111110).

Review statement

This paper was edited by Daniel Condurache and reviewed by two anonymous referees.

References

Abeywardena, S. and Chen, C.: Inverse dynamic modelling of a three-legged six-degree -of- freedom parallel mechanism, Multi. Sys. Dyn., 41, 1–24, https://doi.org/10.1007/s11044-016-9506-y, 2017. 

Algarin-Pinto, J. and Garza-Castanon, L.: Dynamic Modelling and Control of a Parallel Mechanism Used in the Propulsion System of a Biomimetic Underwater Vehicle, Appl. Sci.-Basel, 11, 4909, https://doi.org/10.3390/app11114909, 2021. 

Condurache, D.: Higher-Order Relative Kinematics of Rigid Body and Multibody Systems. A Novel Approach with Real and Dual Lie Algebras, Mech. Mach. Theo., 176, 104999, https://doi.org/10.1016/j.mechmachtheory.2022.104999, 2022. 

Condurache, D. and Popa, I.: A Minimal Parameterization of Rigid Body Displacement and Motion Using a Higher-Order Cayley Map by Dual Quaternions, Symmetry-Basel, 15, 2011, https://doi.org/10.3390/sym15112011, 2023. 

Condurache, D. and Sfartz, E.: Exact Closed-Form Solutions of the Motion in Non-Inertial Reference Frames Using the Properties of Lie Groups SO3 and SE3, Symmetry-Basel, 13, 1963, https://doi.org/10.3390/sym13101963, 2021. 

Chen, G. and Rui, X.: A novel method for the dynamic modelling of Stewart parallel mechanism, Mech. Mach. Theo., 126, 397–412, https://doi.org/10.1016/j.mechmachtheory.2018.04.024, 2018. 

Chen, X. and Liang, X.: Rigid Dynamic Model and Analysis of 5-DOF Parallel Mechanism, Inter. Jour. Advan. Robo. Syst., 12, 108, https://doi.org/10.5772/61040, 2015. 

Chen, X. and Sun, C.: Dynamic modelling of spatial parallel mechanism with multi-spherical joint clearances, Inter. Jour. Adva. Robo. Sys., 16, 5, https://doi.org/10.1177/1729881419875910, 2019. 

Danaei, B., Arian, A., and Masouleh, M.: Dynamic modeling and base inertial parameters determination of a 2-DOF spherical parallel mechanism, Multi. Sys. Dyn., 41, 367–390, https://doi.org/10.1007/s11044-017-9578-3, 2017. 

Ding, J., Wang, C., and Wu, H.: Accuracy analysis of a parallel positioning mechanism with actuation redundancy, J. Mech. Sci. Tech., 33, 403–412, https://doi.org/10.1007/s12206-018-1240-3, 2019. 

Hess-Coelho, T. and Orsino, R.: Modular modelling methodology applied to the dynamic analysis of parallel mechanisms, Mech. Mach. Theo., 161, 104332, https://doi.org/10.1016/j.mechmachtheory.2021.104332, 2021. 

Li, L., Fang, Y., and Wang, L.: Design of a family of multi-DOF drive systems for fewer limb parallel mechanisms, Mech. Mach. Theo., 148, 103802, https://doi.org/10.1016/j.mechmachtheory.2020.103802, 2020. 

Lin, S., Wang, S., and Wang, C.: Kinematics and dynamics analysis of a novel 2PC-CPR parallel mechanism, Inter. Jour. Adva. Robo., 2016, 13, https://doi.org/10.1177/1729881416657975, 2016. 

Muller, A. and Herder, J.: Higher-order Taylor approximation of finite motions in mechanisms, Robotica, 37, 1190–1201, https://doi.org/10.1017/S0263574718000462, 2019. 

Qi, Y. and Song, Y.: Coupled kinematic and dynamic analysis of parallel mechanism flying in space, Mech. Mach. Theo., 124, 104–117, https://doi.org/10.1016/j.mechmachtheory.2018.02.003, 2018. 

Rong, Y., Zhang, X., and Qu, M.: Unified inverse dynamics for a novel class of metamorphic parallel mechanisms[J], Appl. Math. Mod., 74, 280–300, https://doi.org/10.1016/j.apm.2019.04.051, 2019. 

Rybak, L., Malyshev, D., and Chichvarin, A.: On Approach Based on Lie Groups and Algebras to the Structural Synthesis of Parallel Robots, Advan. Mech. Des., 44, 37–42, https://doi.org/10.1007/978-3-319-44087-3_5, 2017. 

Sanchez-Garcia, A., Rico, J., and Lopez-Custodio, P.: A Mobility Determination Method for Parallel Platforms Based on the Lie Algebra of SE(3) and Its Subspaces, J. Mech. Rob. Tran. ASME, 13, 031015, https://doi.org/10.1115/1.4050096, 2021. 

Shi, C., Liu, L., and Zhao, X.: Inverse Dynamics of a Rigid-flexible Parallel Mechanism[J], 2019 IEEE Inte. Conf. on Mechat. Auto., 816–821, https://doi.org/10.1109/icma.2019.8816223, 2019. 

Staicu, S.: Dynamics modelling of a Stewart-based hybrid parallel robot, Adv. Robot., 29, 929–938, https://doi.org/10.1080/01691864.2015.1023219, 2015. 

Sun, P., Li, Y., and Chen, B.: Generalized Kinematics Analysis of Hybrid Mechanisms Based on Screw Theory and Lie Groups Lie Algebras, Chin. J. Mec. Eng., 34, 98, https://doi.org/10.1186/s10033-021-00610-2,2021. 

Van der Deijl, H. and De Klerk, D.: Dynamics of a compliant transmission mechanism between parallel rotational axes, Mech. Mach. Theo., 129, 251–269, https://doi.org/10.1016/j.mechmachtheory.2019.04.016, 2019. 

Wang, G. and Liu H.: Dynamics Model of 4-SPS/CU Parallel Mechanism With Spherical Clearance Joint and Flexible Moving Platform, J. Tribol.-T. ASME, 140, 021101, https://doi.org/10.1115/1.4037463, 2018. 

Wang, L., Xu, H., and Guan, L.: Kinematics and inverse dynamics analysis for a novel 3-PUU parallel mechanism[J]. Robotica, 35, 2018–2035, https://doi.org/10.1017/S0263574716000692, 2017. 

Wang, W., Feng, Z., and Yang, T.: Inverse Dynamics of 2UPS-RPU Parallel Mechanism by Newton-Euler Formation, Appl. Mech. Mech. Engi., 29, 738–743, https://doi.org/10.4028/www.scientific.net/AMM.29-32.738, 2010. 

Wu, Y. and Carricato, M.: Identification and geometric characterization of Lie triple screw systems and their exponential images, Mech. Mach. Theo., 107, 305–323, https://doi.org/10.1016/j.mechmachtheory.2016.09.020, 2017. 

Wu, Y., Liu, G., and Li, Z.: Exponential Submanifolds: A New Kinematic Model For Mechanism Analysis and Synthesis, 2013 IEEE International Conference on Robotics and Automation (ICRA), Karlsruhe, Germany, 6–10 May 2013, 4177–4182, 2013. 

Ye, W. and Fang, Y.: Two classes of reconfigurable parallel mechanisms constructed with multi- diamond kinematotropic chain, P. I. Mech. Eng. C.-J. Mec., 230, 3319–3330, https://doi.org/10.1177/0954406215611436, 2016. 

Zeng, Q. and Fang, Y.: Structural Synthesis of Serial-Parallel Hybrid Mechanisms Via Group Theory and Representation of Logical Matrix, 2009 International Conference on Information and Automation, Zhuhai, Peoples R. China, 22–24 June, 1–3, 1367–1372, 2009. 

Zhang, J. and Song, Y.: Mathematical modeling and dynamic characteristic analysis of a novel parallel tracking mechanism for inter-satellite link antenna, App. Math. Mod., 93, 618–643, https://doi.org/10.1016/j.apm.2020.12.020, 2021. 

Zou, Q. and Zhang, D.: Kinematic and dynamic analysis of a 3-DOF parallel mechanism, Inter. Jour. Mech. Mater. Desi., 17, 587–599, https://doi.org/10.1007/s10999-021-09548-8, 2021. 

Download
Short summary
The paper shows that the attitude vector expression for the rod can decrease the difficulty of derivation and expression of the dynamics model. Variation theory can package the closed-loop pose–attitude constraint in the dynamics model, so the constraint does not need to be considered explicitly. Using the geometry modelling method to build the dynamics model of a four-bar mechanism can avoid the repetitive operation of the closed-loop constraint.