Simulink-based space flexible mechanical arm dynamic model establishment

CN118893626APending Publication Date: 2024-11-05XI'AN UNIVERSITY OF ARCHITECTURE AND TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411041558.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

传统关于柔性机械臂建模的研究,多数是基于运动学或静力学的建模,无法分析分析的因素还有很多,对柔性机械臂运动精度的动态影响

Benefits of technology

[0111] By establishing a spatial flexible manipulator dynamics model based on Simulink technology, many factors that cannot be analyzed are solved. The dynamic impact on the movement accuracy of the flexible manipulator effectively solves technical problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118893626A_ABST
    Figure CN118893626A_ABST
Patent Text Reader

Abstract

The invention discloses a simulink-based space flexible mechanical arm dynamic model establishment method, and mainly relates to model establishment. Comprising the following steps: S1, flexible body deformation description and kinetic energy; s2, potential energy of a mechanical arm rod; s3, establishing a constraint equation between flexible bodies; s4, establishing a dynamic model of the flexible multi-body system; and S5, a dynamic model of the space flexible mechanical arm is established. The method has the beneficial effects that the dynamic model of the space flexible mechanical arm is established based on the simulink technology, and the technical problem is effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the establishment of a model, in particular to the establishment of a dynamic model of a space flexible mechanical arm based on Simulink. Background Art

[0002] The flexible robotic arm has a slender body and super-redundant degrees of freedom, making it suitable for use in small and unstructured environments. It has shown important application prospects in medical surgery, space vehicle inspection and maintenance, disaster relief and other fields.

[0003] Compared with traditional flexible robotic arms, flexible robotic arms have the advantages of large load-bearing stiffness, high motion accuracy, and a small number of required drive motors, and have superior comprehensive performance. Most of the traditional research on flexible robotic arm modeling is based on kinematics or statics modeling, and there are many factors that cannot be analyzed, including the dynamic influence on the motion accuracy of flexible robotic arms. Summary of the invention

[0004] The purpose of the present invention is to provide a simulink-based space flexible manipulator dynamics model establishment, which effectively solves the technical problem by establishing a space flexible manipulator dynamics model based on simulink technology.

[0005] In order to achieve the above object, the present invention is implemented through the following technical solutions:

[0006] The dynamic model of the spatial flexible manipulator based on Simulink is established, including the following steps:

[0007] S1, description of deformation and kinetic energy of flexible body; S2, potential energy of robotic arm; S3, establishment of constraint equations between flexible bodies; S4, establishment of dynamic model of flexible multi-body system; S5, establishment of dynamic model of spatial flexible robotic arm.

[0008] Specific:

[0009] Step S1, the deformation description and kinetic energy of the flexible body are as follows:

[0010] Based on the assumed modal method to describe the deformation of the robot arm, the flexible body is described as follows: Figure 1 As shown, where Σ I The inertial coordinate system is established with the proximal joint of each flexible body as the origin, the axial direction of the flexible body as the z-axis, and the rotation direction of the joint as the x-axis. i x i y i z i (i=1Ln), the rotation angle of each joint is q i (i=1Ln), the position vector of each joint in the inertial system is R i (i=1Ln). Figure 1 In the figure, point p is any point on the flexible body i. According to the figure above, the position vector of point p in the inertial coordinate system can be expressed as

[0011] r ip =R i + I A i u' i =R i + I A i (u i +u if ) (1-1)

[0012] Where R i is the position vector of the joint mass center in the inertial coordinate system, u i ' is point p in the moving coordinate system o i x i y i z i The position vector, I A i is the transformation matrix from the moving coordinate system to the inertial coordinate system, u i is the point p before the arm deformation in the follower coordinate system o i x i y i z i The position vector is a constant, u if is the deformation vector of the flexible body point p in the follower coordinate system, expressed by the assumed modal method.

[0013] Rotation matrix:

[0014] The coordinate transformation between any two coordinate systems can be completed by three basic rotations around the z, y, and x axes. The angles of the three rotations are called Euler angles. The basic rotation matrix is:

[0015]

[0016] Transformation between joint coordinate systems, coordinate system {Σ i-1} to coordinate system {∑ i}, are the Euler angles of rotation around the zyx axis, q i is the angle of rotation around joint i, then

[0017]

[0018] In the above formula, u if =Φ i q if (1-2)

[0019] Φi is the mode shape function matrix, q if are the deformation mode coordinates.

[0020] Then formula (1-1) can be written as:

[0021] r ip =R i + I A i u' i =R i + I A i (u i +Φ i q if ) (1-3)

[0022] like Figure 2 As shown, the arm is approximated as a flexible beam, and its axial deformation w1(z, t) and lateral deformation w2(z, t) are as follows: Figure 2 As shown, small deformations ignore lateral deformations in the direction of the joint rotation axis.

[0023] The lateral deformation and longitudinal deformation are expressed as:

[0024]

[0025] Where i represents the i-th rod, f represents the modal order, k represents the order, Φ x (z),Φ y (z) and Φ z (z) Using the modal function of the fixed boundary cantilever beam, the main deformation of the robot arm is the axial longitudinal deformation and the lateral deformation perpendicular to the joint axis. Therefore, the deformation in the joint axis direction is ignored, Φ x (z) is 0.

[0026] The modal function of axial deformation is:

[0027]

[0028] Where f is the mode order and L is the rod length.

[0029] The modal function of the lateral deformation is:

[0030]

[0031] The eigenvalue β is solved by the boundary conditions, and we have

[0032] β1L=1.875,β2L=4.694

[0033] β i L=(i-0.5)π,i≥3

[0034]

[0035] The expression of q(t) is:

[0036]

[0037] B1, B2, B3, B4 are determined by the initial conditions.

[0038] Can be obtained by |K-Mω 2 |=0 to solve the natural frequency ω i .

[0039] Procedure for finding eigenvalues:

[0040] [x,d] = eig(inv(M)*K); % Mass matrix of M system % Stiffness matrix of K system

[0041] w2=diag(d); % eigenvalue

[0042] w11=sqrt(w2)%The square root of the eigenvalue is the natural frequency

[0043] f11=w11 / (2*pi)% angular frequency becomes Hz

[0044] The velocity vector of point p in the inertial system is:

[0045]

[0046] Select x respectively b ,θ b ,q i ,q if is a generalized coordinate, where x b ,θ b Describe the moving coordinate system o i x i y i z i The generalized coordinates of the pose, x b =[xyz] T , q i is the generalized coordinate of the joint rotation, q if are the generalized coordinates of the modal deformation.

[0047] Any coordinate system {∑ i} and the rotation matrix between the inertial coordinate system I A i is a function of time t. At each instant t, there exists an axis of rotation (characterized by a unit vector k) and an angle of rotation q, such that I A i =A k (q). The rate of change of the rotation angle q causes The rate of change is:

[0048]

[0049] is the coordinate system {∑ m}The expression of the angular velocity relative to the inertial system in the inertial system, I A i is the link i coordinate system {∑ i}The rotation matrix relative to the inertial system is

[0050]

[0051] Among them, the relationship between the angular velocity of the joint center of mass relative to the inertial system and the Euler angular velocity of the phase core inertial system is:

[0052]

[0053] Therefore, the velocity of point p in inertia can be expressed as:

[0054]

[0055] Where D1=( I A1(u1+Φ i q if )) ^T c,D2=( I A1k1× I A1)((u1+Φ i q if )),( I A1(u1+Φ i q if )) ^T express I A1(u1+Φ i q if ) and transpose.

[0056] Kinetic expression:

[0057] The kinetic energy of the flexible body i is:

[0058]

[0059] Where ρ is the density of the flexible body. Substituting formula (1-14) into (1-15), we have

[0060]

[0061] in is the generalized coordinate, M i is the mass matrix and has the following form:

[0062]

[0063] Let D = [D1 D2] Φ = I A i Φ i

[0064]

[0065] make

[0066] The expressions and meanings of each sub-formula in the mass matrix:

[0067] m tt =∫ V ρIdV: Total mass of the flexible body's translational mass characteristics

[0068] m tr =∫ V ρDdV: Flexible body translational and rotational coupled quality characteristics

[0069] m tf =∫ V ρ I A i Φ i dV: quality characteristics of flexible body translation and flexible vibration coupling

[0070] m rr =∫ V ρD T DdV: Flexible body rotational quality characteristics

[0071] m rf =∫ V ρD TI A i Φ i dV: quality characteristics of flexible body rotation and flexible vibration coupling

[0072] Flexible vibration quality characteristics of flexible body

[0073] By further processing the above equations, we can obtain the display form of the kinetic energy of flexible body i with respect to body mass, moment of inertia, flexible vibration mode matrix and generalized coordinates.

[0074] Step S2, the potential energy of the robotic arm is specifically:

[0075] The robotic arm also has elastic potential energy generated by strain. In order to facilitate derivation, the elastic potential energy is given in the form of generalized elastic force. The deformation of the flexible body is assumed to be linear elastic. Based on the theory of elastic mechanics, the potential energy caused by the elastic deformation of the flexible body is:

[0076]

[0077] is the tensile and compressive potential energy of the flexible manipulator, is the bending potential energy of the flexible robotic arm.

[0078] Formula (1-18) is expanded into the matrix form of generalized coordinates:

[0079]

[0080] Among them, E is the elastic modulus, A is the cross-sectional area, I is the section moment of inertia, and p is i =[θ b q i ].

[0081] Step S3, the constraint equations between flexible bodies are established as follows:

[0082] The bodies of a flexible multi-body system are connected by certain mechanical constraints. It is necessary to give a mathematical description of the constraints, and then assemble the dynamic equations of each body in the system to obtain the dynamic equations of the multi-body system. The general form of the constraint equation of the complete constraint is

[0083] C(q,t)=0(1-20)

[0084] Assuming that each body is connected by a single-degree-of-freedom rotation joint, there are a total of 5 constraint equations between the two bodies, including 3 position constraint equations and 2 posture constraint equations;

[0085] Assume that two adjacent bodies i and j are connected by r ij connection, the position constraint equation is:

[0086]

[0087] The unit direction vectors of the coordinate system of the hinge point of the two bodies i and j are e3 is the direction of the joint rotation axis, and the posture constraint equation is:

[0088]

[0089] Step S4, the flexible multi-body system dynamics model is established as follows:

[0090] Based on the kinetic energy and elastic force of the flexible body obtained above, the dynamic equation of the flexible manipulator i is obtained according to the Lagrangian method. The Lagrangian equation is:

[0091]

[0092] L=TV

[0093] Substituting formulas (1-16), (1-19), and (1-83) into

[0094]

[0095] In the formula, is the velocity nonlinear term, the first term is the Coriolis force, the second term is the centrifugal force, Q i is a general force;

[0096] For a multi-body system with n degrees of freedom, the two bodies are connected by a revolute joint, and the dynamic equations of the n moving bodies are assembled through constraint equations to obtain the system dynamic equation with multipliers:

[0097]

[0098] Where:

[0099] M=diag[M1,M2,L,M n ]

[0100]

[0101] K=diag[K1,K2,L,K n ]

[0102]

[0103] λ=[λ1λ2Lλ k ] T

[0104]

[0105] Where k is the number of constraint equations, C q is the Jacobian matrix of the constraint equation, and λ is the Lagrange multiplier. Equation (1-26) is a typical algebraic differential mixed equation. Although there are many equations, the equation is a highly sparse matrix, which is suitable for efficient solution and is applicable to complete and incomplete constraints. It can be converted into a closed dynamic equation and solved by introducing additional acceleration constraint equations.

[0106] Step S5, the dynamic model of the space flexible manipulator is established as follows:

[0107] Based on the flexible multi-body system dynamics modeling method in the above steps, the dynamics modeling of the space flexible robotic arm system is carried out. The dynamics model of the space flexible robotic arm system is as follows:

[0108]

[0109] Among them, H b is the matrix inertia matrix, H m is the inertia matrix of the robotic arm system, H f is the inertia matrix corresponding to the flexible mode, Hbm is the coupled inertia matrix of the base and the manipulator, H bf is the coupled inertia matrix of the matrix and flexible mode, H mf is the coupled inertia matrix of the manipulator and the flexible mode; x b is the base body posture, q is the robot arm joint angle, q f is the modal coordinate of the flexible arm; c b , c m , c f are the nonlinear terms corresponding to the substrate, the robot arm, and the modal coordinate velocity, respectively, K ff is the modal stiffness matrix, F b , τ m are the base force / torque and the manipulator joint control torque, F e is the external force / torque acting on the end of the robotic arm; J b is the Jacobian matrix of the end of the robot relative to the matrix, J m is the Jacobian matrix of the end relative to the robot joint.

[0110] Compared with the prior art, the beneficial effects of the present invention are:

[0111] By establishing a dynamic model of a spatial flexible robotic arm based on Simulink technology, many factors that cannot be analyzed are solved, including the dynamic influence on the motion accuracy of the flexible robotic arm, and technical problems are effectively solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0112] Attached Figure 1 It is a diagrammatic description of the flexible arm of the present invention.

[0113] Attached Figure 2 It is a diagram of the deformation of the flexible beam in the present invention.

[0114] Attached Figure 3 It is a flow chart of the operation of the positive dynamics model of the spatial flexible manipulator based on simulink in the present invention.

[0115] Attached Figure 4 It is the simulink spatial flexible manipulator positive dynamics model in the present invention. DETAILED DESCRIPTION

[0116] The present invention will be further described below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms fall within the scope limited by the application equally.

[0117] The present invention is to establish a dynamic model of a space flexible manipulator based on Simulink, which includes the following steps:

[0118] S1, description of deformation and kinetic energy of flexible body; S2, potential energy of robotic arm; S3, establishment of constraint equations between flexible bodies; S4, establishment of dynamic model of flexible multi-body system; S5, establishment of dynamic model of spatial flexible robotic arm.

[0119] Specific:

[0120] Step S1, the deformation description and kinetic energy of the flexible body are as follows:

[0121] Based on the assumed modal method to describe the deformation of the robot arm, the flexible body is described as follows: Figure 1 As shown, where Σ I The inertial coordinate system is established with the proximal joint of each flexible body as the origin, the axial direction of the flexible body as the z-axis, and the rotation direction of the joint as the x-axis. i x i y i z i (i=1Ln), the rotation angle of each joint is q i (i=1Ln), the position vector of each joint in the inertial system is R i (i=1Ln). Figure 1 In the figure, point p is any point on the flexible body i. According to the figure above, the position vector of point p in the inertial coordinate system can be expressed as

[0122] r ip =R i + I A i u' i =R i + I A i (u i +u if )(1-1)

[0123] Where R i is the position vector of the joint mass center in the inertial coordinate system, u i ' is the point p in the moving coordinate system o i x i y i z i The position vector, I A i is the transformation matrix from the moving coordinate system to the inertial coordinate system, u i is the point p before the arm deformation in the follower coordinate system o i x i y i z i The position vector is a constant, uif is the deformation vector of the flexible body point p in the follower coordinate system, expressed by the assumed modal method.

[0124] Rotation matrix:

[0125] The coordinate transformation between any two coordinate systems can be completed by three basic rotations around the z, y, and x axes. The angles of the three rotations are called Euler angles. The basic rotation matrix is:

[0126]

[0127] Transformation between joint coordinate systems, coordinate system {Σ i-1} to the coordinate system {Σ i}, are the Euler angles of rotation around the zyx axis, q i is the angle of rotation around joint i, then

[0128]

[0129] In the above formula, u if =Φ i q if (1-2)

[0130] Φ i is the mode shape function matrix, q if are the deformation mode coordinates.

[0131] Then formula (1-1) can be written as:

[0132] r ip =R i + I A i u' i =R i + I A i (u i +Φ i q if ) (1-3)

[0133] like Figure 2 As shown, the arm is approximated as a flexible beam, and its axial deformation w1(z, t) and lateral deformation w2(z, t) are as follows: Figure 2 As shown, small deformations ignore lateral deformations in the direction of the joint rotation axis.

[0134] The lateral deformation and longitudinal deformation are expressed as:

[0135]

[0136] Where i represents the i-th rod, f represents the modal order, k represents the order, Φx (z),Φ y (z) and Φ z (z) Using the modal function of the fixed boundary cantilever beam, the main deformation of the robot arm is the axial longitudinal deformation and the lateral deformation perpendicular to the joint axis. Therefore, the deformation in the joint axis direction is ignored, Φ x (z) is 0.

[0137] The modal function of axial deformation is:

[0138]

[0139] Where f is the mode order and L is the rod length.

[0140] The modal function of the lateral deformation is:

[0141]

[0142] The eigenvalue β is solved by the boundary conditions, and we have

[0143] β1L=1.875,β2L=4.694

[0144] β i L=(i-0.5)π,i≥3

[0145]

[0146] The expression of q(t) is:

[0147]

[0148] B1, B2, B3, B4 are determined by the initial conditions.

[0149] Can be obtained by |K-Mω 2 |=0 to solve the natural frequency ω i .

[0150] Procedure for finding eigenvalues:

[0151] [x,d] = eig(inv(M)*K); % Mass matrix of M system % Stiffness matrix of K system

[0152] w2=diag(d); % eigenvalue

[0153] w11=sqrt(w2)%The square root of the eigenvalue is the natural frequency

[0154] f11=w11 / (2*pi)% angular frequency becomes Hz

[0155] The velocity vector of point p in the inertial system is:

[0156]

[0157] Select x respectively b ,θ b ,q i ,q if is a generalized coordinate, where x b ,θ b Describe the moving coordinate system o i x i y i z i The generalized coordinates of the pose, x b =[xyz] T , q i is the generalized coordinate of the joint rotation, q if are the generalized coordinates of the modal deformation.

[0158] Any coordinate system {∑ i} and the rotation matrix IA between the inertial coordinate system i is a function of time t. At each instant t, there exists an axis of rotation (characterized by a unit vector k) and an angle of rotation q, such that I A i =A k (q). The rate of change of the rotation angle q causes The rate of change is:

[0159]

[0160] is the coordinate system {∑ m}The expression of the angular velocity relative to the inertial system in the inertial system, I A i is the link i coordinate system {∑ i}The rotation matrix relative to the inertial system is

[0161]

[0162] Among them, the relationship between the angular velocity of the joint center of mass relative to the inertial system and the Euler angular velocity of the phase core inertial system is:

[0163]

[0164] Therefore, the velocity of point p in inertia can be expressed as:

[0165]

[0166] Where D1=( I A1(u1+Φ i q if )) ^T c,D2=( I A1k1×I A1)((u1+Φ i q if )),( I A1(u1+Φ i q if )) ^T express I A1(u1+Φ i q if ) and transpose.

[0167] Kinetic expression:

[0168] The kinetic energy of the flexible body i is:

[0169]

[0170] Where ρ is the density of the flexible body. Substituting formula (1-14) into (1-15), we have

[0171]

[0172] in is the generalized coordinate, M i is the mass matrix and has the following form:

[0173]

[0174] Let D = [D1 D2] Φ = I A i Φ i

[0175]

[0176] make

[0177] The expressions and meanings of each sub-formula in the mass matrix:

[0178] m tt =∫ V ρIdV: Total mass of the flexible body's translational mass characteristics

[0179] m tr =∫ V ρDdV: Flexible body translational and rotational coupled quality characteristics

[0180] m tf =∫ V ρ I A i Φ i dV: quality characteristics of flexible body translation and flexible vibration coupling

[0181] m rr =∫ V ρDT DdV: Flexible body rotational quality characteristics

[0182] m rf =∫ V ρD TI A i Φ i dV: quality characteristics of flexible body rotation and flexible vibration coupling

[0183] Flexible vibration quality characteristics of flexible body

[0184] By further processing the above equations, we can obtain the display form of the kinetic energy of flexible body i with respect to body mass, moment of inertia, flexible vibration mode matrix and generalized coordinates.

[0185] Step S2, the potential energy of the robotic arm is specifically:

[0186] The robotic arm also has elastic potential energy generated by strain. In order to facilitate derivation, the elastic potential energy is given in the form of generalized elastic force. The deformation of the flexible body is assumed to be linear elastic. Based on the theory of elastic mechanics, the potential energy caused by the elastic deformation of the flexible body is:

[0187]

[0188] is the tensile and compressive potential energy of the flexible manipulator, is the bending potential energy of the flexible robotic arm.

[0189] Formula (1-18) is expanded into the matrix form of generalized coordinates:

[0190]

[0191] Among them, E is the elastic modulus, A is the cross-sectional area, I is the section moment of inertia, and p is i =[θ b q i ].

[0192] Step S3, the constraint equations between flexible bodies are established as follows:

[0193] The bodies of a flexible multi-body system are connected by certain mechanical constraints. It is necessary to give a mathematical description of the constraints, and then assemble the dynamic equations of each body in the system to obtain the dynamic equations of the multi-body system. The general form of the constraint equation of the complete constraint is

[0194] C(q,t)=0(1-20)

[0195] Assuming that each body is connected by a single-degree-of-freedom rotational joint, there are a total of 5 constraint equations between the two bodies, including 3 position constraint equations and 2 attitude constraint equations;

[0196] Assume that two adjacent bodies i and j are connected by r ij connection, the position constraint equation is:

[0197]

[0198] The unit direction vectors of the coordinate system of the hinge point of the two bodies i and j are e3 is the direction of the joint rotation axis, and the posture constraint equation is:

[0199]

[0200] Step S4, the flexible multi-body system dynamics model is established as follows:

[0201] Based on the kinetic energy and elastic force of the flexible body obtained above, the dynamic equation of the flexible manipulator i is obtained according to the Lagrangian method. The Lagrangian equation is:

[0202]

[0203] L=TV

[0204] Substituting formulas (1-16), (1-19), and (1-83) into

[0205]

[0206] In the formula, is the velocity nonlinear term, the first term is the Coriolis force, the second term is the centrifugal force, Q i is a general force;

[0207] For a multi-body system with n degrees of freedom, the two bodies are connected by a revolute joint, and the dynamic equations of the n moving bodies are assembled through constraint equations to obtain the system dynamic equation with multipliers:

[0208] Where:

[0209] M=diag[M1,M2,L,M n ]

[0210]

[0211] K=diag[K1,K2,L,K n ]

[0212]

[0213] λ=[λ1λ2Lλ k ] T

[0214]

[0215] Where k is the number of constraint equations, C q is the Jacobian matrix of the constraint equation, and λ is the Lagrange multiplier. Equation (1-26) is a typical algebraic differential mixed equation. Although there are many equations, the equation is a highly sparse matrix, which is suitable for efficient solution and is applicable to complete and incomplete constraints. It can be converted into a closed dynamic equation and solved by introducing additional acceleration constraint equations.

[0216] Step S5, the dynamic model of the space flexible manipulator is established as follows:

[0217] Based on the above steps of flexible multi-body system dynamics modeling method, the dynamics modeling of the space flexible manipulator system is carried out. The dynamics model of the space flexible manipulator system is as follows:

[0218]

[0219] Among them, H b is the matrix inertia matrix, H m is the inertia matrix of the robotic arm system, H f is the inertia matrix corresponding to the flexible mode, H bm is the coupled inertia matrix of the base and the manipulator, H bf is the coupled inertia matrix of the matrix and flexible mode, H mf is the coupled inertia matrix of the manipulator and the flexible mode; x b is the base body posture, q is the robot arm joint angle, q f is the modal coordinate of the flexible arm; c b , c m , c f are the nonlinear terms corresponding to the substrate, the robot arm, and the modal coordinate velocity, respectively, K ff is the modal stiffness matrix, F b , τ m are the base force / torque and the manipulator joint control torque, F e is the external force / torque acting on the end of the robotic arm; J b is the Jacobian matrix of the end of the robot relative to the matrix, J m is the Jacobian matrix of the end relative to the robot joint.

[0220] In summary:

[0221] By establishing a dynamic model of a spatial flexible robotic arm based on Simulink technology, many factors that cannot be analyzed are solved, including the dynamic influence on the motion accuracy of the flexible robotic arm, and technical problems are effectively solved.

Claims

1. The dynamic model of the spatial flexible manipulator based on Simulink is established, which is characterized by: The following steps are included: S1, description of flexible body deformation and kinetic energy; S2, potential energy of the robot arm; S3, establishment of constraint equations between flexible bodies; S4, establishment of dynamic model of flexible multi-body system; S5, dynamic model of space flexible robotic arm is established.

2. The dynamic model of the space flexible manipulator based on simulink according to claim 1 is characterized in that: Step S1, the deformation description and kinetic energy of the flexible body are as follows: The deformation of the robot arm is described based on the assumed modal method, where Σ I The inertial coordinate system is established with the proximal joint of each flexible body as the origin, the axial direction of the flexible body as the z-axis, and the rotation direction of the joint as the x-axis. i x i y i z i (i=1Ln), the rotation angle of each joint is q i (i=1Ln), the position vector of each joint in the inertial system is R i (i=1Ln).

3. The dynamic model of the space flexible manipulator based on simulink according to claim 2 is characterized in that: Step S2, the potential energy of the robotic arm is specifically: The robotic arm also has elastic potential energy generated by strain. In order to facilitate derivation, the elastic potential energy is given in the form of generalized elastic force. The deformation of the flexible body is assumed to be linear elastic. Based on the theory of elastic mechanics, the potential energy caused by the elastic deformation of the flexible body is: is the tensile and compressive potential energy of the flexible manipulator, is the bending potential energy of the flexible robotic arm. Formula (1-18) is expanded into the matrix form of generalized coordinates: Among them, E is the elastic modulus, A is the cross-sectional area, I is the section moment of inertia, and p is i =[θ b q i ].

4. The establishment of a spatial flexible manipulator dynamics model based on simulink according to claim 3 is characterized in that: Step S3, the constraint equations between flexible bodies are established as follows: The bodies of a flexible multi-body system are connected by certain mechanical constraints. It is necessary to give a mathematical description of the constraints, and then assemble the dynamic equations of each body in the system to obtain the dynamic equations of the multi-body system. The general form of the constraint equation of the complete constraint is C(q,t)=0(1-20) Assuming that each body is connected by a single-degree-of-freedom rotation joint, there are a total of 5 constraint equations between the two bodies, including 3 position constraint equations and 2 posture constraint equations; Assume that two adjacent bodies i and j are connected by r ij connection, the position constraint equation is: The unit direction vectors of the coordinate system of the hinge point of the two bodies i and j are e3 is the direction of the joint rotation axis, and the posture constraint equation is:

5. The establishment of a spatial flexible manipulator dynamics model based on simulink according to claim 4 is characterized in that: Step S4, the flexible multi-body system dynamics model is established as follows: Based on the kinetic energy and elastic force of the flexible body obtained above, the dynamic equation of the flexible manipulator i is obtained according to the Lagrangian method. The Lagrangian equation is: L=TV Substituting formulas (1-16), (1-19), and (1-83) into In the formula, is the velocity nonlinear term, the first term is the Coriolis force, the second term is the centrifugal force, Q i is a general force; For a multi-body system with n degrees of freedom, the two bodies are connected by a revolute joint, and the dynamic equations of the n moving bodies are assembled through constraint equations to obtain the system dynamic equation with multipliers: Where: M=diag[M1,M2,L,M n ] K=diag[K1,K2,L,K n ] λ=[λ1λ2Lλ k ] T Where k is the number of constraint equations, C q is the Jacobian matrix of the constraint equation, and λ is the Lagrange multiplier. Equation (1-26) is a typical algebraic differential mixed equation. Although there are many equations, the equation is a highly sparse matrix, which is suitable for efficient solution and is applicable to complete and incomplete constraints. It can be converted into a closed dynamic equation and solved by introducing additional acceleration constraint equations.

6. The establishment of a spatial flexible manipulator dynamics model based on simulink according to claim 5 is characterized in that: Step S5, the dynamic model of the space flexible manipulator is established as follows: Based on the flexible multi-body system dynamics modeling method in the above steps, the dynamics modeling of the space flexible robotic arm system is carried out. The dynamics model of the space flexible robotic arm system is as follows: Among them, H b is the matrix inertia matrix, H m is the inertia matrix of the robotic arm system, H f is the inertia matrix corresponding to the flexible mode, H bm is the coupled inertia matrix of the base and the manipulator, H bf is the coupled inertia matrix of the matrix and flexible mode, H mf is the coupled inertia matrix of the manipulator and the flexible mode; x b is the base body posture, q is the robot arm joint angle, q f is the modal coordinate of the flexible arm; c b , c m , c f are the nonlinear terms corresponding to the substrate, the robot arm, and the modal coordinate velocity, respectively, K ff is the modal stiffness matrix, F b , τ m are the base force / torque and the manipulator joint control torque, F e is the external force / torque acting on the end of the robotic arm; J b is the Jacobian matrix of the end of the robot relative to the matrix, J m is the Jacobian matrix of the end relative to the robot joint.